Skip to content

Commit

Permalink
🐛 fix: better kubectl commands in NOTES in redis-ha chart (DandyDevel…
Browse files Browse the repository at this point in the history
…oper#244)

Signed-off-by: Muhammed Hussein Karimi <[email protected]>
  • Loading branch information
mhkarimi1383 authored Mar 8, 2023
1 parent c45d56a commit bb6cb8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/redis-ha/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ To connect to your Redis server:

2. Connect to the Redis master pod that you can use as a client. By default the {{ template "redis-ha.fullname" . }}-server-0 pod is configured as the master:

kubectl exec -it {{ template "redis-ha.fullname" . }}-server-0 sh -n {{ .Release.Namespace }}
kubectl exec -it {{ template "redis-ha.fullname" . }}-server-0 -n {{ .Release.Namespace }} -c redis -- sh

3. Connect using the Redis CLI (inside container):

redis-cli -a <REDIS-PASS-FROM-SECRET>
{{- else }}
1. Run a Redis pod that you can use as a client:

kubectl exec -it {{ template "redis-ha.fullname" . }}-server-0 sh -n {{ .Release.Namespace }}
kubectl exec -it {{ template "redis-ha.fullname" . }}-server-0 -n {{ .Release.Namespace }} -c redis -- sh

2. Connect using the Redis CLI:

Expand Down

0 comments on commit bb6cb8f

Please sign in to comment.