From 09012065c9fac794e3eafc5b7a53516d4fd08033 Mon Sep 17 00:00:00 2001 From: Vincent Coffey Date: Tue, 27 Oct 2026 15:58:13 -0400 Subject: [PATCH] Support load balancer service in Helm chart (#8081) --- ci/helm-chart/templates/service.yaml | 5 +++++ ci/helm-chart/values.yaml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ci/helm-chart/templates/service.yaml b/ci/helm-chart/templates/service.yaml index 1b58af0b1..27c4cc49e 100644 --- a/ci/helm-chart/templates/service.yaml +++ b/ci/helm-chart/templates/service.yaml @@ -4,8 +4,13 @@ metadata: name: {{ include "code-server.fullname" . }} labels: {{- include "code-server.labels" . | nindent 4 }} + annotations: + {{- with .Values.service.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} + loadBalancerClass: {{ .Values.service.loadBalancerClass }} ports: - port: {{ .Values.service.port }} targetPort: http diff --git a/ci/helm-chart/values.yaml b/ci/helm-chart/values.yaml index 57f36b87f..15308e280 100644 --- a/ci/helm-chart/values.yaml +++ b/ci/helm-chart/values.yaml @@ -48,6 +48,8 @@ priorityClassName: "" service: type: ClusterIP port: 8080 + loadBalancerClass: null + annotations: {} ingress: enabled: false