Skip to content

Instantly share code, notes, and snippets.

@jonatanblue
Created April 30, 2016 11:18
Show Gist options
  • Save jonatanblue/fa94ba53b3351be01d415bda179b15a5 to your computer and use it in GitHub Desktop.
Save jonatanblue/fa94ba53b3351be01d415bda179b15a5 to your computer and use it in GitHub Desktop.
#Pre-req: install gcloud (Google Cloud CLI)
PROJECT_NAME=${1}
CLUSTER_NAME=kubernetes-lab-1
GOOGLE_REGION=europe-west1-d
brew update
brew install kubernetes-cli
brew install gcloud
gcloud config set project $PROJECT_NAME
gcloud config set compute/zone $GOOGLE_REGION
gcloud config set container/cluster $CLUSTER_NAME
curl -s https://get.helm.sh | bash
helm install weavescope
APP_NAME=$(kubectl get pods | grep weave-scope-app | awk '{ print $1 }')
kubectl port-forward ${APP_NAME} 4040:4040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment