Update usage of .local with .minikube in k8s docs

Fixes #1521
This commit is contained in:
Ed Robinson 2017-05-04 13:31:38 +01:00 committed by Ludovic Fernandez
parent 5f0b215e90
commit c7281df230
4 changed files with 22 additions and 22 deletions

View file

@ -197,7 +197,7 @@ metadata:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: traefik-ui.local
- host: traefik-ui.minikube
http:
paths:
- backend:
@ -210,7 +210,7 @@ spec:
kubectl apply -f examples/k8s/ui.yaml
```
Now lets setup an entry in our /etc/hosts file to route `traefik-ui.local`
Now lets setup an entry in our /etc/hosts file to route `traefik-ui.minikube`
to our cluster.
> In production you would want to set up real dns entries.
@ -218,10 +218,10 @@ to our cluster.
> You can get the ip address of your minikube instance by running `minikube ip`
```shell
echo "$(minikube ip) traefik-ui.local" | sudo tee -a /etc/hosts
echo "$(minikube ip) traefik-ui.minikube" | sudo tee -a /etc/hosts
```
We should now be able to visit [traefik-ui.local](http://traefik-ui.local) in the browser and view the Træfik Web UI.
We should now be able to visit [traefik-ui.minikube](http://traefik-ui.minikube) in the browser and view the Træfik Web UI.
## Name based routing
@ -404,21 +404,21 @@ metadata:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: stilton.local
- host: stilton.minikube
http:
paths:
- path: /
backend:
serviceName: stilton
servicePort: http
- host: cheddar.local
- host: cheddar.minikube
http:
paths:
- path: /
backend:
serviceName: cheddar
servicePort: http
- host: wensleydale.local
- host: wensleydale.minikube
http:
paths:
- path: /
@ -434,7 +434,7 @@ spec:
kubectl apply -f examples/k8s/cheese-ingress.yaml
```
Now visit the [Træfik dashboard](http://traefik-ui.local/) and you should
Now visit the [Træfik dashboard](http://traefik-ui.minikube/) and you should
see a frontend for each host. Along with a backend listing for each service
with a Server set up for each pod.
@ -442,12 +442,12 @@ If you edit your `/etc/hosts` again you should be able to access the cheese
websites in your browser.
```shell
echo "$(minikube ip) stilton.local cheddar.local wensleydale.local" | sudo tee -a /etc/hosts
echo "$(minikube ip) stilton.minikube cheddar.minikube wensleydale.minikube" | sudo tee -a /etc/hosts
```
* [Stilton](http://stilton.local/)
* [Cheddar](http://cheddar.local/)
* [Wensleydale](http://wensleydale.local/)
* [Stilton](http://stilton.minikube/)
* [Cheddar](http://cheddar.minikube/)
* [Wensleydale](http://wensleydale.minikube/)
## Path based routing
@ -468,7 +468,7 @@ metadata:
traefik.frontend.rule.type: pathprefixstrip
spec:
rules:
- host: cheeses.local
- host: cheeses.minikube
http:
paths:
- path: /stilton
@ -495,14 +495,14 @@ kubectl apply -f examples/k8s/cheeses-ingress.yaml
```
```shell
echo "$(minikube ip) cheeses.local" | sudo tee -a /etc/hosts
echo "$(minikube ip) cheeses.minikube" | sudo tee -a /etc/hosts
```
You should now be able to visit the websites in your browser.
* [cheeses.local/stilton](http://cheeses.local/stilton/)
* [cheeses.local/cheddar](http://cheeses.local/cheddar/)
* [cheeses.local/wensleydale](http://cheeses.local/wensleydale/)
* [cheeses.minikube/stilton](http://cheeses.minikube/stilton/)
* [cheeses.minikube/cheddar](http://cheeses.minikube/cheddar/)
* [cheeses.minikube/wensleydale](http://cheeses.minikube/wensleydale/)
## Disable passing the Host header

View file

@ -4,21 +4,21 @@ metadata:
name: cheese
spec:
rules:
- host: stilton.local
- host: stilton.minikube
http:
paths:
- path: /
backend:
serviceName: stilton
servicePort: http
- host: cheddar.local
- host: cheddar.minikube
http:
paths:
- path: /
backend:
serviceName: cheddar
servicePort: http
- host: wensleydale.local
- host: wensleydale.minikube
http:
paths:
- path: /

View file

@ -6,7 +6,7 @@ metadata:
traefik.frontend.rule.type: pathprefixstrip
spec:
rules:
- host: cheeses.local
- host: cheeses.minikube
http:
paths:
- path: /stilton

View file

@ -19,7 +19,7 @@ metadata:
namespace: kube-system
spec:
rules:
- host: traefik-ui.local
- host: traefik-ui.minikube
http:
paths:
- path: /