Skip to content

Commit e5e9ba8

Browse files
committed
Update README with YAML defaults file for Helm CLI.
Signed-off-by: Dinko Korunic <[email protected]>
1 parent 16ca92c commit e5e9ba8

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

kubernetes-ingress/README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,30 @@ helm install my-ingress3 haproxytech/kubernetes-ingress \
111111
--set controller.service.annotations."service\.beta\.kubernetes\.io/aws-load-balancer-cross-zone-load-balancing-enabled"="true"
112112
```
113113

114-
Note the use of quotes and the need to escape dots in the annotation key.
114+
***NOTE***: With helm `--set` it is needed to put quotes and escape dots in the annotation key.
115+
116+
### Using values from YAML file
117+
118+
As opposed to using many `--set` invocations, much simpler approach is to define value overrides in a separate YAML file and specify them when invoking Helm:
119+
120+
*mylb.yaml*:
121+
122+
```yaml
123+
controller:
124+
kind: DaemonSet
125+
ingressClass: haproxy
126+
service:
127+
type: LoadBalancer
128+
annotations:
129+
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: 'true'
130+
service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0
131+
```
132+
133+
And invoking Helm becomes (compare to the previous example):
134+
135+
```console
136+
helm install my-ingress4 -f mylb.yml haproxytech/kubernetes-ingress
137+
```
115138

116139
## Upgrading the chart
117140

0 commit comments

Comments
 (0)