Difference between revisions of "Spec.securityContext.supplementalGroups"

From wikieduonline
Jump to navigation Jump to search
(Created page with " <pre> apiVersion: v1 kind: Pod metadata: name: security-context-demo spec: securityContext: runAsUser: 1000 runAsGroup: 3000 supplementalGroups: [4000] con...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
+
{{lc}}
  
 
<pre>
 
<pre>

Latest revision as of 18:38, 27 October 2024

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: