diff --git a/stable/mongodb/Chart.yaml b/stable/mongodb/Chart.yaml index 5d20f475f5..ffcec35251 100644 --- a/stable/mongodb/Chart.yaml +++ b/stable/mongodb/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: mongodb -version: 7.2.2 +version: 7.2.3 appVersion: 4.0.12 description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications. keywords: diff --git a/stable/mongodb/README.md b/stable/mongodb/README.md index 6f560c3c00..f1e29853a8 100644 --- a/stable/mongodb/README.md +++ b/stable/mongodb/README.md @@ -79,11 +79,11 @@ The following table lists the configurable parameters of the MongoDB chart and t | `service.annotations` | Kubernetes service annotations | `{}` | | `service.type` | Kubernetes Service type | `ClusterIP` | | `service.clusterIP` | Static clusterIP or None for headless services | `nil` | +| `service.port` | MongoDB service port | `27017` | | `service.nodePort` | Port to bind to for NodePort service type | `nil` | | `service.loadBalancerIP` | Static IP Address to use for LoadBalancer service type | `nil` | | `service.externalIPs` | External IP list to use with ClusterIP service type | `[]` | | `service.loadBalancerSourceRanges` | List of IP ranges allowed access to load balancer (if supported) | `[]` (does not add IP range restrictions to the service) | -| `port` | MongoDB service port | `27017` | | `replicaSet.enabled` | Switch to enable/disable replica set configuration | `false` | | `replicaSet.name` | Name of the replica set | `rs0` | | `replicaSet.useHostnames` | Enable DNS hostnames in the replica set config | `true` | diff --git a/stable/mongodb/templates/NOTES.txt b/stable/mongodb/templates/NOTES.txt index 69da5c1954..cd9b45edb3 100644 --- a/stable/mongodb/templates/NOTES.txt +++ b/stable/mongodb/templates/NOTES.txt @@ -17,7 +17,7 @@ ** Please be patient while the chart is being deployed ** -MongoDB can be accessed via port 27017 on the following DNS name from within your cluster: +MongoDB can be accessed via port {{ .Values.service.port }} on the following DNS name from within your cluster: {{ template "mongodb.fullname" . }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }} @@ -60,7 +60,7 @@ To connect to your database from outside the cluster execute the following comma {{- else if contains "ClusterIP" .Values.service.type }} - kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mongodb.fullname" . }} 27017:27017 & + kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "mongodb.fullname" . }} {{ .Values.service.port }}:{{ .Values.service.port }} & mongo --host 127.0.0.1 {{- if .Values.usePassword }} --authenticationDatabase admin -p $MONGODB_ROOT_PASSWORD{{- end }} {{- end }} diff --git a/stable/mongodb/templates/svc-primary-rs.yaml b/stable/mongodb/templates/svc-primary-rs.yaml index 4d372f793b..be5c3c6cb9 100644 --- a/stable/mongodb/templates/svc-primary-rs.yaml +++ b/stable/mongodb/templates/svc-primary-rs.yaml @@ -27,7 +27,7 @@ spec: {{- end }} ports: - name: mongodb - port: 27017 + port: {{ .Values.service.port }} targetPort: mongodb {{- if .Values.service.nodePort }} nodePort: {{ .Values.service.nodePort }} diff --git a/stable/mongodb/templates/svc-standalone.yaml b/stable/mongodb/templates/svc-standalone.yaml index 73a3951f2e..30867de4c4 100644 --- a/stable/mongodb/templates/svc-standalone.yaml +++ b/stable/mongodb/templates/svc-standalone.yaml @@ -27,7 +27,7 @@ spec: {{- end }} ports: - name: mongodb - port: 27017 + port: {{ .Values.service.port }} targetPort: mongodb {{- if .Values.service.nodePort }} nodePort: {{ .Values.service.nodePort }}