mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
34 lines
528 B
YAML
34 lines
528 B
YAML
# Fix to Apply:
|
|
# del(select(di==0).spec.containers[0].securityContext)
|
|
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: remove_example
|
|
|
|
spec:
|
|
containers:
|
|
- name: nginx_container
|
|
securityContext:
|
|
runAsRoot: false
|
|
image: nginx
|
|
|
|
---
|
|
|
|
# Fix to Apply:
|
|
# del(select(di==0).spec.containers[1])
|
|
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: remove_example
|
|
|
|
spec:
|
|
containers:
|
|
- name: nginx_container
|
|
image: nginx
|
|
|
|
- name: container_with_security_issues
|
|
image: image_with_security_issues
|
|
restartPolicy: Always
|