[stable/mongodb] Add service annotations (#7082)

* mongodb: Add option to set service annotations

Fixes #6941

* mongodb: Bump version to 4.1.1
This commit is contained in:
Jonas Flodén
2018-08-10 01:27:13 -07:00
committed by k8s-ci-robot
parent 36fc7e35ce
commit fc0414e2ca
7 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mongodb
version: 4.1.0
version: 4.1.1
appVersion: 4.0.1
description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications.
keywords:
+1
View File
@@ -57,6 +57,7 @@ The following table lists the configurable parameters of the MongoDB chart and t
| `mongodbPassword` | MongoDB custom user password | `random alhpanumeric string (10)` |
| `mongodbDatabase` | Database to create | `nil` |
| `mongodbExtraFlags` | MongoDB additional command line flags | [] |
| `service.annotations` | Kubernetes service annotations | `{}` |
| `service.type` | Kubernetes Service type | `ClusterIP` |
| `service.nodePort` | Port to bind to for NodePort service type | `nil` |
| `port` | MongoDB service port | `27017` |
@@ -8,6 +8,10 @@ metadata:
chart: {{ template "mongodb.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
spec:
type: ClusterIP
clusterIP: None
@@ -8,6 +8,10 @@ metadata:
chart: {{ template "mongodb.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
@@ -8,6 +8,10 @@ metadata:
chart: {{ template "mongodb.chart" . }}
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
+1
View File
@@ -57,6 +57,7 @@ securityContext:
## Kubernetes service type
service:
annotations: {}
type: ClusterIP
port: 27017
+1
View File
@@ -57,6 +57,7 @@ securityContext:
## Kubernetes service type
service:
annotations: {}
type: ClusterIP
port: 27017