spec.securityContext.supplementalGroups

From wikieduonline
Jump to navigation Jump to search

apiVersion: v1
kind: Pod
metadata:
  name: security-context-demo
spec:
  securityContext:
    runAsUser: 1000
    runAsGroup: 3000
    supplementalGroups: [4000]
  containers:
  - name: sec-ctx-demo
    image: registry.k8s.io/e2e-test-images/agnhost:2.45
    command: [ "sh", "-c", "sleep 1h" ]
    securityContext:
      allowPrivilegeEscalation: false


containerSecurityContext, spec.securityContext, spec.securityContext.runAsUser, spec.securityContext.fsGroup

Advertising: