title: K8s Create Deployment with EnvFrom
body: <p>I am trying to fire up an influxdb instance on my cluster.</p>
  
  <p>I am following a few different guides and am trying to get it to expose a secret as environment variables using the envFrom operator. Unfortunately I am always getting the <code>Environment: &lt;none&gt;</code> after doing my deployment. Doing an echo on the environment variables I expect yields a blank value as well.</p>
  
  <p>I am running this command to deploy (the script below is in influxdb.yaml): kubectl create deployment <code>influxdb --image=influxdb</code> </p>
  
  <p>Here is my deployment script:</p>
  
  <pre><code> apiVersion: extensions/v1beta1
   kind: Deployment
   metadata:
     creationTimestamp: null
     generation: 1
     labels:
       app: influxdb
       project: pihole
     name: influxdb
   spec:
     progressDeadlineSeconds: 600
     replicas: 1
     revisionHistoryLimit: 10
     selector:
       matchLabels:
         app: influxdb
     strategy:
       rollingUpdate:
         maxSurge: 25%
         maxUnavailable: 25%
       type: RollingUpdate
     template:
       metadata:
         creationTimestamp: null
         labels:
           app: influxdb
       spec:
         containers:
         - name: influxdb
           envFrom:
           - secretRef:
               name: influxdb-creds
           image: docker.io/influxdb:1.7.6
           imagePullPolicy: IfNotPresent
           resources: {}
           terminationMessagePath: /dev/termination-log
           terminationMessagePolicy: File
           volumeMounts:
           - mountPath: /var/lib/influxdb
             name: var-lib-influxdb
         dnsPolicy: ClusterFirst
         restartPolicy: Always
         schedulerName: default-scheduler
         securityContext: {}
         terminationGracePeriodSeconds: 30
         volumes:
         - name: var-lib-influxdb
           persistentVolumeClaim:
             claimName: influxdb
   status: {}
  </code></pre>
  
  <p>The output of kubectl describe secret influxdb-creds is this:</p>
  
  <pre><code>Name:         influxdb-creds
  Namespace:    default
  Labels:       &lt;none&gt;
  Annotations:  &lt;none&gt;
  
  Type:  Opaque
  
  Data
  ====
  INFLUXDB_USERNAME:  4 bytes
  INFLUXDB_DATABASE:  6 bytes
  INFLUXDB_HOST:      8 bytes
  INFLUXDB_PASSWORD:  11 bytes
  </code></pre>