From e83796453c17a181f311b5433a485e64f19ddec6 Mon Sep 17 00:00:00 2001 From: adobrodey <8377544+ADobrodey@users.noreply.github.com> Date: Thu, 7 Mar 2024 17:40:55 +0100 Subject: [PATCH] [VDEVOPS-000]: Session affinity fix Signed-off-by: adobrodey <8377544+ADobrodey@users.noreply.github.com> --- stable/deployment/Chart.yaml | 2 +- stable/deployment/templates/services.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/deployment/Chart.yaml b/stable/deployment/Chart.yaml index ac3ec26..1c19a98 100644 --- a/stable/deployment/Chart.yaml +++ b/stable/deployment/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: deployment -version: 1.5.4 +version: 1.5.5 description: Typical microservice chart. Supports Ingress controller, horizontal-scalable containers type: application dependencies: diff --git a/stable/deployment/templates/services.yaml b/stable/deployment/templates/services.yaml index 0d59f57..05878cd 100644 --- a/stable/deployment/templates/services.yaml +++ b/stable/deployment/templates/services.yaml @@ -31,7 +31,9 @@ spec: {{- end }} {{- end }} selector: {{ include "k8s-common.labels.matchLabels" . | nindent 4 }} + {{- if ne .Values.service.type "LoadBalancer" }} sessionAffinity: ClientIP + {{- end }} {{- if .Values.rollouts.enabled }} ---