News for hackers. Stuff that matters.
Re:Show HN: kenv – an environment file injector for Kubernet... by wstrange on Wednesday September 28, 2016 @01:31PM (#12599559)
Helm is another great option here.

Helm uses Go templates. You define your variables in a top level values.yaml, and then install the chart to your cluster. The variables get expanded on chart install.

Here is a snippet from a deployment:

    env:
        {{- range $key, $value := .Values.my_env_vars }}
          - name: {{ $key }}
            value: {{ $value  | quote }}
        {{ end }}

There are no comments on this comment yet.