kubernetes-up-and-running/19-1-kuard-pod-securitycontext.yaml
Lachlan Evenson 2d09842027
Chapter 19 updates
Signed-off-by: Lachlan Evenson <lachlan.evenson@gmail.com>
2024-01-29 21:49:09 -08:00

22 lines
455 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: kuard
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
runAsGroup: 3000
fsGroup: 2000
containers:
- image: gcr.io/kuar-demo/kuard-amd64:blue
name: kuard
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
privileged: false
ports:
- containerPort: 8080
name: http
protocol: TCP