Created
April 6, 2021 10:25
-
-
Save v1k22/6f94c35d9041a95b1b0be84dc5289ac9 to your computer and use it in GitHub Desktop.
Using ConfigMap in my python application
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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: mypod | |
| spec: | |
| containers: | |
| - name: mypod | |
| image: test/map:1.0 | |
| command: ["python", "/src/test.py"] | |
| imagePullPolicy: Never | |
| volumeMounts: | |
| - name: foo | |
| mountPath: "/src/foo" | |
| readOnly: true | |
| volumes: | |
| - name: foo | |
| configMap: | |
| name: myconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment