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: