Skip to content

Commit

Permalink
add traefik prefix to k8s annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
zifeo authored and traefiker committed Jul 31, 2018
1 parent 09b489a commit 9bfc424
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/user-guide/kubernetes.md
Expand Up @@ -453,8 +453,8 @@ kubectl create secret generic mysecret --from-file auth --namespace=monitoring

C. Attach the following annotations to the Ingress object:

- `ingress.kubernetes.io/auth-type: "basic"`
- `ingress.kubernetes.io/auth-secret: "mysecret"`
- `traefik.ingress.kubernetes.io/auth-type: "basic"`
- `traefik.ingress.kubernetes.io/auth-secret: "mysecret"`

They specify basic authentication and reference the Secret `mysecret` containing the credentials.

Expand All @@ -468,8 +468,8 @@ metadata:
namespace: monitoring
annotations:
kubernetes.io/ingress.class: traefik
ingress.kubernetes.io/auth-type: "basic"
ingress.kubernetes.io/auth-secret: "mysecret"
traefik.ingress.kubernetes.io/auth-type: "basic"
traefik.ingress.kubernetes.io/auth-secret: "mysecret"
spec:
rules:
- host: dashboard.prometheus.example.com
Expand Down

0 comments on commit 9bfc424

Please sign in to comment.