Skip to content

Instantly share code, notes, and snippets.

@v1k22
Created April 6, 2021 10:25
Show Gist options
  • Select an option

  • Save v1k22/6f94c35d9041a95b1b0be84dc5289ac9 to your computer and use it in GitHub Desktop.

Select an option

Save v1k22/6f94c35d9041a95b1b0be84dc5289ac9 to your computer and use it in GitHub Desktop.
Using ConfigMap in my python application
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