Quote priority values in annotation examples.

This commit is contained in:
Timo Reimann 2017-10-09 14:16:03 +02:00 committed by Traefiker
parent 18d8537d29
commit ed2eb7b5a6
2 changed files with 4 additions and 3 deletions

View file

@ -86,7 +86,7 @@ Annotations can be used on containers to override default behaviour for the whol
- `traefik.frontend.rule.type: PathPrefixStrip` - `traefik.frontend.rule.type: PathPrefixStrip`
Override the default frontend rule type. Default: `PathPrefix`. Override the default frontend rule type. Default: `PathPrefix`.
- `traefik.frontend.priority: 3` - `traefik.frontend.priority: "3"`
Override the default frontend rule priority. Override the default frontend rule priority.
Annotations can be used on the Kubernetes service to override default behaviour: Annotations can be used on the Kubernetes service to override default behaviour:

View file

@ -590,7 +590,7 @@ kind: Ingress
metadata: metadata:
name: wildcard-cheeses name: wildcard-cheeses
annotations: annotations:
traefik.frontend.priority: 1 traefik.frontend.priority: "1"
spec: spec:
rules: rules:
- host: *.minikube - host: *.minikube
@ -605,7 +605,7 @@ kind: Ingress
metadata: metadata:
name: specific-cheeses name: specific-cheeses
annotations: annotations:
traefik.frontend.priority: 2 traefik.frontend.priority: "2"
spec: spec:
rules: rules:
- host: specific.minikube - host: specific.minikube
@ -617,6 +617,7 @@ spec:
servicePort: http servicePort: http
``` ```
Note that priority values must be quoted to avoid them being interpreted as numbers (which are illegal for annotations).
## Forwarding to ExternalNames ## Forwarding to ExternalNames