Sunday, January 13, 2019

Deploy a pod

we can do that with pod.xml file input to cluster.


















If it is a multi container pod, we add more containers block of code at the end.
For metadata, we can add labels and versioning as below.



Kubectl create -f pod.xml
It only creates the definition not the deployment done.
Kubectl get pods  à status is shown as waiting with containercreating as reason
Kubectl describe pods à status is shown pending



No comments:

Post a Comment