The focus of this lab is to become familar with pod readiness and liveliness.
- Clear all pods
k delete pod --all
- Run the following pod:
kubectl run box --image=busybox -- /bin/sh -c 'i=0; while true; do echo "$i: $(date)"; i=$((i+1)); sleep 1; done'
-
Read the logs of this pod
-
IF there were more than 1 container... how would you view logs of this container?
-
Without looking at the file, apply the manifest
lab5-1.yaml
-
What is the status of the pod?
-
Is it ready?
-
Fix any issue