You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bitnami/redis Add namespaceOverride capability to redis chart (#21479)
* Add namespaceOverride capability to redis chart
Signed-off-by: Juan Gonzalez <jgfm@novonordisk.com>
* Replace blank char with space
Signed-off-by: Juan Gonzalez <jgfm@novonordisk.com>
---------
Signed-off-by: Juan Gonzalez <jgfm@novonordisk.com>
kubectl get pods --namespace {{ include "common.names.namespace" . }} -l app.kubernetes.io/instance={{ .Release.Name }}
16
16
17
17
Access the pod you want to debug by executing
18
18
19
-
kubectl exec --namespace {{ .Release.Namespace }} -ti <NAME OF THE POD> -- bash
19
+
kubectl exec --namespace {{ include "common.names.namespace" . }} -ti <NAME OF THE POD> -- bash
20
20
21
21
In order to replicate the container startup scripts execute this command:
22
22
@@ -58,55 +58,55 @@ For Redis Sentinel:
58
58
59
59
Redis® can be accessed via port {{ .Values.sentinel.service.ports.redis }} on the following DNS name from within your cluster:
60
60
61
-
{{ template "common.names.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }} for read only operations
61
+
{{ template "common.names.fullname" . }}.{{ include "common.names.namespace" . }}.svc.{{ .Values.clusterDomain }} for read only operations
62
62
63
63
For read/write operations, first access the Redis® Sentinel cluster, which is available in port {{ .Values.sentinel.service.ports.sentinel }} using the same domain name above.
64
64
65
65
{{- else }}
66
66
67
67
Redis® can be accessed on the following DNS names from within your cluster:
kubectl cp --namespace {{ include "common.names.namespace" . }} /path/to/client.cert redis-client:/tmp/client.cert
100
+
kubectl cp --namespace {{ include "common.names.namespace" . }} /path/to/client.key redis-client:/tmp/client.key
101
+
kubectl cp --namespace {{ include "common.names.namespace" . }} /path/to/CA.cert redis-client:/tmp/CA.cert
102
102
103
103
{{- end }}
104
104
105
105
Use the following command to attach to the pod:
106
106
107
107
kubectl exec --tty -i redis-client \
108
108
{{- if and (.Values.networkPolicy.enabled) (not .Values.networkPolicy.allowExternal) }}--labels="{{ template "common.names.fullname" . }}-client=true" \{{- end }}
109
-
--namespace {{ .Release.Namespace }} -- bash
109
+
--namespace {{ include "common.names.namespace" . }} -- bash
110
110
111
111
2. Connect using the Redis® CLI:
112
112
@@ -133,42 +133,42 @@ To connect to your database from outside the cluster execute the following comma
133
133
{{- if and (eq .Values.architecture "replication") .Values.sentinel.enabled }}
134
134
{{- if contains "NodePort" .Values.sentinel.service.type }}
135
135
136
-
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
0 commit comments