Viny Machado
Viny Machado

Reputation: 629

Kubernete CreateContainerConfigError

I'm trying to deploy an app on k8s but I keep getting the following error

NAME                READY   STATUS                       RESTARTS   AGE
pod_name            1/2     CreateContainerConfigError   0          26m

If I try to see what went wrong using kubectl describe pod pod_name I get the following error: Error from server (NotFound): pods "pod_name" not found

Upvotes: 1

Views: 1688

Answers (4)

Viny Machado
Viny Machado

Reputation: 629

One of the parameters key in the file was misspelling making the deploy fail. Unfortunately, the error message was not helpful...

Upvotes: 1

Sergio Tanaka
Sergio Tanaka

Reputation: 1435

the message Error from server (NotFound): pods "pod_name" not found is very clear for me that you deployed your pod in a different namespace

In your deployment yaml file check the value of namespace and execute the command

kubectl describe pod pod_name -n namespace_from_yaml_file

Upvotes: 0

Vishal
Vishal

Reputation: 145

CreateContainerConfigError means kubernetes is unable to find the configmap you have provided for volume.
Make sure both pod and configmap are deployed in same namespace.
Do cross verify the name of configmap you have created and configmap name you have specified in pod volume definition is same.

Upvotes: 0

B. Johnson
B. Johnson

Reputation: 36

You didn't include the command that generated the output shown, so it's hard to tell. Perhaps you're looking at different namespaces?

Upvotes: 1

Related Questions