Skip to content

Commit cd6148b

Browse files
Change the host for the ingress tutorial, to mitigate a security risk.
1 parent be17efa commit cd6148b

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

‎content/en/docs/tasks/access-application-cluster/ingress-minikube.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ If you haven't already set up a cluster locally, run `minikube start` to create
166166
## Create an Ingress
167167

168168
The following manifest defines an Ingress that sends traffic to your Service via
169-
`hello-world.info`.
169+
`hello-world.example`.
170170

171171
1. Create `example-ingress.yaml` from the following file:
172172

@@ -197,8 +197,8 @@ The following manifest defines an Ingress that sends traffic to your Service via
197197
You should see an IPv4 address in the `ADDRESS` column; for example:
198198

199199
```none
200-
NAME CLASS HOSTS ADDRESS PORTS AGE
201-
example-ingress <none> hello-world.info 172.17.0.15 80 38s
200+
NAME CLASS HOSTS ADDRESS PORTS AGE
201+
example-ingress nginx hello-world.example 172.17.0.15 80 38s
202202
```
203203

204204

@@ -214,7 +214,7 @@ The following manifest defines an Ingress that sends traffic to your Service via
214214
{{% tab name="Linux" %}}
215215

216216
```shell
217-
curl --resolve "hello-world.info:80:$( minikube ip )" -i http://hello-world.info
217+
curl --resolve "hello-world.example:80:$( minikube ip )" -i http://hello-world.example
218218
```
219219
{{% /tab %}}
220220
{{% tab name="MacOS" %}}
@@ -236,7 +236,7 @@ The following manifest defines an Ingress that sends traffic to your Service via
236236

237237
From within a new terminal, invoke the following command:
238238
```shell
239-
curl --resolve "hello-world.info:80:127.0.0.1" -i http://hello-world.info
239+
curl --resolve "hello-world.example:80:127.0.0.1" -i http://hello-world.example
240240
```
241241

242242
{{% /tab %}}
@@ -250,7 +250,7 @@ The following manifest defines an Ingress that sends traffic to your Service via
250250
Hostname: web-55b8c6998d-8k564
251251
```
252252

253-
1. Optionally, you can also visit `hello-world.info` from your browser.
253+
1. Optionally, you can also visit `hello-world.example` from your browser.
254254

255255
Add a line to the bottom of the `/etc/hosts` file on
256256
your computer (you will need administrator access):
@@ -264,7 +264,7 @@ The following manifest defines an Ingress that sends traffic to your Service via
264264
<br>
265265

266266
```none
267-
172.17.0.15 hello-world.info
267+
172.17.0.15 hello-world.example
268268
```
269269

270270
{{< note >}}
@@ -273,15 +273,15 @@ The following manifest defines an Ingress that sends traffic to your Service via
273273
{{% /tab %}}
274274
{{% tab name="MacOS" %}}
275275
```none
276-
127.0.0.1 hello-world.info
276+
127.0.0.1 hello-world.example
277277
```
278278
{{% /tab %}}
279279
{{< /tabs >}}
280280

281281
<br>
282282

283283
After you make this change, your web browser sends requests for
284-
`hello-world.info` URLs to Minikube.
284+
`hello-world.example` URLs to Minikube.
285285

286286
## Create a second Deployment
287287

@@ -356,7 +356,7 @@ The following manifest defines an Ingress that sends traffic to your Service via
356356
{{% tab name="Linux" %}}
357357

358358
```shell
359-
curl --resolve "hello-world.info:80:$( minikube ip )" -i http://hello-world.info
359+
curl --resolve "hello-world.example:80:$( minikube ip )" -i http://hello-world.example
360360
```
361361
{{% /tab %}}
362362
{{% tab name="MacOS" %}}
@@ -378,7 +378,7 @@ The following manifest defines an Ingress that sends traffic to your Service via
378378

379379
From within a new terminal, invoke the following command:
380380
```shell
381-
curl --resolve "hello-world.info:80:127.0.0.1" -i http://hello-world.info
381+
curl --resolve "hello-world.example:80:127.0.0.1" -i http://hello-world.example
382382
```
383383

384384
{{% /tab %}}
@@ -399,7 +399,7 @@ The following manifest defines an Ingress that sends traffic to your Service via
399399
{{% tab name="Linux" %}}
400400

401401
```shell
402-
curl --resolve "hello-world.info:80:$( minikube ip )" -i http://hello-world.info/v2
402+
curl --resolve "hello-world.example:80:$( minikube ip )" -i http://hello-world.example/v2
403403
```
404404
{{% /tab %}}
405405
{{% tab name="MacOS" %}}
@@ -421,7 +421,7 @@ The following manifest defines an Ingress that sends traffic to your Service via
421421

422422
From within a new terminal, invoke the following command:
423423
```shell
424-
curl --resolve "hello-world.info:80:127.0.0.1" -i http://hello-world.info/v2
424+
curl --resolve "hello-world.example:80:127.0.0.1" -i http://hello-world.example/v2
425425
```
426426

427427
{{% /tab %}}
@@ -436,8 +436,8 @@ The following manifest defines an Ingress that sends traffic to your Service via
436436
```
437437

438438
{{< note >}}
439-
If you did the optional step to update `/etc/hosts`, you can also visit `hello-world.info` and
440-
`hello-world.info/v2` from your browser.
439+
If you did the optional step to update `/etc/hosts`, you can also visit `hello-world.example` and
440+
`hello-world.example/v2` from your browser.
441441
{{< /note >}}
442442

443443
## {{% heading "whatsnext" %}}

‎content/en/examples/service/networking/example-ingress.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
nginx.ingress.kubernetes.io/rewrite-target: /$1
77
spec:
88
rules:
9-
- host: hello-world.info
9+
- host: hello-world.example
1010
http:
1111
paths:
1212
- path: /

0 commit comments

Comments
 (0)