Skip to content

Commit b7c8f75

Browse files
authored
Merge pull request #106883 from PixelRobots/patch-13
Update operator-best-practices-network.md
2 parents ee66144 + 60ae734 commit b7c8f75

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

articles/aks/operator-best-practices-network.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,12 @@ The *ingress resource* is a YAML manifest of `kind: Ingress`. It defines the hos
116116
The following example YAML manifest would distribute traffic for *myapp.com* to one of two services, *blogservice* or *storeservice*. The customer is directed to one service or the other based on the URL they access.
117117

118118
```yaml
119+
apiVersion: networking.k8s.io/v1
119120
kind: Ingress
120121
metadata:
121122
name: myapp-ingress
122-
annotations: kubernetes.io/ingress.class: "PublicIngress"
123123
spec:
124+
ingressClassName: PublicIngress
124125
tls:
125126
- hosts:
126127
- myapp.com
@@ -131,12 +132,14 @@ spec:
131132
paths:
132133
- path: /blog
133134
backend:
134-
serviceName: blogservice
135-
servicePort: 80
135+
service
136+
name: blogservice
137+
port: 80
136138
- path: /store
137139
backend:
138-
serviceName: storeservice
139-
servicePort: 80
140+
service
141+
name: storeservice
142+
port: 80
140143
```
141144
142145
### Ingress controller

0 commit comments

Comments
 (0)