Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
schmittse opened this issue Nov 4, 2024 · 0 comments
Open
1 task done

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

schmittse opened this issue Nov 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@schmittse
Copy link

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
@schmittse schmittse added the enhancement New feature or request label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant