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 }} ---