Improve notes to access deployed services (#7017)

This commit is contained in:
Juan Ariza Toledano
2018-08-07 04:20:14 -07:00
committed by k8s-ci-robot
parent 524967c4f5
commit f7d19ba07f
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mongodb
version: 4.0.4
version: 4.0.5
appVersion: 3.6.6
description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications.
keywords:
+1 -2
View File
@@ -60,8 +60,7 @@ To connect to your database from outside the cluster execute the following comma
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "mongodb.name" . }}" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --namespace {{ .Release.Namespace }} $POD_NAME 27017:27017 &
kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mongodb.fullname" . }} 27017:27017 &
mongo --host 127.0.0.1 {{- if .Values.usePassword }} -p $MONGODB_ROOT_PASSWORD{{- end }}
{{- end }}