blob: 7732aa9044a18669796574a43c9a5d6e2c3cecdb (
plain) (
blame)
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: blackbox
namespace: databases
spec:
schedule: "0 15 * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: blackbox
image: lemonsaurus/blackbox:main
imagePullPolicy: Always
envFrom:
- secretRef:
name: blackbox-env
env:
- name: BLACKBOX_CONFIG_PATH
value: "/blackbox/config_file/blackbox.yaml"
volumeMounts:
- mountPath: /blackbox/config_file
name: blackbox-config
- mountPath: /tmp
name: blackbox-tmp
securityContext:
readOnlyRootFilesystem: true
volumes:
- name: blackbox-config
configMap:
name: blackbox-config
- name: blackbox-tmp
emptyDir: {}
restartPolicy: OnFailure
nodeSelector:
# NOTE: This should be updated to match the highest spec
# instance that is being used by the cluster.
node.kubernetes.io/instance-type: g6-standard-4
backoffLimit: 3
|