From 9f6c17084597026a0e096e3cfe97aede556dc0af Mon Sep 17 00:00:00 2001 From: Sherry Xiao Date: Thu, 17 Mar 2022 14:51:49 -0700 Subject: [PATCH] [helm] add stickness option for PFN Closes: #233 --- terraform/fullnode/fullnode/templates/ingress.yaml | 4 ++++ terraform/fullnode/fullnode/values.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/terraform/fullnode/fullnode/templates/ingress.yaml b/terraform/fullnode/fullnode/templates/ingress.yaml index 405ce75bdf954..064cca0f8ea4d 100644 --- a/terraform/fullnode/fullnode/templates/ingress.yaml +++ b/terraform/fullnode/fullnode/templates/ingress.yaml @@ -22,6 +22,10 @@ metadata: {{- if .Values.ingress.wafAclArn }} alb.ingress.kubernetes.io/wafv2-acl-arn: {{ .Values.ingress.wafAclArn }} {{- end }} + {{- if .Values.ingress.enableStickyness }} + alb.ingress.kubernetes.io/target-group-attributes: stickiness.enabled=true,stickiness.lb_cookie.duration_seconds={{ .Values.ingress.cookieDurationSeconds }} + alb.ingress.kubernetes.io/target-type: ip + {{- end }} spec: rules: - http: diff --git a/terraform/fullnode/fullnode/values.yaml b/terraform/fullnode/fullnode/values.yaml index ffbc64670b822..5c60bdb251182 100644 --- a/terraform/fullnode/fullnode/values.yaml +++ b/terraform/fullnode/fullnode/values.yaml @@ -25,6 +25,8 @@ ingress: acm_certificate: wafAclArn: loadBalancerSourceRanges: + enableStickyness: true + cookieDurationSeconds: 86400 monitoring: prometheus: