From 16edc6bc636aa0679e19b822b9bb99d466c26a8f Mon Sep 17 00:00:00 2001 From: Philip Dakowitz Date: Tue, 2 Jul 2024 17:04:16 +0200 Subject: [PATCH] [sophora-webclient] make service configurable in webclient chart (#103) * [sophora-webclient] make service configurable * bump chart version --- charts/sophora-webclient/Chart.yaml | 2 +- charts/sophora-webclient/templates/service.yaml | 14 +++++++++----- charts/sophora-webclient/values.yaml | 4 ++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/charts/sophora-webclient/Chart.yaml b/charts/sophora-webclient/Chart.yaml index a296a86..11450a6 100644 --- a/charts/sophora-webclient/Chart.yaml +++ b/charts/sophora-webclient/Chart.yaml @@ -6,7 +6,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.2.0 +version: 1.2.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/sophora-webclient/templates/service.yaml b/charts/sophora-webclient/templates/service.yaml index 1c6cb86..e1a600b 100644 --- a/charts/sophora-webclient/templates/service.yaml +++ b/charts/sophora-webclient/templates/service.yaml @@ -1,11 +1,15 @@ -kind: Service apiVersion: v1 +kind: Service metadata: name: {{ include "webclient.fullname" . }} + labels: + {{- include "webclient.labels" . | nindent 4 }} spec: - selector: {{- include "webclient.selectorLabels" . | nindent 4 }} + type: {{ .Values.service.type }} ports: - - protocol: TCP - port: 8080 - targetPort: 8080 + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP name: http + selector: + {{- include "webclient.selectorLabels" . | nindent 4 }} diff --git a/charts/sophora-webclient/values.yaml b/charts/sophora-webclient/values.yaml index 99eed46..5a900b6 100644 --- a/charts/sophora-webclient/values.yaml +++ b/charts/sophora-webclient/values.yaml @@ -46,6 +46,10 @@ ingress: hosts: annotations: {} +service: + type: ClusterIP + port: 8080 + extraDeploy: [] serviceMonitor: