1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/definitions/manifest/deployment.yaml

94 lines
2.6 KiB
YAML
Raw Normal View History

2020-06-05 13:42:53 -07:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: kyverno
name: kyverno
labels:
app: kyverno
spec:
selector:
matchLabels:
app: kyverno
replicas: 1
template:
metadata:
labels:
app: kyverno
spec:
serviceAccountName: kyverno-service-account
2020-10-22 11:26:22 -07:00
securityContext:
runAsNonRoot: true
2020-06-05 13:42:53 -07:00
initContainers:
- name: kyverno-pre
2020-08-10 17:20:48 -07:00
image: nirmata/kyvernopre:v1.1.9
imagePullPolicy: Always
2020-10-22 11:26:22 -07:00
securityContext:
runAsUser: 1000
runAsNonRoot: true
privileged: false
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- all
2020-06-05 13:42:53 -07:00
containers:
- name: kyverno
2020-10-22 11:26:22 -07:00
image: nirmata/kyverno:latest
2020-06-05 13:42:53 -07:00
imagePullPolicy: Always
args:
- "--filterK8Resources=[Event,*,*][*,kube-system,*][*,kube-public,*][*,kube-node-lease,*][Node,*,*][APIService,*,*][TokenReview,*,*][SubjectAccessReview,*,*][*,kyverno,*][Binding,*,*][ReplicaSet,*,*]"
# customize webhook timeout
#- "--webhooktimeout=4"
# enable profiling
# - "--profile"
- "-v=2"
2020-06-05 13:42:53 -07:00
ports:
2020-10-22 11:26:22 -07:00
- containerPort: 9443
name: https
protocol: TCP
2020-06-05 13:42:53 -07:00
env:
- name: INIT_CONFIG
value: init-config
- name: KYVERNO_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: KYVERNO_SVC
value: kyverno-svc
2020-10-22 11:26:22 -07:00
securityContext:
runAsUser: 1000
runAsNonRoot: true
privileged: false
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- all
2020-06-05 13:42:53 -07:00
resources:
requests:
memory: "50Mi"
cpu: "100m"
limits:
memory: "128Mi"
livenessProbe:
httpGet:
path: /health/liveness
2020-10-22 12:48:04 -07:00
port: 9443
2020-06-05 13:42:53 -07:00
scheme: HTTPS
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 4
successThreshold: 1
readinessProbe:
httpGet:
path: /health/readiness
2020-10-22 12:48:04 -07:00
port: 9443
2020-06-05 13:42:53 -07:00
scheme: HTTPS
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 4
successThreshold: 1