mirror of
https://github.com/Dannecron/netology-devops.git
synced 2025-12-25 23:32:37 +03:00
homework 14.5: complete all tasks
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user