title: Kubernetes import environment variables from a different .yml file
body: <p>Is it possible to import environment variables from a different .yml file into the deployment file. My container requires environment variables.</p>
  
  <p><em>deployment.yml</em></p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Deployment
  metadata:
    name: api-deployment
  spec:
    replicas: 1
    template:
      metadata:
        labels:
          app: api
      spec:
        containers:
        - name: api
          image: &lt;removed&gt;
          imagePullPolicy: Always
          env:
          - name: NODE_ENV
            value: "TEST"
          ports:
          - containerPort: 8080
        imagePullSecrets:
        - name: regcred
  </code></pre>
  
  <p><em>vars.yml</em></p>
  
  <pre><code>NODE_ENV: TEST
  </code></pre>
  
  <p>What i'd like is to declare my variables in a seperate file and simply import them into the deployment.</p>