[stable/mariadb] Make mariadb's service supports NodePort mode (#7094)

- Add new service type: NodePort and sub-configs for it
- Update values.yaml and values-production.yaml
- Update the version information
This commit is contained in:
Zachary Zhao
2018-08-13 00:27:53 -07:00
committed by k8s-ci-robot
parent c999b83609
commit 53cd1face1
5 changed files with 30 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: mariadb
version: 4.3.2
version: 4.3.3
appVersion: 10.1.35
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:
+7
View File
@@ -18,6 +18,13 @@ spec:
- name: mysql
port: {{ .Values.service.port }}
targetPort: mysql
{{- if eq .Values.service.type "NodePort" }}
{{- if .Values.service.nodePort }}
{{- if .Values.service.nodePort.master }}
nodePort: {{ .Values.service.nodePort.master }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.metrics.enabled }}
- name: metrics
port: 9104
+8 -1
View File
@@ -19,6 +19,13 @@ spec:
- name: mysql
port: {{ .Values.service.port }}
targetPort: mysql
{{- if (eq .Values.service.type "NodePort") }}
{{- if .Values.service.nodePort }}
{{- if .Values.service.nodePort.slave }}
nodePort: {{ .Values.service.nodePort.slave }}
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.metrics.enabled }}
- name: metrics
port: 9104
@@ -28,4 +35,4 @@ spec:
app: "{{ template "mariadb.name" . }}"
component: "slave"
release: "{{ .Release.Name }}"
{{- end }}
{{- end }}
+7 -1
View File
@@ -18,9 +18,15 @@ image:
# - myRegistrKeySecretName
service:
## Kubernetes service type
## Kubernetes service type, ClusterIP and NodePort are supported at present
type: ClusterIP
port: 3306
## Specify the nodePort value for the LoadBalancer and NodePort service types.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
##
# nodePort:
# master: 30001
# slave: 30002
rootUser:
## MariaDB admin password
+7 -1
View File
@@ -18,9 +18,15 @@ image:
# - myRegistrKeySecretName
service:
## Kubernetes service type
## Kubernetes service type, ClusterIP and NodePort are supported at present
type: ClusterIP
port: 3306
## Specify the nodePort value for the LoadBalancer and NodePort service types.
## ref: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
##
# nodePort:
# master: 30001
# slave: 30002
rootUser:
## MariaDB admin password