mirror of
https://github.com/cnrancher/kube-explorer.git
synced 2025-08-20 23:43:01 +00:00
22 lines
607 B
Markdown
22 lines
607 B
Markdown
## Traefik Auth
|
|
|
|
This can be used in the cluster which uses the nginx-ingress.
|
|
|
|
We use `basic-auth` to control the access of kube-explorer. The auth token is stored in the secret.
|
|
|
|
The default user is `niusmallnan`, and password is `dagedddd`. You can replace to another value with `htpasswd` tool.
|
|
|
|
```
|
|
htpasswd -nb username password | base64
|
|
```
|
|
|
|
To install this mode, just run this script:
|
|
|
|
```
|
|
kubectl apply -f ./secret.yaml
|
|
export MY_XIP_IO=$(curl -sL ipinfo.io/ip)
|
|
envsubst < ./ingress.yaml.tpl | kubectl apply -f -
|
|
```
|
|
|
|
For more infos: https://kubernetes.github.io/ingress-nginx/examples/auth/basic/
|