CKA Learning path 12

Using DaemonSets in Kubernetes Introduction DaemonSets are a great way to ensure a pod replica runs dynamically on each node. They even automatically handle the creation and removal of such pods when nodes join or leave the cluster. In this lab, you will have the opportunity to practice your skills with DaemonSets by using them to run pods on all nodes in an existing cluster. Solution Log in to the lab server using the credentials provided:...

CKA Learning path 11

Assigning a Kubernetes Pod to a Specific Node Introduction Kubernetes scheduling usually doesn’t need much help in order to determine which node to run a pod on. However, you may occasionally wish to have a little more control. In this lab, you will be able to practice the process of ensuring a pod runs on a specific node. Solution Log in to the lab server using the credentials provided: ssh cloud_user@<PUBLIC_IP_ADDRESS> Configure the auth-gateway Pod to Only Run on k8s-worker2 Attach a label to k8s-worker2....

CKA Learning path 10

Using Init Containers in Kubernetes Introduction Init containers are a great way to customize container startup. This lab will allow you to test your knowledge of init containers by using them to solve problems in an existing Kubernetes cluster. Solution Log in to the provided lab server using the credentials provided: ssh cloud_user@<PUBLIC_IP_ADDRESS> Create a Sample Pod That Uses an Init Container to Delay Startup Open the pod descriptor file:...

CKA Learning path 9

Building Self-Healing Containers in Kubernetes Introduction Kubernetes offers several features that can be used together to create self-healing applications in a variety of scenarios. In this lab, you will be able to practice your skills at using features such as probes and restart policies to create a container application that is automatically healed when it stops working. Solution Log in to the provided lab server using the credentials provided: ssh cloud_user@<PUBLIC_IP_ADDRESS> Set a Restart Policy to Restart the Container When It Is Down Find the pod that needs to be modified:...

CKA Learning path 8

Passing Configuration Data to a Kubernetes Container Introduction Kubernetes has multiple options for storing and managing configuration data. This lab will focus on the process of passing that configuration data to your containers in order to configure applications. You will have the opportunity to work with application configuration in Kubernetes hands-on by passing some existing configuration data stored in Secrets and ConfigMaps to a container. Solution Log in to the provided lab server using the credentials provided:...