kind: Pod
apiVersion: v1
metadata:
name: example
labels:
environment: production
app: abc (1)
spec:
restartPolicy: Always (2)
securityContext: (3)
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers: (4)
- name: abc
args:
- sleep
- "1000000"
volumeMounts: (5)
- name: cache-volume
mountPath: /cache (6)
image: registry.access.redhat.com/ubi7/ubi-init:latest (7)
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop: ["ALL"]
resources:
limits:
memory: "100Mi"
cpu: "1"
requests:
memory: "100Mi"
cpu: "1"
volumes: (8)
- name: cache-volume
emptyDir:
sizeLimit: 500Mi