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: