1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-25 09:06:49 +00:00
kyverno/test/conformance/chainsaw/validating-policies/autogen/autogen-deployments-cronjobs/bad-deployment.yaml

50 lines
988 B
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: bad-deployment-1
labels:
prod: "true"
app: bad-nginx
spec:
replicas: 1
selector:
matchLabels:
prod: "true"
app: bad-nginx
template:
metadata:
labels:
prod: "true"
app: bad-nginx
spec:
containers:
- name: nginx
image: nginx:latest
securityContext:
allowPrivilegeEscalation: true
---
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: bad-cronjob
spec:
schedule: "*/5 * * * *"
concurrencyPolicy: Forbid
jobTemplate:
metadata:
labels:
prod: "true"
spec:
template:
metadata:
labels:
prod: "true"
spec:
containers:
- name: secure-container
image: busybox
command: ["echo", "Hello, world"]
securityContext:
allowPrivilegeEscalation: true
restartPolicy: OnFailure