쿠버네티스 security context1 [Kubernetes] 쿠버네티스 Security Contexts 사용 예제 다음과 같이 ubuntu-sleeper 파드/컨테이너에 SYS_TIME 및 NET_ADMIN 권한을 부여합니다. Pod Name: ubuntu-sleeper Image Name: ubuntu SecurityContext: Capability SYS_TIME SecurityContext: Capability NET_ADMIN ubuntu_sleeper_sc.yaml apiVersion: v1 kind: Pod metadata: name: ubuntu-sleeper namespace: default spec: containers: - command: - sleep - "4800" image: ubuntu name: ubuntu-sleeper securityContext: capabilities: add: [.. 2023. 5. 2. 이전 1 다음 반응형