forked from spotahome/redis-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsidecars.yaml
55 lines (55 loc) · 928 Bytes
/
sidecars.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
---
apiVersion: v1
kind: Namespace
metadata:
name: sc
---
apiVersion: v1
kind: Secret
metadata:
name: redis-auth
namespace: sc
type: Opaque
stringData:
password: pass
---
apiVersion: databases.spotahome.com/v1
kind: RedisFailover
metadata:
name: sidecars
namespace: sc
spec:
auth:
secretPath: redis-auth
sentinel:
initContainers:
- name: echo
image: busybox
command:
- "/bin/sh"
- "-c"
- "echo 'init container sentinel'"
replicas: 3
extraContainers:
- name: busybox
image: busybox
command:
- "/bin/sh"
- "-c"
- "sleep infinity"
redis:
replicas: 3
initContainers:
- name: echo
image: busybox
command:
- "/bin/sh"
- "-c"
- "echo 'init container redis'"
extraContainers:
- name: busybox
image: busybox
command:
- "/bin/sh"
- "-c"
- "sleep infinity"