-
Notifications
You must be signed in to change notification settings - Fork 4
/
cronjob_with_cert.yaml
36 lines (36 loc) · 1.01 KB
/
cronjob_with_cert.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
apiVersion: batch/v1
kind: CronJob
metadata:
name: netbox-ssot
spec:
schedule: "*/20 * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: netbox-ssot
image: ghcr.io/bl4ko/netbox-ssot:latest
imagePullPolicy: Always
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 100m
memory: 128Mi
volumeMounts:
- name: netbox-ssot-secret
mountPath: /app/config.yaml
subPath: config.yaml
- name: netbox-ssot-cert
mountPath: /app/sub.pem
subPath: sub.pem
volumes:
- name: netbox-ssot-secret
secret:
secretName: netbox-ssot-secret
- name: netbox-ssot-cert
secret:
secretName: netbox-ssot-cert
restartPolicy: OnFailure