Skip to content

Commit

Permalink
feat: cookie test
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Mar 21, 2024
1 parent 8b1bd58 commit 80350e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/webapp/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ metadata:
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-expires: "86400"
{{- range .Values.ingress.hosts }}
nginx.ingress.kubernetes.io/session-cookie-domain: "{{ .host }}"
{{- end }}
nginx.ingress.kubernetes.io/session-cookie-samesite: "Strict"
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
Expand Down

0 comments on commit 80350e5

Please sign in to comment.