File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
content/en/docs/tasks/access-application-cluster Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ The following file is an Ingress resource that sends traffic to your Service via
133
133
1. Create ` example-ingress.yaml` from the following file:
134
134
135
135
` ` ` yaml
136
- apiVersion: networking.k8s.io/v1beta1
136
+ apiVersion: networking.k8s.io/v1
137
137
kind: Ingress
138
138
metadata:
139
139
name: example-ingress
@@ -145,9 +145,12 @@ The following file is an Ingress resource that sends traffic to your Service via
145
145
http:
146
146
paths:
147
147
- path: /
148
+ pathType: Prefix
148
149
backend:
149
- serviceName: web
150
- servicePort: 8080
150
+ service:
151
+ name: web
152
+ port:
153
+ number: 8080
151
154
` ` `
152
155
153
156
1. Create the Ingress resource by running the following command:
@@ -171,8 +174,8 @@ The following file is an Ingress resource that sends traffic to your Service via
171
174
{{< note > }}This can take a couple of minutes.{{< /note > }}
172
175
173
176
` ` ` shell
174
- NAME HOSTS ADDRESS PORTS AGE
175
- example-ingress hello-world.info 172.17.0.15 80 38s
177
+ NAME CLASS HOSTS ADDRESS PORTS AGE
178
+ example-ingress < none > hello-world.info 172.17.0.15 80 38s
176
179
` ` `
177
180
178
181
1. Add the following line to the bottom of the ` /etc/hosts` file.
@@ -232,9 +235,12 @@ The following file is an Ingress resource that sends traffic to your Service via
232
235
233
236
` ` ` yaml
234
237
- path: /v2
238
+ pathType: Prefix
235
239
backend:
236
- serviceName: web2
237
- servicePort: 8080
240
+ service:
241
+ name: web2
242
+ port:
243
+ number: 8080
238
244
` ` `
239
245
240
246
1. Apply the changes:
You can’t perform that action at this time.
0 commit comments