Skip to content

Commit

Permalink
Mongodb/ipv6 (helm#7674)
Browse files Browse the repository at this point in the history
* suport for:
- headless services and static clusterIP
- option to disable the IPV6 even in standalone deploymnet.

Signed-off-by: Arvind Gupta <guptaarvindk@gmail.com>

* documentation for previous commit (clusterIP, headless service, ipv6 disable)

Signed-off-by: Arvind Gupta <guptaarvindk@gmail.com>

* bumped chart version.
fixed typo in values.yaml

Signed-off-by: Arvind Gupta <guptaarvindk@gmail.com>
  • Loading branch information
guptaarvindk authored and k8s-ci-robot committed Oct 23, 2018
1 parent 4cd0662 commit 44ef3e6
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/mongodb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mongodb
version: 4.6.1
version: 4.6.2
appVersion: 4.0.3
description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications.
keywords:
Expand Down
1 change: 1 addition & 0 deletions stable/mongodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ The following table lists the configurable parameters of the MongoDB chart and t
| `mongodbExtraFlags` | MongoDB additional command line flags | [] |
| `service.annotations` | Kubernetes service annotations | `{}` |
| `service.type` | Kubernetes Service type | `ClusterIP` |
| `service.clusterIP` | Static clusterIP or None for headless services | `nil` |
| `service.nodePort` | Port to bind to for NodePort service type | `nil` |
| `port` | MongoDB service port | `27017` |
| `replicaSet.enabled` | Switch to enable/disable replica set configuration | `false` |
Expand Down
6 changes: 6 additions & 0 deletions stable/mongodb/templates/deployment-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ spec:
{{- end }}
- name: MONGODB_EXTRA_FLAGS
value: {{ default "" .Values.mongodbExtraFlags | join " " }}
- name: MONGODB_ENABLE_IPV6
{{- if .Values.mongodbEnableIPv6 }}
value: "yes"
{{- else }}
value: "no"
{{- end }}
ports:
- name: mongodb
containerPort: 27017
Expand Down
3 changes: 3 additions & 0 deletions stable/mongodb/templates/svc-primary-rs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
ports:
- name: mongodb
port: 27017
Expand Down
3 changes: 3 additions & 0 deletions stable/mongodb/templates/svc-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
ports:
- name: mongodb
port: 27017
Expand Down
1 change: 1 addition & 0 deletions stable/mongodb/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ clusterDomain: cluster.local
service:
annotations: {}
type: ClusterIP
# clusterIP: None
port: 27017

## Specify the nodePort value for the LoadBalancer and NodePort service types.
Expand Down
1 change: 1 addition & 0 deletions stable/mongodb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ clusterDomain: cluster.local
service:
annotations: {}
type: ClusterIP
# clusterIP: None
port: 27017

## Specify the nodePort value for the LoadBalancer and NodePort service types.
Expand Down

0 comments on commit 44ef3e6

Please sign in to comment.