mirror of
https://github.com/bitnami/charts.git
synced 2026-03-13 14:57:24 +08:00
Synchronize upstreamed folder to 11534af5a
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: mongodb
|
||||
version: 5.13.2
|
||||
version: 5.14.0
|
||||
appVersion: 4.0.7
|
||||
description: NoSQL document-oriented database that stores JSON-like documents with dynamic schemas, simplifying the integration of data in content-driven applications.
|
||||
keywords:
|
||||
|
||||
@@ -97,8 +97,8 @@ The following table lists the configurable parameters of the MongoDB chart and t
|
||||
| `persistence.accessMode` | Use volume as ReadOnly or ReadWrite | `ReadWriteOnce` |
|
||||
| `persistence.size` | Size of data volume | `8Gi` |
|
||||
| `persistence.annotations` | Persistent Volume annotations | `{}` |
|
||||
| `persistence.existingClaim` | Name of an existing PVC to use (avoids creating one if this is given) | `nil` |
|
||||
| `extraInitContainers` | Additional init containers as a string to be passed to the `tpl` function | `{}` | |
|
||||
| `persistence.existingClaim` | Name of an existing PVC to use (avoids creating one if this is given) | `nil` |
|
||||
| `extraInitContainers` | Additional init containers as a string to be passed to the `tpl` function | `{}` | |
|
||||
| `livenessProbe.enabled` | Enable/disable the Liveness probe | `true` |
|
||||
| `livenessProbe.initialDelaySeconds` | Delay before liveness probe is initiated | `30` |
|
||||
| `livenessProbe.periodSeconds` | How often to perform the probe | `10` |
|
||||
@@ -113,6 +113,11 @@ The following table lists the configurable parameters of the MongoDB chart and t
|
||||
| `readinessProbe.successThreshold` | Minimum consecutive successes for the probe to be considered successful after having failed. | `1` |
|
||||
| `initConfigMap.name` | Custom config map with init scripts | `nil` |
|
||||
| `configmap` | MongoDB configuration file to be used | `nil` |
|
||||
| `ingress.enabled` | Enables Ingress. Tested with nginx-ingress version `1.3.1` | `false` |
|
||||
| `ingress.annotations` | Ingress annotations | `{}` |
|
||||
| `ingress.labels` | Custom labels | `{}` |
|
||||
| `ingress.hosts` | Ingress accepted hostnames | `[]` |
|
||||
| `ingress.tls` | Ingress TLS configuration | `[]` |
|
||||
| `metrics.enabled` | Start a side-car prometheus exporter | `false` |
|
||||
| `metrics.image.registry` | MongoDB exporter image registry | `docker.io` |
|
||||
| `metrics.image.repository` | MongoDB exporter image name | `forekshub/percona-mongodb-exporter` |
|
||||
@@ -207,3 +212,18 @@ Use the workaround below to upgrade from versions previous to 5.0.0. The followi
|
||||
```consoloe
|
||||
$ kubectl delete statefulset my-release-mongodb-arbiter my-release-mongodb-primary my-release-mongodb-secondary --cascade=false
|
||||
```
|
||||
|
||||
## Configure Ingress
|
||||
MongoDB can exposed externally using the [NGINX Ingress Controller](https://github.com/kubernetes/ingress-nginx). To do so, it's necessary to:
|
||||
|
||||
- Install the MongoDB chart setting the parameter `ingress.enabled=true`.
|
||||
- Create a ConfigMap to map the external port to use and the internal service/port where to redirect the requests (see https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/exposing-tcp-udp-services.md for more information).
|
||||
|
||||
For instance, if you installed the MongoDB chart in the `default` namespace, you can install the [stable/nginx-ingress chart](https://github.com/helm/charts/tree/master/stable/nginx-ingress) setting the "tcp" parameter in the **values.yaml** used to install the chart as shown below:
|
||||
|
||||
```yaml
|
||||
...
|
||||
|
||||
tcp:
|
||||
27017: "default/mongodb:27017"
|
||||
```
|
||||
40
upstreamed/mongodb/templates/ingress.yaml
Normal file
40
upstreamed/mongodb/templates/ingress.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
{{- if .Values.ingress.enabled -}}
|
||||
{{- $fullName := include "mongodb.fullname" . -}}
|
||||
{{- $ingressPaths := .Values.ingress.paths -}}
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: {{ $fullName }}
|
||||
labels:
|
||||
app.kubernetes.io/name: {{ include "mongodb.name" . }}
|
||||
helm.sh/chart: {{ include "mongodb.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||
{{- with .Values.ingress.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.ingress.tls }}
|
||||
tls:
|
||||
{{- range .Values.ingress.tls }}
|
||||
- hosts:
|
||||
{{- range .hosts }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
secretName: {{ .secretName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
rules:
|
||||
{{- range .Values.ingress.hosts }}
|
||||
- host: {{ . | quote }}
|
||||
http:
|
||||
paths:
|
||||
{{- range $ingressPaths }}
|
||||
- path: {{ . }}
|
||||
backend:
|
||||
serviceName: {{ $fullName }}
|
||||
servicePort: mongodb
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -196,6 +196,19 @@ persistence:
|
||||
size: 8Gi
|
||||
annotations: {}
|
||||
|
||||
# Expose mongodb via ingress. This is possible if using nginx-ingress
|
||||
# https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/
|
||||
ingress:
|
||||
enabled: false
|
||||
annotations: {}
|
||||
labels: {}
|
||||
paths:
|
||||
- /
|
||||
hosts: []
|
||||
tls:
|
||||
- secretName: secret-tls
|
||||
hosts: []
|
||||
|
||||
## Configure the options for init containers to be run before the main app containers
|
||||
## are started. All init containers are run sequentially and must exit without errors
|
||||
## for the next one to be started.
|
||||
|
||||
@@ -195,6 +195,19 @@ persistence:
|
||||
size: 8Gi
|
||||
annotations: {}
|
||||
|
||||
# Expose mongodb via ingress. This is possible if using nginx-ingress
|
||||
# https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/
|
||||
ingress:
|
||||
enabled: false
|
||||
annotations: {}
|
||||
labels: {}
|
||||
paths:
|
||||
- /
|
||||
hosts: []
|
||||
tls:
|
||||
- secretName: secret-tls
|
||||
hosts: []
|
||||
|
||||
## Configure the options for init containers to be run before the main app containers
|
||||
## are started. All init containers are run sequentially and must exit without errors
|
||||
## for the next one to be started.
|
||||
|
||||
Reference in New Issue
Block a user