CKAD Tips and Tricks
This post is expected to help us see Kubernetes objects in a different way than regular yaml files. Each yaml configuration is a reference file for the cluster components to acquire desired state of our request.
Below are some questions that shows the importance of fields used in yaml files in an effective way.
- What does port, targetPort and NodePort mean for a service of type nodeport ?
ports:
- port: 80
targetPort: 80
nodePort: 30007
2. Why does a pod created using below command keep the pod in CrashloopBackOff ?
kubectl run nginx --image=nginx --command -- sh -c date
