Kubernetes 101: Excercise 10 for CKA (create a pod, status pod)


Following our journey on the preparation towards the exam CKA (Certified Kubernetes Administrator), we continue this time with exercise number 10. 

Exercise 10:

  • Create a file in the directory /opt/ with the name cluster-info
  • Now figure out how many master nodes and worker nodes are available in your cluster. 
  • Copy this information inside the cluster-info and save it.
Solution:

cd /opt/
ls

touch cluster-info

cd

kubectl get pods

nano cluster-info


Comments

Leave as a comment:

Archive