Skip to content

Instantly share code, notes, and snippets.

@larrynung
Forked from William-Yeh/k8s in 5 minutes
Created November 21, 2018 04:18
Show Gist options
  • Save larrynung/7785c1823d6f80e8a04ec4d2bd14351c to your computer and use it in GitHub Desktop.
Save larrynung/7785c1823d6f80e8a04ec4d2bd14351c to your computer and use it in GitHub Desktop.
k8s in 5 minutes
1. Install Docker CE and enable Kubernetes:
See Figure 1 and 2 in https://medium.com/slalom-technology/get-kubernetes-running-locally-on-osx-and-windows-b3b5f176b5bb
2. (Optionally) Install k8s dashboard:
```
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
$ kubectl proxy
```
Now access Dashboard at: `http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/`
3. Try to run a simple echo server:
`$ kubectl apply -f https://raw.githubusercontent.com/coder-society/kubernetes-with-telepresence/master/echo-server/echo-server.yaml`
4. Try to access the echo server:
http://localhost:3000/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment