In this hands-on lab, you will be provided with two servers. They have been partially configured for use with Kubernetes and containerd.
The cluster has been initialized, so you need to add a Node to the cluster, create an `nginx` Pod, and run the Pod. Verify successful completion by confirming the output is visible from the Nginx Pod.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Log In to the Provided Server
Log in to the server as
cloud_user
with the provided password to ensure you can log in. When the fileSERVER-READY
is visible in the/home/cloud_user
folder, then you can follow along with the objectives.- Add Your Worker Node to the Cluster
Add your worker Node
knode1
to the cluster using the information provided in the cluster-info text file, and check if it is ready for use.- Create an Nginx Pod File
You will create a Pod file that runs the Nginx image. Use port
80
for its output, and call the file,nginx-pod.yml
.- Create a Pod from the File You Created
Using kubectl, create the Pod with the
nginx-pod.yml
file.- Test the Pod Is Working
Test the Pod you created is working.
You should use the IP address associated with the Pod and check from the
knode1
server.