[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
``` ```