From fcf36f693ee89201101de05f3cf172f34f8da53a Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Fri, 14 Apr 2023 16:38:26 -0400 Subject: [PATCH] feat(k8s): add mysql service port --- helm-chart/templates/deployment.yaml | 3 +++ helm-chart/templates/service.yaml | 5 ++++- helm-chart/values.yaml | 6 ------ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm-chart/templates/deployment.yaml b/helm-chart/templates/deployment.yaml index 53662e3f..c0ec5fb8 100644 --- a/helm-chart/templates/deployment.yaml +++ b/helm-chart/templates/deployment.yaml @@ -115,6 +115,9 @@ spec: - containerPort: 80 name: http protocol: TCP + - containerPort: 3306 + name: mysql + protocol: TCP volumeMounts: - name: {{ .Release.Name }}-site diff --git a/helm-chart/templates/service.yaml b/helm-chart/templates/service.yaml index 5f88de29..ad320b47 100644 --- a/helm-chart/templates/service.yaml +++ b/helm-chart/templates/service.yaml @@ -10,5 +10,8 @@ spec: {{- include "site.selectorLabels" . | nindent 6 }} ports: - name: http - port: {{ .Values.services.http.port }} + port: 80 + protocol: TCP + - name: mysql + port: 3306 protocol: TCP diff --git a/helm-chart/values.yaml b/helm-chart/values.yaml index fcb6970b..9a5de97d 100644 --- a/helm-chart/values.yaml +++ b/helm-chart/values.yaml @@ -38,12 +38,6 @@ volumes: site: ~ database: ~ -services: - http: - port: 80 - # mysql: - # port: 3306 - ingress: enabled: false annotations: