Skip to content

Instantly share code, notes, and snippets.

@darmen
Created August 26, 2022 15:36
Show Gist options
  • Save darmen/7055e2ab9c6c11c79da2bd50f7d65e7f to your computer and use it in GitHub Desktop.
Save darmen/7055e2ab9c6c11c79da2bd50f7d65e7f to your computer and use it in GitHub Desktop.
a simple Kubernetes container to print an env var from a comfig map
apiVersion: v1
kind: Pod
metadata:
name: test-pod
spec:
containers:
- name: test-container
image: registry.k8s.io/busybox
command: [ "echo" ]
args: [ "$(ENV_VAR_NAME)" ]
envFrom:
- configMapRef:
name: config-map-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment