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 kubernetes.io/ingress.class: traefik
spec: spec:
rules: rules:
- host: traefik-ui.local - host: traefik-ui.minikube
http: http:
paths: paths:
- backend: - backend:
@ -210,7 +210,7 @@ spec:
kubectl apply -f examples/k8s/ui.yaml 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. to our cluster.
> In production you would want to set up real dns entries. > 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` > You can get the ip address of your minikube instance by running `minikube ip`
```shell ```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 ## Name based routing
@ -404,21 +404,21 @@ metadata:
kubernetes.io/ingress.class: traefik kubernetes.io/ingress.class: traefik
spec: spec:
rules: rules:
- host: stilton.local - host: stilton.minikube
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: stilton serviceName: stilton
servicePort: http servicePort: http
- host: cheddar.local - host: cheddar.minikube
http: http:
paths: paths:
- path: / - path: /
backend: backend:
serviceName: cheddar serviceName: cheddar
servicePort: http servicePort: http
- host: wensleydale.local - host: wensleydale.minikube
http: http:
paths: paths:
- path: / - path: /
@ -434,7 +434,7 @@ spec:
kubectl apply -f examples/k8s/cheese-ingress.yaml 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 see a frontend for each host. Along with a backend listing for each service
with a Server set up for each pod. 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. websites in your browser.
```shell ```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/) * [Stilton](http://stilton.minikube/)
* [Cheddar](http://cheddar.local/) * [Cheddar](http://cheddar.minikube/)
* [Wensleydale](http://wensleydale.local/) * [Wensleydale](http://wensleydale.minikube/)
## Path based routing ## Path based routing
@ -468,7 +468,7 @@ metadata:
traefik.frontend.rule.type: pathprefixstrip traefik.frontend.rule.type: pathprefixstrip
spec: spec:
rules: rules:
- host: cheeses.local - host: cheeses.minikube
http: http:
paths: paths:
- path: /stilton - path: /stilton
@ -495,14 +495,14 @@ kubectl apply -f examples/k8s/cheeses-ingress.yaml
``` ```
```shell ```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. You should now be able to visit the websites in your browser.
* [cheeses.local/stilton](http://cheeses.local/stilton/) * [cheeses.minikube/stilton](http://cheeses.minikube/stilton/)
* [cheeses.local/cheddar](http://cheeses.local/cheddar/) * [cheeses.minikube/cheddar](http://cheeses.minikube/cheddar/)
* [cheeses.local/wensleydale](http://cheeses.local/wensleydale/) * [cheeses.minikube/wensleydale](http://cheeses.minikube/wensleydale/)
## Disable passing the Host header ## Disable passing the Host header

View file

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

View file

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

View file

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