Patching Live Kubernetes Deployments and Draining a Node for Maintenance
This lab guides the student through the creation of a cluster using kops. Once created the cluster is used to deploy four replicas of the NGINX web server. Then the kubectl patch command is used to update the version of NGINX running in the pod containers. The last exercise is to drain a node for maintenance
This lab allows the student to instantiate a cluster using kops. Then they may use a deployment spec to deploy four replicas of the NGINX web server. The kubectl patch command is then used to upgrade the pod spec while the deployment is live. This causes a rolling update of the container instances. The student may then interrogate the pod containers to verify that the upgrade was done. Lastly, the kubectl drain command is used to cordon a worker node and evict the running pod instances. An uncordon command is used to rejoin that node.