From ea64bc952abd01e2d93ad5794685555aa95072a9 Mon Sep 17 00:00:00 2001 From: ElliotG Date: Fri, 16 Dec 2022 16:51:38 +0000 Subject: [PATCH] Added sessionAffinity to values.yaml --- helm/templates/service.yaml | 2 +- helm/values.yaml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/helm/templates/service.yaml b/helm/templates/service.yaml index 95d757656cf6b..60dd5fe931dfa 100644 --- a/helm/templates/service.yaml +++ b/helm/templates/service.yaml @@ -10,7 +10,7 @@ metadata: {{- toYaml .Values.coder.service.annotations | nindent 4 }} spec: type: {{ .Values.coder.service.type }} - sessionAffinity: ClientIP + sessionAffinity: {{ .Values.coder.service.sessionAffinity }} ports: - name: "http" port: 80 diff --git a/helm/values.yaml b/helm/values.yaml index c430c57d41373..eb67fe1d9568c 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -121,6 +121,11 @@ coder: # coder.service.type -- The type of service to expose. See: # https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types type: LoadBalancer + # coder.service.sessionAffinity -- Must be set to ClientIP or None + # AWS ELB does not support session stickiness based on ClientIP, so you must set this to None. + # The error message you might see: "Unsupported load balancer affinity: ClientIP" + # https://kubernetes.io/docs/reference/networking/virtual-ips/#session-affinity + sessionAffinity: ClientIP # coder.service.externalTrafficPolicy -- The external traffic policy to use. # You may need to change this to "Local" to preserve the source IP address # in some situations.