8 lines
472 B
Plaintext
8 lines
472 B
Plaintext
MongoDB can be accessed via port 27017 on the following DNS name from within your cluster:
|
|
{{ template "mongodb.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
|
|
|
|
To connect to your database run the following command:
|
|
|
|
kubectl run {{ template "mongodb.fullname" . }}-client --rm --tty -i --image bitnami/mongodb --command -- mongo --host {{ template "mongodb.fullname" . }} {{- if .Values.mongodbRootPassword }} -p {{ .Values.mongodbRootPassword }}{{- end -}}
|
|
|