Skip to content

Instantly share code, notes, and snippets.

@GaetanoPiazzolla
Created July 21, 2021 07:42
Show Gist options
  • Save GaetanoPiazzolla/1f9a735c5f498a6165a8039700405d34 to your computer and use it in GitHub Desktop.
Save GaetanoPiazzolla/1f9a735c5f498a6165a8039700405d34 to your computer and use it in GitHub Desktop.
Using config map as valueFrom
... containers:
- name: test-container
image: k8s.gcr.io/busybox
command: [ "/bin/sh", "-c", "env" ]
env:
- name: ENV_API_BACKEND_URL
valueFrom:
configMapKeyRef:
name: the_configmap_name_id
key: ENV_API_BACKEND_URL
@GaetanoPiazzolla
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment