Skip to content

Instantly share code, notes, and snippets.

@aofry aofry/setup.sh
Last active Jan 14, 2018

Embed
What would you like to do?
minikube with helm
# download binaries
wget https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/windows/amd64/kubectl.exe
mv kubectl.exe mv /usr/local/bin/
wget https://github.com/kubernetes/minikube/releases/download/v0.24.1/minikube-windows-amd64
mv minikube-windows-amd64 /usr/local/bin/minikube.exe
wget https://storage.googleapis.com/kubernetes-helm/helm-v2.7.2-windows-amd64.tar.gz
tar xvzf helm-v2.7.2-windows-amd64.tar.gz
mv windows-amd64/helm.exe /usr/local/bin/
# start minikube
minikube start
kubectl get svc,nodes
# setup helm
helm init
helm repo update
helm repo list
# install some postgres under db namespace
helm install --name pg1 \
--namespace db \
--set postgresPassword=some-password,postgresDatabase=db1 \
stable/postgresql
helm ls
kubectl get svc,pods -n db
# get the cluster ip and port in the browser (not so helpfull for a non http endpoint)
# minikube service pg1-postgresql -n db
# open dashboard
minikube dashboard
helm delete pg1 --purge
# remove all
minikube delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.