Files
kubernetes/hack/testdata/pod-run-as-non-root.yaml
Keita Mochizuki 07a275437f kubectl debug: Display a warning message that the debug container's capabilities may not work with a non-root user (#127696)
* Add warning message about capabilities of debug container

* fix1

* fix2

* fix3
2025-03-19 00:50:30 -07:00

16 lines
259 B
YAML

apiVersion: v1
kind: Pod
metadata:
labels:
run: target
name: target
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
containers:
- image: busybox
name: target
command: ["/bin/sh", "-c", "sleep 100"]