-
Notifications
You must be signed in to change notification settings - Fork 0
/
reload-redis-certs.yaml
48 lines (48 loc) · 1.33 KB
/
reload-redis-certs.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
apiVersion: batch/v1
kind: CronJob
metadata:
name: reload-redis-certs
namespace: services
spec:
# every 3 hours at 12 past the hour
schedule: "12 */3 * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: reload-redis-certs
image: alpine:3.19
command:
- /srv/redis-scripts/reload-certs.sh
env:
- name: REDISCLI_AUTH
valueFrom:
secretKeyRef:
name: redis
key: redis-password
- name: REDIS_URL
valueFrom:
configMapKeyRef:
name: redis
key: address
volumeMounts:
- mountPath: /srv/redis-ca-bundle
name: redis-bundle
readOnly: true
- mountPath: /srv/redis-scripts
name: redis-scripts
readOnly: true
imagePullSecrets:
- name: regcred-replicate-production-us
restartPolicy: OnFailure
volumes:
- configMap:
defaultMode: 493 # 0755
name: redis-r8-scripts
name: redis-scripts
- configMap:
defaultMode: 420 # 0644
name: redis-bundle
optional: true
name: redis-bundle