Improve notes to access deployed services (#7031)

This commit is contained in:
Juan Ariza Toledano
2018-08-07 06:57:03 -07:00
committed by k8s-ci-robot
parent d9e5d29879
commit 058bc4da54
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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:
+1 -2
View File
@@ -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 }}