title: How to debug Kubernetes CreateContainerConfigError
body: <p>I'm trying to learn configuring Kubernetes and am currently studying configuring pods with configmaps.</p>
  <p>I just created a simple pod with nginx, trying to link it to a configmap called options with the following yaml file:</p>
  <pre><code>apiVersion: v1
  kind: Pod
  metadata:
    creationTimestamp: null
    labels:
      run: pod
    name: pod
  spec:
    containers:
    - image: nginx
      name: pod
      resources: {}
      env:
        - name: options
          valueFrom:
            configMapKeyRef:
              name: option
              key: var5
    dnsPolicy: ClusterFirst
    restartPolicy: Always
  status: {}
  </code></pre>
  <p>When looking at my pods, I see a <code>CreateContainerConfigError</code> error. My question is:
  How can you debug a pod that has a config error? I am not interested in what went wrong in this specific case, is it possible to, for example, go into the pod and see what was wrong?</p>