Add traefik prefix to k8s annotations
This commit is contained in:
parent
09b489a614
commit
fb4717d5f3
1 changed files with 4 additions and 4 deletions
|
@ -453,8 +453,8 @@ kubectl create secret generic mysecret --from-file auth --namespace=monitoring
|
||||||
|
|
||||||
C. Attach the following annotations to the Ingress object:
|
C. Attach the following annotations to the Ingress object:
|
||||||
|
|
||||||
- `ingress.kubernetes.io/auth-type: "basic"`
|
- `traefik.ingress.kubernetes.io/auth-type: "basic"`
|
||||||
- `ingress.kubernetes.io/auth-secret: "mysecret"`
|
- `traefik.ingress.kubernetes.io/auth-secret: "mysecret"`
|
||||||
|
|
||||||
They specify basic authentication and reference the Secret `mysecret` containing the credentials.
|
They specify basic authentication and reference the Secret `mysecret` containing the credentials.
|
||||||
|
|
||||||
|
@ -468,8 +468,8 @@ metadata:
|
||||||
namespace: monitoring
|
namespace: monitoring
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: traefik
|
kubernetes.io/ingress.class: traefik
|
||||||
ingress.kubernetes.io/auth-type: "basic"
|
traefik.ingress.kubernetes.io/auth-type: "basic"
|
||||||
ingress.kubernetes.io/auth-secret: "mysecret"
|
traefik.ingress.kubernetes.io/auth-secret: "mysecret"
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: dashboard.prometheus.example.com
|
- host: dashboard.prometheus.example.com
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue