Checkout the full Kubernetes Certified Administrator course at: [ Ссылка ]
All the instructions required to deploy this cluster is recorded in the github repository here. [ Ссылка ]
Credits: [ Ссылка ]
Let us now configure networking in the cluster. First we check the status of the cluster. We see that it has 2 nodes and that the worker nodes are NotReady. Let's look at one of these nodes to find out why it is not ready. Run the kubectl describe ndoe command and you will see the reason. It says network plugin is not configured correctly.
So let's provision a network. We decided to use weave.
Before we can provision weave, we must ensure the required pre-requisites are met on the worker nodes. The weave plugin relies on a few other CNI plugins. So we must first provision the default network CNI plugins on the worker nodes. For this We download the cni-plugins to both the worker nodes, and then extract them to the /opt/cni/bin/ directory.
Once, done it's very easy to deploy the weave plugins on kubernetes. Simply apply the weave deployment definition file from any of the master nodes and it creates the required objects. The weave agents are deployed as daemonsets so an agent runs on each node. Monitor the status of the PODs and wait for them to be provisioned.
Once they are in a running state, run the kubectl get nodes command and you will see that the workers are now ready. We are all set with networking pods in kubernetes.
Ещё видео!