mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 14:57:08 +08:00
Synchronize upstreamed folder to 30369a102
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: mariadb
|
||||
version: 5.5.4
|
||||
version: 5.7.0
|
||||
appVersion: 10.1.38
|
||||
description: Fast, reliable, scalable, and easy to use open-source relational database system. MariaDB Server is intended for mission-critical, heavy-load production systems as well as for embedding into mass-deployed software. Highly available MariaDB cluster.
|
||||
keywords:
|
||||
|
||||
@@ -61,6 +61,7 @@ The following table lists the configurable parameters of the MariaDB chart and t
|
||||
| `service.port` | MySQL service port | `3306` |
|
||||
| `serviceAccount.create` | Specifies whether a ServiceAccount should be created | `false` |
|
||||
| `serviceAccount.name` | The name of the ServiceAccount to create | Generated using the mariadb.fullname template |
|
||||
| `rbac.create` | Create and use RBAC resources | `false` |
|
||||
| `securityContext.enabled` | Enable security context | `true` |
|
||||
| `securityContext.fsGroup` | Group ID for the container | `1001` |
|
||||
| `securityContext.runAsUser` | User ID for the container | `1001` |
|
||||
@@ -102,6 +103,9 @@ The following table lists the configurable parameters of the MariaDB chart and t
|
||||
| `master.readinessProbe.timeoutSeconds` | When the probe times out (master) | `1` |
|
||||
| `master.readinessProbe.successThreshold` | Minimum consecutive successes for the probe (master)| `1` |
|
||||
| `master.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe (master) | `3` |
|
||||
| `master.podDisruptionBudget.enabled` | If true, create a pod disruption budget for master pods. | `false` |
|
||||
| `master.podDisruptionBudget.minAvailable` | Minimum number / percentage of pods that should remain scheduled | `1` |
|
||||
| `master.podDisruptionBudget.maxUnavailable`| Maximum number / percentage of pods that may be made unavailable | `nil` |
|
||||
| `slave.replicas` | Desired number of slave replicas | `1` |
|
||||
| `slave.annotations[].key` | key for the the annotation list item | `nil` |
|
||||
| `slave.annotations[].value` | value for the the annotation list item | `nil` |
|
||||
@@ -128,6 +132,9 @@ The following table lists the configurable parameters of the MariaDB chart and t
|
||||
| `slave.readinessProbe.timeoutSeconds` | When the probe times out (slave) | `1` |
|
||||
| `slave.readinessProbe.successThreshold` | Minimum consecutive successes for the probe (slave) | `1` |
|
||||
| `slave.readinessProbe.failureThreshold` | Minimum consecutive failures for the probe (slave) | `3` |
|
||||
| `slave.podDisruptionBudget.enabled` | If true, create a pod disruption budget for slave pods. | `false` |
|
||||
| `slave.podDisruptionBudget.minAvailable` | Minimum number / percentage of pods that should remain scheduled | `1` |
|
||||
| `slave.podDisruptionBudget.maxUnavailable`| Maximum number / percentage of pods that may be made unavailable | `nil` |
|
||||
| `metrics.enabled` | Start a side-car prometheus exporter | `false` |
|
||||
| `metrics.image.registry` | Exporter image registry | `docker.io` |
|
||||
| `metrics.image.repository` | Exporter image name | `prom/mysqld-exporter` |
|
||||
|
||||
@@ -4,8 +4,8 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "master.fullname" . }}-init-scripts
|
||||
labels:
|
||||
app: {{ template "mariadb.name" . }}
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
component: "master"
|
||||
|
||||
@@ -4,9 +4,9 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "master.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "mariadb.name" . }}
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
component: "master"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
data:
|
||||
|
||||
24
upstreamed/mariadb/templates/master-pdb.yaml
Normal file
24
upstreamed/mariadb/templates/master-pdb.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
{{- if .Values.master.podDisruptionBudget.enabled }}
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ template "mariadb.fullname" . }}
|
||||
labels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
component: "master"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
spec:
|
||||
{{- if .Values.master.podDisruptionBudget.minAvailable }}
|
||||
minAvailable: {{ .Values.master.podDisruptionBudget.minAvailable }}
|
||||
{{- end }}
|
||||
{{- if .Values.master.podDisruptionBudget.maxUnavailable }}
|
||||
maxUnavailable: {{ .Values.master.podDisruptionBudget.maxUnavailable }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
component: "master"
|
||||
release: {{ .Release.Name | quote }}
|
||||
{{- end }}
|
||||
@@ -4,7 +4,7 @@ metadata:
|
||||
name: {{ template "master.fullname" . }}
|
||||
labels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
component: "master"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
@@ -13,7 +13,7 @@ spec:
|
||||
matchLabels:
|
||||
release: "{{ .Release.Name }}"
|
||||
component: "master"
|
||||
app: {{ template "mariadb.name" . }}
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
serviceName: "{{ template "master.fullname" . }}"
|
||||
replicas: 1
|
||||
updateStrategy:
|
||||
@@ -30,7 +30,7 @@ spec:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
component: "master"
|
||||
release: "{{ .Release.Name }}"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
spec:
|
||||
serviceAccountName: "{{ template "mariadb.serviceAccountName" . }}"
|
||||
{{- if .Values.securityContext.enabled }}
|
||||
|
||||
@@ -5,7 +5,7 @@ metadata:
|
||||
labels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
component: "master"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
{{- if .Values.metrics.enabled }}
|
||||
|
||||
18
upstreamed/mariadb/templates/role.yaml
Normal file
18
upstreamed/mariadb/templates/role.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
{{- if and .Values.serviceAccount.create .Values.rbac.create }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
name: {{ template "master.fullname" . }}
|
||||
labels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
release: "{{ .Release.Name | quote }}"
|
||||
heritage: "{{ .Release.Service | quote }}"
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- endpoints
|
||||
verbs:
|
||||
- get
|
||||
{{- end }}
|
||||
18
upstreamed/mariadb/templates/rolebinding.yaml
Normal file
18
upstreamed/mariadb/templates/rolebinding.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
{{- if and .Values.serviceAccount.create .Values.rbac.create }}
|
||||
kind: RoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ template "master.fullname" . }}
|
||||
labels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
release: "{{ .Release.Name | quote }}"
|
||||
heritage: "{{ .Release.Service | quote }}"
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: {{ template "mariadb.serviceAccountName" . }}
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: {{ template "master.fullname" . }}
|
||||
{{- end }}
|
||||
@@ -5,7 +5,7 @@ metadata:
|
||||
name: {{ template "mariadb.fullname" . }}
|
||||
labels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
type: Opaque
|
||||
@@ -35,4 +35,4 @@ data:
|
||||
mariadb-replication-password: {{ required "A MariaDB Replication Password is required!" .Values.replication.password }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
11
upstreamed/mariadb/templates/serviceaccount.yaml
Normal file
11
upstreamed/mariadb/templates/serviceaccount.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: {{ template "mariadb.serviceAccountName" . }}
|
||||
labels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
release: "{{ .Release.Name | quote }}"
|
||||
heritage: "{{ .Release.Service | quote }}"
|
||||
{{- end }}
|
||||
@@ -4,9 +4,9 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ template "slave.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "mariadb.name" . }}
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
component: "slave"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
data:
|
||||
|
||||
26
upstreamed/mariadb/templates/slave-pdb.yaml
Normal file
26
upstreamed/mariadb/templates/slave-pdb.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
{{- if .Values.replication.enabled }}
|
||||
{{- if .Values.slave.podDisruptionBudget.enabled }}
|
||||
apiVersion: policy/v1beta1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: {{ template "mariadb.fullname" . }}
|
||||
labels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
component: "slave"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
spec:
|
||||
{{- if .Values.slave.podDisruptionBudget.minAvailable }}
|
||||
minAvailable: {{ .Values.slave.podDisruptionBudget.minAvailable }}
|
||||
{{- end }}
|
||||
{{- if .Values.slave.podDisruptionBudget.maxUnavailable }}
|
||||
maxUnavailable: {{ .Values.slave.podDisruptionBudget.maxUnavailable }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
component: "slave"
|
||||
release: {{ .Release.Name | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -5,7 +5,7 @@ metadata:
|
||||
name: {{ template "slave.fullname" . }}
|
||||
labels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
component: "slave"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
@@ -14,7 +14,7 @@ spec:
|
||||
matchLabels:
|
||||
release: "{{ .Release.Name }}"
|
||||
component: "slave"
|
||||
app: {{ template "mariadb.name" . }}
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
serviceName: "{{ template "slave.fullname" . }}"
|
||||
replicas: {{ .Values.slave.replicas }}
|
||||
updateStrategy:
|
||||
@@ -31,7 +31,7 @@ spec:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
component: "slave"
|
||||
release: "{{ .Release.Name }}"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
spec:
|
||||
serviceAccountName: "{{ template "mariadb.serviceAccountName" . }}"
|
||||
{{- if .Values.securityContext.enabled }}
|
||||
|
||||
@@ -5,7 +5,7 @@ metadata:
|
||||
name: {{ template "slave.fullname" . }}
|
||||
labels:
|
||||
app: "{{ template "mariadb.name" . }}"
|
||||
chart: {{ template "mariadb.chart" . }}
|
||||
chart: "{{ template "mariadb.chart" . }}"
|
||||
component: "slave"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
|
||||
@@ -50,6 +50,13 @@ serviceAccount:
|
||||
## If not set and create is true, a name is generated using the mariadb.fullname template
|
||||
# name:
|
||||
|
||||
## Role Based Access
|
||||
## Ref: https://kubernetes.io/docs/admin/authorization/rbac/
|
||||
##
|
||||
|
||||
rbac:
|
||||
create: false
|
||||
|
||||
## Pod Security Context
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||
##
|
||||
@@ -227,6 +234,11 @@ master:
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
|
||||
podDisruptionBudget:
|
||||
enabled: false
|
||||
minAvailable: 1
|
||||
# maxUnavailable: 1
|
||||
|
||||
slave:
|
||||
replicas: 2
|
||||
|
||||
@@ -323,6 +335,11 @@ slave:
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
|
||||
podDisruptionBudget:
|
||||
enabled: false
|
||||
minAvailable: 1
|
||||
# maxUnavailable: 1
|
||||
|
||||
metrics:
|
||||
enabled: true
|
||||
image:
|
||||
|
||||
@@ -50,6 +50,13 @@ serviceAccount:
|
||||
## If not set and create is true, a name is generated using the mariadb.fullname template
|
||||
# name:
|
||||
|
||||
## Role Based Access
|
||||
## Ref: https://kubernetes.io/docs/admin/authorization/rbac/
|
||||
##
|
||||
|
||||
rbac:
|
||||
create: false
|
||||
|
||||
## Pod Security Context
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
||||
##
|
||||
@@ -227,6 +234,11 @@ master:
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
|
||||
podDisruptionBudget:
|
||||
enabled: false
|
||||
minAvailable: 1
|
||||
# maxUnavailable: 1
|
||||
|
||||
slave:
|
||||
replicas: 1
|
||||
|
||||
@@ -322,6 +334,11 @@ slave:
|
||||
successThreshold: 1
|
||||
failureThreshold: 3
|
||||
|
||||
podDisruptionBudget:
|
||||
enabled: false
|
||||
minAvailable: 1
|
||||
# maxUnavailable: 1
|
||||
|
||||
metrics:
|
||||
enabled: false
|
||||
image:
|
||||
|
||||
Reference in New Issue
Block a user