mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Made the headless client service optional, fixed warning when used as a subchart. Signed-off-by: Berk Soysal <berksoysal@live.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
name: mongodb-replicaset
|
||||
home: https://github.com/mongodb/mongo
|
||||
version: 3.16.1
|
||||
version: 3.16.2
|
||||
appVersion: 3.6
|
||||
description: NoSQL document-oriented database that stores JSON-like documents with
|
||||
dynamic schemas, simplifying the integration of data in content-driven applications.
|
||||
|
||||
@@ -112,6 +112,7 @@ The following table lists the configurable parameters of the mongodb chart and t
|
||||
| `extraVars` | Set environment variables for the main container | `{}` |
|
||||
| `extraLabels` | Additional labels to add to resources | `{}` |
|
||||
| `extraVolumes` | Additional volumes to add to the resources | `[]` |
|
||||
| `clientService.enabled` | Enables the headless client service | `true` |
|
||||
| `global.namespaceOverride` | Override the deployment namespace | Not set (`Release.Namespace`) |
|
||||
|
||||
*MongoDB config file*
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# A headless service for client applications to use
|
||||
{{- if .Values.clientService.enabled -}}
|
||||
# An optional headless service for client applications to use
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
@@ -30,4 +31,4 @@ spec:
|
||||
selector:
|
||||
app: {{ template "mongodb-replicaset.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
|
||||
{{- end -}}
|
||||
|
||||
@@ -3,8 +3,9 @@ nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
# Override the deployment namespace
|
||||
global:
|
||||
# namespaceOverride: ""
|
||||
global: {}
|
||||
# global:
|
||||
# namespaceOverride: ""
|
||||
|
||||
replicas: 3
|
||||
port: 27017
|
||||
@@ -198,3 +199,7 @@ livenessProbe:
|
||||
failureThreshold: 3
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
|
||||
# Enables/disables the headless client service
|
||||
clientService:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user