Last active
January 14, 2018 11:38
-
-
Save aofry/7f0bcef83bae37a4b5fe38ed603d7d6f to your computer and use it in GitHub Desktop.
minikube with helm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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