Skip to content

Commit

Permalink
Merge pull request #904 from neicnordic/charts/affinity
Browse files Browse the repository at this point in the history
Add nginx-affinity label to ingress templates in the SDA-SVC chart.
  • Loading branch information
jbygdell authored Jun 24, 2024
2 parents d3952b5 + adebf46 commit a396c4d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/sda-svc/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: sda-svc
version: 0.26.4
version: 0.26.5
appVersion: v0.3.77
kubeVersion: '>= 1.26.0'
description: Components for Sensitive Data Archive (SDA) installation
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/auth-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ metadata:
{{- if eq "nginx" .Values.global.ingress.ingressClassName }}
nginx.ingress.kubernetes.io/rewrite-target: "/"
nginx.ingress.kubernetes.io/backend-protocol: "{{ ternary "HTTPS" "HTTP" .Values.global.tls.enabled }}"
nginx.ingress.kubernetes.io/affinity: "cookie"
{{- end }}
{{- if .Values.global.ingress.clusterIssuer }}
cert-manager.io/cluster-issuer: {{ .Values.global.ingress.clusterIssuer | quote }}
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/doa-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ metadata:
{{- if eq "nginx" .Values.global.ingress.ingressClassName }}
nginx.ingress.kubernetes.io/rewrite-target: "/"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/affinity: "cookie"
{{- end }}
{{- if .Values.global.ingress.clusterIssuer }}
cert-manager.io/cluster-issuer: {{ .Values.global.ingress.clusterIssuer | quote }}
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/download-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ metadata:
{{- if eq "nginx" .Values.global.ingress.ingressClassName }}
nginx.ingress.kubernetes.io/rewrite-target: "/"
nginx.ingress.kubernetes.io/backend-protocol: "{{ ternary "HTTPS" "HTTP" .Values.global.tls.enabled }}"
nginx.ingress.kubernetes.io/affinity: "cookie"
{{- end }}
{{- if .Values.global.ingress.clusterIssuer }}
cert-manager.io/cluster-issuer: {{ .Values.global.ingress.clusterIssuer | quote }}
Expand Down
1 change: 1 addition & 0 deletions charts/sda-svc/templates/s3-inbox-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ metadata:
nginx.ingress.kubernetes.io/proxy-body-size: 2000m
nginx.ingress.kubernetes.io/proxy-read-timeout: 300s
nginx.ingress.kubernetes.io/proxy-request-buffering: "on"
nginx.ingress.kubernetes.io/affinity: "cookie"
{{- end }}
{{- if .Values.global.ingress.clusterIssuer }}
cert-manager.io/cluster-issuer: {{ .Values.global.ingress.clusterIssuer | quote }}
Expand Down

0 comments on commit a396c4d

Please sign in to comment.