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

(새 문서: {{소문자}} ==개요== ;allowPrivilegeEscalation ;spec.containers.securityContext.allowPrivilegeEscalation <source lang='yaml'> apiVersion: v1 kind: Pod metadata: name: security...)
 
4번째 줄: 4번째 줄:
;spec.containers.securityContext.allowPrivilegeEscalation
;spec.containers.securityContext.allowPrivilegeEscalation


<source lang='yaml'>
<source lang='yaml' highlight='21'>
apiVersion: v1
apiVersion: v1
kind: Pod
kind: Pod

2019년 12월 10일 (화) 01:29 판

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