Setting a kubernetes master
Setting up cluster using
kubelet to be installed. Here we have all of them installed. You can check steps for installation here.
We are goint to pull images for various components
etcd used by kubernetes
master node by executing command
kubeadm config images pull.
Now we have pulled images and we can initiate master node creation using
kubeadm init --pod-network-cidr=192.168.0.0/16.
kubeadm init finishes we need to execute following instructions as mentioned in
kubeadm init output.
mkdir -p $HOME/.kube
cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
chown $(id -u):$(id -g) $HOME/.kube/config
We need to setup a networking for kubernetes. We will use a provider called
flannel. Install it using a command
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml. There are more such providers available for use. You can check entire list at kubernetes container networking.