mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Improve notes to access deployed services (#7017)
This commit is contained in:
committed by
k8s-ci-robot
parent
524967c4f5
commit
f7d19ba07f
@@ -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:
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user