Created
January 7, 2022 21:33
-
-
Save mhrivnak/9dcf8af9c4c8d5d018c71e909eb7c0d9 to your computer and use it in GitHub Desktop.
podman env from configmap
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: ConfigMap | |
metadata: | |
name: config | |
data: | |
FOO: bar |
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
# Save the output of this file and use kubectl create -f to import | |
# it into Kubernetes. | |
# | |
# Created with podman-3.4.2 | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
labels: | |
app: demo | |
name: demo | |
spec: | |
containers: | |
- name: sleep | |
command: ["sleep"] | |
args: ["100000"] | |
image: busybox | |
securityContext: | |
capabilities: | |
drop: | |
- CAP_MKNOD | |
- CAP_NET_RAW | |
- CAP_AUDIT_WRITE | |
tty: true | |
envFrom: | |
- configMapRef: | |
name: config | |
optional: false | |
restartPolicy: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment