-
Notifications
You must be signed in to change notification settings - Fork 7
/
cronjob.yaml
40 lines (40 loc) · 1.14 KB
/
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
31
32
33
34
35
36
37
38
39
40
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:v1.7.10
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
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
runAsNonRoot: true
readOnlyRootFilesystem: true
runAsUser: 10001
runAsGroup: 10001
seccompProfile:
type: RuntimeDefault
volumes:
- name: netbox-ssot-secret
secret:
secretName: netbox-ssot-secret
restartPolicy: Never