Initialize Kubernetes with kubeadm
sudo kubeadm init --apiserver-advertise-address=[private-address-of-the-master] --pod-network-cidr=10.244.0.0/16
Note: The used cidr is supported by flannel and should only be changed if you know what you are doing
Copy kubernetes configuration and make it accessible to ubuntu user
sudo cp /etc/kubernetes/admin.conf ~/
sudo chown ubuntu:ubuntu ~/admin.conf
export KUBECONFIG=~/admin.conf
Apply kubernetes pod network driver
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.10.0/Documentation/kube-flannel.yml
Afterwards the master node should be in status ready
kubectl get nodes
Kubernets can be reset with kubeadm
. Note that you will have to repeat all of the above steps afterwards.
sudo kubeadm reset