Skip to content

Instantly share code, notes, and snippets.

@jwkidd3
Last active April 25, 2018 13:55
Show Gist options
  • Save jwkidd3/439c740d27fca16ebe60ec92e496ecc9 to your computer and use it in GitHub Desktop.
Save jwkidd3/439c740d27fca16ebe60ec92e496ecc9 to your computer and use it in GitHub Desktop.
<<Docker Install>>
sudo su
apt-get update && apt-get install -y apt-transport-https
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
apt-get install -y kubectl
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.26.1/minikube-linux-amd64 && chmod +x minikube && mv minikube /usr/local/bin/
minikube start --vm-driver=none
kubectl cluster-info
kubectl cluster-info dump
<<STOP>>
minikube dashboard
kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080
kubectl expose deployment hello-minikube --type=LoadBalancer --name=hello --external-ip=192.168.1.128
kubectl get pod
curl $(minikube service hello --url)
kubectl delete services hello
kubectl delete deployment hello-minikube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment