Created
December 2, 2022 10:50
-
-
Save anjanashankar9/39e303282ff800e79db4258d4615c6e6 to your computer and use it in GitHub Desktop.
This file contains 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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: configmap-example-pod | |
spec: | |
containers: | |
- name: example-container | |
image: alpine | |
command: ["sleep", "3600"] | |
env: | |
# Define the environment variable | |
- name: LICENSE # Environment Variable name, can be different from configmap key | |
valueFrom: | |
configMapKeyRef: | |
name: example-config # The ConfigMap this value comes from. | |
key: license # The key to fetch. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment