Is it wrong to create a pod as part of deployment instead of creating pod direct . . .

Ravi Vijaykumar:
Is it wrong to create a pod as part of deployment instead of creating pod directly using kubectl run if question in CKAD is on the lines of creating a pod?

Asking to simplify things in case i have to modify something on pod etc easier to do via deployment.

Daz Mac:
The question will be clear in the exam. It is fine to use run. If they ask for a pod then use kubectl run if they ask for deployment then use kubectl create

Ravi Vijaykumar:
thanks! correct, but what if they ask pod and i use create deployment because it anyway creates a pod, in which case i can have the luxury to easily modify in case something is wrong etc

Tawanda E Mandizha:
Pods from a deployment usually have some automatically generated characters appended on the pod name hence already you will have failed to meet the requirements of the question. For example if the question requires you to create a pod named alpha, then you create a deployment with the name alpha, the pod name will be something like alpha-123aqww.

Ravi Vijaykumar:
ah ok, that makes sense :slightly_smiling_face:

i was only thinking in direction what if i created something wrong. Deletion of pod takes so much time, instead deployment can take care of it.

Thanks!