-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeployment.yaml
61 lines (61 loc) · 1.48 KB
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
apiVersion: apps/v1
kind: Deployment
metadata:
name: venafi-cleanup-operator
namespace: cert-manager
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
application: venafi-cleanup-operator
template:
metadata:
labels:
application: venafi-cleanup-operator
spec:
containers:
- name: venafi-cleanup-operator
image: devonwarren/venafi-cleanup-operator
resources:
limits:
cpu: 1
memory: 800Mi
requests:
cpu: 100m
memory: 100Mi
env:
- name: VENAFI_DNS_DOMAIN
value: "venafi.example.com"
- name: VENAFI_AUTH_TOKEN
valueFrom:
secretKeyRef:
name: venafi-issuer
key: access-token
- name: VENAFI_CA_CERT
value: "/app/ssl/tls.crt"
livenessProbe:
httpGet:
path: /healthz
port: 8080
readinessProbe:
httpGet:
path: /healthz
port: 8080
securityContext:
capabilities:
drop: ["KILL", "MKNOD", "SYS_CHROOT"]
volumeMounts:
- name: certificate
mountPath: /app/ssl
readOnly: true
serviceAccountName: venafi-cleanup-operator-admin
volumes:
- name: certificate
secret:
secretName: venafi-cert
securityContext:
runAsUser: 1000
runAsGroup: 3000
fsGroup: 2000