Hey all, I'm stuck with the voting section of game of pods. It's asking to creat . . .

Jake H:
Hey all, I’m stuck with the voting section of game of pods. It’s asking to create a deployment with image: kodekloud/examplevotingapp_worker. Tried the image below with and without quotes, single quotes. Same error.
Command:
> kubectl create deployment test --image=“kodekloud/examplevotingapp_worker”
Error:
The Deployment “test” is invalid: spec.template.spec.containers[0].name: Invalid value: “examplevotingapp_worker”: a DNS-1123 label must consist of lower case alphanumeric characters or ‘-’, and must start and end with an alphanumeric character (e.g. ‘my-name’, or ‘123-abc’, regex used for validation is ‘a-z0-9?’)

Tej_Singh_Rana:
Hello, @Jake H
I already answered in the community site.

Tej_Singh_Rana:
underscore not acceptable in the container’s name.

Tej_Singh_Rana:
> a DNS-1123 label must consist of lower case alphanumeric characters or ‘-’, and must start and end with an alphanumeric character (e.g. ‘my-name’, or ‘123-abc’, regex used for validation is ‘a-z0-9?’
use hyphen(-) instead of underscore(_).

Jake H:
so, what is the actual image name?

Jake H:
I tried that. I’ll try again

Tej_Singh_Rana:
There is no issue with the image name.

Tej_Singh_Rana:
See manifest file,

kubectl create deployment test --image=kodekloud/examplevotingapp_worker --dry-run -oyaml

Tej_Singh_Rana:
By default, the container name takes the image name.

Jake H:
yap. Got it! I hope the CKA exam doesn’t have those pitfalls…