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/good-deployment.yaml

49 lines
947 B
YAML
Raw Normal View History

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