Skip to content

Commit

Permalink
[helm] add stickness option for PFN
Browse files Browse the repository at this point in the history
Closes: #233
  • Loading branch information
sherry-x authored and aptos-bot committed Mar 17, 2022
1 parent e1a508c commit 9f6c170
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/fullnode/fullnode/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions terraform/fullnode/fullnode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ ingress:
acm_certificate:
wafAclArn:
loadBalancerSourceRanges:
enableStickyness: true
cookieDurationSeconds: 86400

monitoring:
prometheus:
Expand Down

0 comments on commit 9f6c170

Please sign in to comment.