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

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
태그: 되돌려진 기여
31번째 줄: 31번째 줄:
* [[runAsUser]]
* [[runAsUser]]
* [[쿠버네티스 Security Context]]
* [[쿠버네티스 Security Context]]
* [[Error: container's runAsUser breaks non-root policy]]


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

2022년 4월 8일 (금) 17:01 판

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 }}