forked from SRC-doo/netbox-ssot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcronjob.yaml
30 lines (30 loc) · 812 Bytes
/
cronjob.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
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
volumes:
- name: netbox-ssot-secret
secret:
secretName: netbox-ssot-secret
restartPolicy: OnFailure