Skip to content

Instantly share code, notes, and snippets.

@thomaslorentsen
Last active October 20, 2017 12:37
Show Gist options
  • Save thomaslorentsen/84fec63f43ba2a45e519ff534f13276d to your computer and use it in GitHub Desktop.
Save thomaslorentsen/84fec63f43ba2a45e519ff534f13276d to your computer and use it in GitHub Desktop.
Getting Started With Kubernetes

Kubernetes

Installing

Install on OSX with"

brew cask install minikube

Then install kubectl

curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.7.5/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/

Starting

minikube start

Example

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)

Dashboard

minikube dashboard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment