From c7281df230265abcf8b1db689b5b79c2562a718c Mon Sep 17 00:00:00 2001 From: Ed Robinson Date: Thu, 4 May 2017 13:31:38 +0100 Subject: [PATCH] Update usage of `.local` with `.minikube` in k8s docs Fixes #1521 --- docs/user-guide/kubernetes.md | 34 +++++++++++++++---------------- examples/k8s/cheese-ingress.yaml | 6 +++--- examples/k8s/cheeses-ingress.yaml | 2 +- examples/k8s/ui.yaml | 2 +- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/docs/user-guide/kubernetes.md b/docs/user-guide/kubernetes.md index 7fa806a59..0e1fc6524 100644 --- a/docs/user-guide/kubernetes.md +++ b/docs/user-guide/kubernetes.md @@ -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 diff --git a/examples/k8s/cheese-ingress.yaml b/examples/k8s/cheese-ingress.yaml index b928ef514..4fbbe2123 100644 --- a/examples/k8s/cheese-ingress.yaml +++ b/examples/k8s/cheese-ingress.yaml @@ -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: / diff --git a/examples/k8s/cheeses-ingress.yaml b/examples/k8s/cheeses-ingress.yaml index 309017bba..4b40d0d5a 100644 --- a/examples/k8s/cheeses-ingress.yaml +++ b/examples/k8s/cheeses-ingress.yaml @@ -6,7 +6,7 @@ metadata: traefik.frontend.rule.type: pathprefixstrip spec: rules: - - host: cheeses.local + - host: cheeses.minikube http: paths: - path: /stilton diff --git a/examples/k8s/ui.yaml b/examples/k8s/ui.yaml index b18501b6f..22bcda1ea 100644 --- a/examples/k8s/ui.yaml +++ b/examples/k8s/ui.yaml @@ -19,7 +19,7 @@ metadata: namespace: kube-system spec: rules: - - host: traefik-ui.local + - host: traefik-ui.minikube http: paths: - path: /