Skip to content

Commit

Permalink
[helm] add option to enable stickness
Browse files Browse the repository at this point in the history
  • Loading branch information
sherry-x authored and aptos-bot committed Mar 15, 2022
1 parent fe217d6 commit ba618e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions terraform/testnet/testnet/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,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:
{{- if .Values.faucet.enabled }}
Expand Down
2 changes: 2 additions & 0 deletions terraform/testnet/testnet/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ ingress:
acm_certificate:
wafAclArn:
loadBalancerSourceRanges:
enableStickyness: true
cookieDurationSeconds: 86400

monitoring:
prometheus:
Expand Down

0 comments on commit ba618e1

Please sign in to comment.