mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Add basic auth to k8s dashboard
This commit is contained in:
parent
d8d9733ed9
commit
2315ed19df
4 changed files with 75 additions and 99 deletions
|
|
@ -5,12 +5,9 @@ metadata:
|
|||
name: kubernetes-dashboard
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik
|
||||
{% if basic_auth_user | length > 0 %}
|
||||
ingress.kubernetes.io/auth-type: basic
|
||||
# name of the secret that contains the user/password definitions
|
||||
ingress.kubernetes.io/auth-secret: dashboard-basic-auth
|
||||
# message to display with an appropiate context why the authentication is required
|
||||
ingress.kubernetes.io/auth-realm: "Authentication is required to access the k8s dashboard "
|
||||
{% if dashboard_basic_auth_user | length > 0 %}
|
||||
traefik.ingress.kubernetes.io/auth-type: basic
|
||||
traefik.ingress.kubernetes.io/auth-secret: dashboard-basic-auth
|
||||
{% endif %}
|
||||
|
||||
spec:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue