forked from bambash/helm-cronjobs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.yaml
90 lines (90 loc) · 2.12 KB
/
values.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
jobs:
# first cron
- name: hello-world
image:
repository: hello-world
tag: latest
imagePullPolicy: IfNotPresent
schedule: "* * * * *"
failedJobsHistoryLimit: 1
successfulJobsHistoryLimit: 3
concurrencyPolicy: Allow
restartPolicy: OnFailure
# second cron
- name: hello-ubuntu
image:
repository: ubuntu
tag: latest
imagePullPolicy: Always
schedule: "*/5 * * * *"
command: ["/bin/bash"]
args:
- "-c"
- "echo $(date) - hello from ubuntu"
resources:
limits:
cpu: 50m
memory: 256Mi
requests:
cpu: 50m
memory: 256Mi
failedJobsHistoryLimit: 1
successfulJobsHistoryLimit: 3
concurrencyPolicy: Forbid
restartPolicy: OnFailure
# third cron
- name: hello-env-var
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 2000
image:
repository: busybox
tag: latest
imagePullPolicy: Always
# optional env vars
env:
- name: ECHO_VAR
value: "busybox"
envFrom:
- secretRef:
name: secret_data
- configMapRef:
name: config_data
schedule: "* * * * *"
command: ["/bin/sh"]
args:
- "-c"
- "echo $(date) - hello from $ECHO_VAR"
- "echo $(date) - loaded secret $secret_data"
- "echo $(date) - loaded config $config_data"
serviceAccount:
name: "busybox-serviceaccount"
resources:
limits:
cpu: 50m
memory: 256Mi
requests:
cpu: 50m
memory: 256Mi
failedJobsHistoryLimit: 1
successfulJobsHistoryLimit: 3
concurrencyPolicy: Forbid
restartPolicy: Never
nodeSelector:
type: infra
tolerations:
- effect: NoSchedule
operator: Exists
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/e2e-az-name
operator: In
values:
- e2e-az1
- e2e-az2