diff --git a/mariadb/templates/mariadb-deployment.yaml b/mariadb/templates/mariadb-deployment.yaml index c3f6887941..a19eb03b26 100644 --- a/mariadb/templates/mariadb-deployment.yaml +++ b/mariadb/templates/mariadb-deployment.yaml @@ -1,14 +1,3 @@ ---- -apiVersion: v1 -kind: Service -metadata: - name: mariadb -spec: - ports: - - name: db - port: {{ .Values.network.port.mariadb }} - selector: - app: mariadb {{- $root := . -}} {{ range $k, $v := until (atoi .Values.replicas) }} --- diff --git a/mariadb/templates/mariadb-service.yaml b/mariadb/templates/mariadb-service.yaml index 5b3dae0490..2fa2f6319a 100644 --- a/mariadb/templates/mariadb-service.yaml +++ b/mariadb/templates/mariadb-service.yaml @@ -4,6 +4,7 @@ metadata: name: mariadb spec: ports: - - port: {{ .Values.network.port.mariadb }} + - name: db + port: {{ .Values.network.port.mariadb }} selector: app: mariadb