Skip to content

Instantly share code, notes, and snippets.

@anjanashankar9
Created December 2, 2022 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anjanashankar9/217575ccdc9a15e9ff72d0d5c29e0286 to your computer and use it in GitHub Desktop.
Save anjanashankar9/217575ccdc9a15e9ff72d0d5c29e0286 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: configmap-demo-pod
spec:
containers:
- name: demo
image: alpine
command: ["sleep", "3600"]
volumeMounts:
- name: config
mountPath: "/config"
readOnly: true
volumes:
- name: config
configMap:
name: example-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment