Skip to content

Commit 0901206

Browse files
Support load balancer service in Helm chart (#8081)
1 parent e999549 commit 0901206

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎ci/helm-chart/templates/service.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ metadata:
44
name: {{ include "code-server.fullname" . }}
55
labels:
66
{{- include "code-server.labels" . | nindent 4 }}
7+
annotations:
8+
{{- with .Values.service.annotations }}
9+
{{- toYaml . | nindent 4 }}
10+
{{- end }}
711
spec:
812
type: {{ .Values.service.type }}
13+
loadBalancerClass: {{ .Values.service.loadBalancerClass }}
914
ports:
1015
- port: {{ .Values.service.port }}
1116
targetPort: http

‎ci/helm-chart/values.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ priorityClassName: ""
4848
service:
4949
type: ClusterIP
5050
port: 8080
51+
loadBalancerClass: null
52+
annotations: {}
5153

5254
ingress:
5355
enabled: false

0 commit comments

Comments
 (0)