<p>I need to set environment variable in kubernetes slave which is a coreos system.
I have tried using <code>export</code>and <code>declare</code> but it keeps reading each argument as a separate command</p>

<pre><code>apiVersion: v1
kind: ReplicationController
metadata:
  labels:
    name: api
  name: api
spec:
  replicas: 1
  selector:
    name: api
  template:
    metadata:
      labels:
        name: api
    spec:
      containers:
      - env:
        - name: VARIABLE       &lt;---- declare an env variable NAME
          value: "value-of-variable"   &lt;--- here is the value
        - name: ANOTHER_VARIABLE
          value: "another-value"
        image: myregistry/api
        imagePullPolicy: Always
        name: api
</code></pre>
