Last active
June 6, 2023 18:05
-
-
Save parashuramn/b822128c16ecb3a70b180918a379be76 to your computer and use it in GitHub Desktop.
pod.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: Pod | |
apiVersion: v1 | |
metadata: | |
name: pod-using-configmap | |
spec: | |
# Add the ConfigMap as a volume to the Pod | |
volumes: | |
# `name` here must match the name | |
# specified in the volume mount | |
- name: example-configmap-volume | |
# Populate the volume with config map data | |
configMap: | |
# `name` here must match the name | |
# specified in the ConfigMap's YAML | |
name: example-configmap | |
containers: | |
- name: container-configmap | |
image: nginx:1.7.9 | |
# Mount the volume that contains the configuration data | |
# into your container filesystem | |
volumeMounts: | |
# `name` here must match the name | |
# from the volumes section of this pod | |
- name: example-configmap-volume | |
mountPath: /etc/config | |
# matthewpalmer/pod.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment