Skip to content

Commit 6907a3a

Browse files
committed
Document how to pass controller.service.annotations to helm.
Signed-off-by: Dinko Korunic <dkorunic@haproxy.com>
1 parent d7cea9c commit 6907a3a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

kubernetes-ingress/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,21 @@ helm install my-ingress3 haproxytech/kubernetes-ingress \
9898

9999
***NOTE***: make sure your Ingress routes have corresponding `ingress.class: haproxy` annotation.
100100

101+
### Installing with service annotations
102+
103+
On some environments like EKS and GKE there might be a need to pass service annotations. Syntax can become a little tedious however:
104+
105+
```console
106+
helm install my-ingress3 haproxytech/kubernetes-ingress \
107+
--set controller.kind=DaemonSet \
108+
--set controller.ingressClass=haproxy \
109+
--set controller.service.type=LoadBalancer \
110+
--set controller.service.annotations."service\.beta\.kubernetes\.io/aws-load-balancer-internal"="0.0.0.0/0" \
111+
--set controller.service.annotations."service\.beta\.kubernetes\.io/aws-load-balancer-cross-zone-load-balancing-enabled"="true"
112+
```
113+
114+
Note the use of quotes and the need to escape dots in the annotation key.
115+
101116
## Upgrading the chart
102117

103118
To upgrade the *my-release* deployment:

0 commit comments

Comments
 (0)