title: envFrom configmap in Pod template of Deployment
body: <p>We want to use <code>envFrom</code> inside a Deployment's Pod template like below:</p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Deployment
  metadata:
    name: mydeployment
  spec:
    replicas: 3
    template:
      spec:
        containers:
        - name: myservice
          image: myimage:latest
          envFrom:
            - configMapRef:
              name: myconfigmap
  </code></pre>
  
  <p>Error msg:</p>
  
  <blockquote>
    <p>error: error validating "k8s/deployment.yaml": error validating data: found invalid field name for v1.EnvFromSource</p>
  </blockquote>
  
  <p>Using K8s 1.7</p>
  
  <p>Edit:
  ConfigMap</p>
  
  <pre><code>apiVersion: v1
  kind: ConfigMap
  metadata:
    name: myconfigmap
  data:
    TEST1: Hello world
    TEST2: test
  </code></pre>
  
  <p>The config map is also shown on the ConfigMaps board in the k8s dashboard.</p>