[Docs] Fix invalid service yaml example

This commit is contained in:
Kyle Bai 2017-09-05 17:42:03 +08:00 committed by Traefiker
parent e075dfe911
commit 732d73dd43

View file

@ -123,8 +123,10 @@ spec:
ports: ports:
- protocol: TCP - protocol: TCP
port: 80 port: 80
name: web
- protocol: TCP - protocol: TCP
port: 8080 port: 8080
name: admin
type: NodePort type: NodePort
``` ```
[examples/k8s/traefik-deployment.yaml](https://github.com/containous/traefik/tree/master/examples/k8s/traefik-deployment.yaml) [examples/k8s/traefik-deployment.yaml](https://github.com/containous/traefik/tree/master/examples/k8s/traefik-deployment.yaml)
@ -184,8 +186,10 @@ spec:
ports: ports:
- protocol: TCP - protocol: TCP
port: 80 port: 80
name: web
- protocol: TCP - protocol: TCP
port: 8080 port: 8080
name: admin
type: NodePort type: NodePort
``` ```
@ -686,7 +690,7 @@ If you were to visit `example.com/static` the request would then be passed onto
!!! note !!! note
The per ingress annotation overides whatever the global value is set to. The per ingress annotation overides whatever the global value is set to.
So you could set `disablePassHostHeaders` to `true` in your toml file and then enable passing So you could set `disablePassHostHeaders` to `true` in your toml file and then enable passing
the host header per ingress if you wanted. the host header per ingress if you wanted.
## Excluding an ingress from Træfik ## Excluding an ingress from Træfik