<p>I have dozens of secrets to pass into a k8 deployment which becomes very verbose, bellow is an example of passing the redis secrets in from the <code>redis-secrets</code> secret. </p>

<pre><code>- name: REDIS_HOST
  valueFrom:
    secretKeyRef:
      name: redis-secrets
      key: REDIS_HOST
- name: REDIS_PASSWORD
  valueFrom:
    secretKeyRef:
      name: redis-secrets
      key: REDIS_PASSWORD
- name: REDIS_PORT
  valueFrom:
    secretKeyRef:
      name: redis-secrets
      key: REDIS_PORT
</code></pre>

<p>Is it possible to pass all the secrets from <code>redis-secrets</code> into the deployment, with the keys of the secrets being the env variable key?</p>

<p>I used this for configmaps.</p>
<p>Same level as env which is <code>.spec.containers</code>:</p>
<pre class="lang-yaml prettyprint-override"><code>envFrom:
   - secretRef:
       name: redis-secrets
</code></pre>
