From fb4717d5f380b0a8ea043553ba266641237c6b3c Mon Sep 17 00:00:00 2001 From: Teo Stocco Date: Tue, 31 Jul 2018 17:58:04 +0200 Subject: [PATCH] Add traefik prefix to k8s annotations --- docs/user-guide/kubernetes.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/user-guide/kubernetes.md b/docs/user-guide/kubernetes.md index d6f0eb42f..c194af91e 100644 --- a/docs/user-guide/kubernetes.md +++ b/docs/user-guide/kubernetes.md @@ -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. @@ -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