k8s.io/kubernetes@v1.31.0-alpha.0.0.20240520171757-56147500dadc/hack/testdata/pod-restricted-localhost.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 labels: 5 run: target 6 name: target 7 spec: 8 securityContext: 9 seccompProfile: 10 type: Localhost 11 localhostProfile: dummy.json 12 containers: 13 - image: busybox 14 name: target 15 command: ["/bin/sh", "-c", "sleep 100"] 16 securityContext: 17 runAsUser: 1000 18 runAsGroup: 1000 19 runAsNonRoot: true 20 allowPrivilegeEscalation: false 21 capabilities: 22 drop: 23 - "ALL"