Added sessionAffinity to values.yaml (#5448)

This commit is contained in:
ElliotG
2022-12-16 09:58:43 -07:00
committed by GitHub
parent 0c0e3f0e4d
commit e76f947da2
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -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
+5
View File
@@ -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.