Skip to content

Commit

Permalink
[kubernetes] Quote priority values in annotation examples.
Browse files Browse the repository at this point in the history
Otherwise, they'd be interpreted as numbers and rejected/dropped by the
API server since annotations must always be strings.
  • Loading branch information
timoreimann authored and traefiker committed Oct 9, 2017
1 parent 18d8537 commit e2be989
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/configuration/backends/kubernetes.md
Expand Up @@ -86,7 +86,7 @@ Annotations can be used on containers to override default behaviour for the whol

- `traefik.frontend.rule.type: PathPrefixStrip`
Override the default frontend rule type. Default: `PathPrefix`.
- `traefik.frontend.priority: 3`
- `traefik.frontend.priority: "3"`
Override the default frontend rule priority.

Annotations can be used on the Kubernetes service to override default behaviour:
Expand Down
5 changes: 3 additions & 2 deletions docs/user-guide/kubernetes.md
Expand Up @@ -590,7 +590,7 @@ kind: Ingress
metadata:
name: wildcard-cheeses
annotations:
traefik.frontend.priority: 1
traefik.frontend.priority: "1"
spec:
rules:
- host: *.minikube
Expand All @@ -605,7 +605,7 @@ kind: Ingress
metadata:
name: specific-cheeses
annotations:
traefik.frontend.priority: 2
traefik.frontend.priority: "2"
spec:
rules:
- host: specific.minikube
Expand All @@ -617,6 +617,7 @@ spec:
servicePort: http
```

Note that priority values must be quoted to avoid them being interpreted as numbers (which are illegal for annotations).

## Forwarding to ExternalNames

Expand Down

0 comments on commit e2be989

Please sign in to comment.