Skip to content

Instantly share code, notes, and snippets.

@mhrivnak
Created January 7, 2022 21:33
Show Gist options
  • Save mhrivnak/9dcf8af9c4c8d5d018c71e909eb7c0d9 to your computer and use it in GitHub Desktop.
Save mhrivnak/9dcf8af9c4c8d5d018c71e909eb7c0d9 to your computer and use it in GitHub Desktop.
podman env from configmap
apiVersion: v1
kind: ConfigMap
metadata:
name: config
data:
FOO: bar
# 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