Skip to content

Commit 5a89946

Browse files
committed
Add instructions to change the redis password
1 parent e89bf57 commit 5a89946

File tree

12 files changed

+46
-8
lines changed

12 files changed

+46
-8
lines changed

docs/deployment/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ and dependencies of the operator.
2525
Redis is run in a high-available way. It is also possible to use a Redis
2626
server provided by cloud providers.
2727

28+
**Note:** when deploying to production, it is important to change the password
29+
used to secure Redis. Each example (see below) already changes the
30+
password `mySecurePassword12`. For an example see
31+
the [`overlays/1-namespaced/patches/redis.secret.yaml`](overlays/1-namespaced/patches/redis.secret.yaml)
32+
file.
33+
2834
## Tutorial using minikube
2935

3036
This section provides a step-by-step tutorial on the basic deployment of the
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
21
apiVersion: kustomize.config.k8s.io/v1beta1
32
kind: Kustomization
43

54
resources:
65
- resources/redis-sentinel.yaml
76
- resources/redis.pdb.yaml
87

9-
patchesStrategicMerge:
10-
- patches/redis-node.statefulset.yaml
8+
patches:
9+
- path: patches/redis-node.statefulset.yaml

docs/deployment/overlays/1-namespaced/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ resources:
88
- github.com/openanalytics/shinyproxy-operator/docs/deployment/bases/shinyproxy?ref=v2.0.0
99
- resources/shinyproxy.namespace.yaml
1010
- resources/shinyproxy.shinyproxy.yaml
11+
12+
patches:
13+
- path: patches/redis.secret.yaml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: redis
5+
type: Opaque
6+
data:
7+
# IMPORTANT: replace this password!
8+
redis-password: bXlTZWN1cmVQYXNzd29yZDEy

docs/deployment/overlays/2-clustered/redis/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ resources:
66
- github.com/openanalytics/shinyproxy-operator/docs/deployment/bases/redis-sentinel?ref=v2.0.0
77
- resources/redis.namespace.yaml
88

9-
patchesStrategicMerge:
10-
- resources/redis.secret.yaml
9+
patches:
10+
- path: resources/redis.secret.yaml

docs/deployment/overlays/2-clustered/redis/resources/redis.secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
type: Opaque
66
data:
77
# IMPORTANT: replace this password!
8-
redis-password: bXlTZWN1cmVQYXNzd29yZA==
8+
redis-password: bXlTZWN1cmVQYXNzd29yZDEy

docs/deployment/overlays/2-clustered/shinyproxy-dept2/resources/redis.secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
type: Opaque
66
data:
77
# IMPORTANT: replace this password!
8-
redis-password: bXlTZWN1cmVQYXNzd29yZA==
8+
redis-password: bXlTZWN1cmVQYXNzd29yZDEy

docs/deployment/overlays/2-clustered/shinyproxy/resources/redis.secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ metadata:
55
type: Opaque
66
data:
77
# IMPORTANT: replace this password!
8-
redis-password: bXlTZWN1cmVQYXNzd29yZA==
8+
redis-password: bXlTZWN1cmVQYXNzd29yZDEy

docs/deployment/overlays/3-namespaced-app-ns/shinyproxy/kustomization.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ resources:
88
- github.com/openanalytics/shinyproxy-operator/docs/deployment/bases/shinyproxy?ref=v2.0.0
99
- resources/shinyproxy.namespace.yaml
1010
- resources/shinyproxy.shinyproxy.yaml
11+
12+
patches:
13+
- path: patches/redis.secret.yaml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: redis
5+
type: Opaque
6+
data:
7+
# IMPORTANT: replace this password!
8+
redis-password: bXlTZWN1cmVQYXNzd29yZDEy

0 commit comments

Comments
 (0)