mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Improve notes to access deployed services (#7031)
This commit is contained in:
committed by
k8s-ci-robot
parent
d9e5d29879
commit
058bc4da54
@@ -1,5 +1,5 @@
|
||||
name: redis
|
||||
version: 3.7.3
|
||||
version: 3.7.4
|
||||
appVersion: 4.0.10
|
||||
description: Open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.
|
||||
keywords:
|
||||
|
||||
@@ -81,8 +81,7 @@ To connect to your database from outside the cluster execute the following comma
|
||||
|
||||
{{- else if contains "ClusterIP" .Values.master.service.type }}
|
||||
|
||||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "redis.name" . }}" -o jsonpath="{.items[0].metadata.name}")
|
||||
kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME {{ .Values.master.port }}:{{ .Values.master.port }}
|
||||
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "redis.fullname" . }} {{ .Values.master.port }}:{{ .Values.master.port }} &
|
||||
redis-cli -h 127.0.0.1 -p {{ .Values.master.port }} {{- if .Values.usePassword }} -a $REDIS_PASSWORD{{ end }}
|
||||
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user