play-with-kubernetes/labs/README.md
Play with Docker is a sandbox environment to get you started with Kubernetes Cluster on the fly. Using personal credentials is HIGHLY! discouraged.
Bring up your first k8s instance by clicking on "New Instance".
kubeadm init --apiserver-advertise-address $(hostname -i)
Wait for a minute to get it completely intiliazed. This will start up API server
To start using your cluster, you need to run (as a regular user):
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
kubectl apply -n kube-system -f \
"https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 |tr -d '\n')"
kubectl apply -f https://raw.gi
Open up new instances and join the other nodes:
kubeadm join --token fb9445.c4835ebdb6a7d7e5 192.168.0.8:6443 --discovery-token-ca-cert-hashsha256:b211c43880b4419f6de772495a35ee40337a36cbac0b8af54704b84622423bf4
[node1 ~]$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
node1 Ready master 23m v1.10.0
node2 Ready <none> 13m v1.10.0
node3 Ready <none> 12m v1.10.0
node4 Ready <none> 12m v1.10.0
[node1 ~]$
Proceed to Lab #1: Test Driving NGINX Deployment on a Single Node