Skip to content

[FEATURE] K8S Use a ConfigMap for global config #1658

@schmittse

Description

@schmittse

What's needed and why?

Right now we have to set env variables on each deploy/daemonSet, a better approch would be to define a configMap and load the Env from this ConfigMap.

Implementations ideas (optional)

From official documentation you can load env from a ConfigMap :

apiVersion: v1
kind: Pod
metadata:
  name: dapi-test-pod
spec:
  containers:
    - name: test-container
      image: registry.k8s.io/busybox
      command: [ "/bin/sh", "-c", "env" ]
      envFrom:
      - configMapRef:
          name: special-config
  restartPolicy: Never

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnext majorWill be implemented in the next major version.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions