Skip to content

Instantly share code, notes, and snippets.

@antweiss
Created November 27, 2025 12:34
Show Gist options
  • Select an option

  • Save antweiss/5f67738bc37d5897f78e9e324297a13c to your computer and use it in GitHub Desktop.

Select an option

Save antweiss/5f67738bc37d5897f78e9e324297a13c to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: mypod
name: mypod
spec:
volumes:
- name: config
configMap:
name: myconfig
containers:
- args:
- cat
- /configFiles/myconfig.ini
image: alpine
name: mypod
volumeMounts:
- name: config
mountPath: /configFiles
env:
- name: MYVAR
value: my-nice-value
- name: MYPODNS
valueFrom:
fieldRef:
fieldPath: metadata.namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment