homework 14.5: complete all tasks

This commit is contained in:
2023-01-17 10:41:50 +07:00
parent 5b9daf3457
commit 96cabba22c
5 changed files with 199 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
---
apiVersion: v1
kind: Pod
metadata:
name: security-context-demo
spec:
containers:
- name: sec-ctx-demo
image: fedora:latest
command: [ "id" ]
# command: [ "sh", "-c", "sleep 1h" ]
securityContext:
runAsUser: 1000
runAsGroup: 3000