Hi @mmumshad
While creating a Replication controller with yaml file as shown in below screenshot
we gave the pod name: myapp-pod
then when we ran command kubectl get pods
why is the name of the pod mentioned as myapp-rc (myapp-rc is name of replication controller according to the yaml file )
Hello, @Aashiqahamed
In this case, it’s not a single Pod. We are using Pod template in the ReplicationController. So all created Pod, will contain name of the RC.
Hi @Tej-Singh-Rana thank you for your reply.
In that case why to define the name of pod in replicas spec template
Hello, @Aashiqahamed
Even If you will not write name, it will not impact in your resources.
1 Like