Skip to content

Commit ffd557c

Browse files
update custom ingress class doc (#1535)
1 parent 80971d9 commit ffd557c

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

docs/features/custom-ingress-class.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,26 @@ To use a custom ingress class,
1212
helm install ./helm/ingress-azure \
1313
--name ingress-azure \
1414
-f helm-config.yaml
15-
--set kubernetes.ingressClass arbitrary-class
15+
--set kubernetes.ingressClass arbitrary-class
1616
```
1717

18-
2. Then, change your ingress manifest's `kubernetes.io/ingress.class` annotation to match the value provided to AGIC.
18+
2. Then, within the spec object, specify `ingressClassName` with the same value provided to AGIC.
1919
```yaml
2020
kind: Ingress
2121
metadata:
2222
name: go-server-ingress-affinity
2323
namespace: test-ag
24-
annotations:
25-
kubernetes.io/ingress.class: arbitrary-class
2624
spec:
27-
rules:
28-
- http:
25+
ingressClassName: arbitrary-class
26+
rules:
27+
- http:
2928
paths:
30-
- path: /hello/
29+
- path: /hello/
3130
backend:
32-
service:
31+
service:
3332
name: store-service
3433
port:
35-
number: 80
34+
number: 80
3635
```
3736

3837
## Reference

0 commit comments

Comments
 (0)