Skip to content

Instantly share code, notes, and snippets.

@xsenechal
Last active September 10, 2016 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xsenechal/430d50f37ffd336190efbc1bf7db6871 to your computer and use it in GitHub Desktop.
Save xsenechal/430d50f37ffd336190efbc1bf7db6871 to your computer and use it in GitHub Desktop.
# http://kubernetes.io/docs/getting-started-guides/minikube/
# install kubectl
curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
# install minikube
# https://github.com/kubernetes/minikube/releases
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.9.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
minikube start
kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080
kubectl expose deployment hello-minikube --type=NodePort
kubectl get pod
curl $(minikube service hello-minikube --url)
time minikube stop
#=> minikube stop 0.08s user 0.04s system 0% cpu 22.995 total
time minikube start
#=> minikube start 1.68s user 0.37s system 4% cpu 42.405 total
curl $(minikube service hello-minikube --url)
#still working after reboot Yeah
kubectl get pod
kubectl scale --replicas=3 deployment/hello-minikube
# deis builder is not going up avec helmc install
#=> deis-builder-hcal9 0/1 CrashLoopBackOff 17 5h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment