"K8s allowPrivilegeEscalation"의 두 판 사이의 차이

 
31번째 줄: 31번째 줄:
* [[runAsUser]]
* [[runAsUser]]
* [[k8s privileged]]
* [[k8s privileged]]
* [[쿠버네티스 Security Context]]
* [[k8s securityContext]]


==참고==
==참고==

2024년 6월 8일 (토) 22:37 기준 최신판

1 개요[ | ]

allowPrivilegeEscalation
spec.containers.securityContext.allowPrivilegeEscalation
apiVersion: v1
kind: Pod
metadata:
  name: security-context-demo
spec:
  securityContext:
    runAsUser: 1000
    runAsGroup: 3000
    fsGroup: 2000
  volumes:
  - name: sec-ctx-vol
    emptyDir: {}
  containers:
  - name: sec-ctx-demo
    image: busybox
    command: [ "sh", "-c", "sleep 1h" ]
    volumeMounts:
    - name: sec-ctx-vol
      mountPath: /data/demo
    securityContext:
      allowPrivilegeEscalation: false

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}