[stable/parse] Use port-forward to pods (#9600)

* Fix typo

Signed-off-by: juan131 <juan@bitnami.com>

* [stable/parse] Use port-forward to pods

Signed-off-by: juan131 <juan@bitnami.com>
This commit is contained in:
Juan Ariza Toledano
2018-11-28 04:36:34 -08:00
committed by k8s-ci-robot
parent beb6018841
commit 067e4f3068
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: parse
version: 5.0.1
version: 5.0.2
appVersion: 3.1.2
description: Parse is a platform that enables users to add a scalable and powerful backend to launch a full-featured app for iOS, Android, JavaScript, Windows, Unity, and more.
keywords:
+5 -3
View File
@@ -24,8 +24,9 @@ Parse Server
{{- else if contains "ClusterIP" .Values.service.type }}
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "parse.fullname" . }} {{ .Values.server.port }}:{{ .Values.server.port }}
export SERVICE_IP=127.0.0.1:{{ .Values.server.port }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "parse.name" . }},component=server -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME 1337:1337 &
export SERVICE_IP=127.0.0.1:1337
{{- end }}
@@ -67,7 +68,8 @@ service:
{{- if eq .Values.service.type "ClusterIP" }}
echo "Parse Dashboard URL: http://127.0.0.1:4040/"
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "parse.fullname" . }} 4040:4040
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l app={{ template "parse.name" . }},component=dashboard -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME 4040:4040 &
{{- else }}