1
0
Fork 0

storage: Show how to create admin password secret

dch-webhooks-secrets
Dustin 2022-08-23 21:21:43 -05:00
parent 8f6373fb70
commit 76875e3dbf
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,15 @@ kubectl apply -f longhorn.yaml
Expose the Longhorn UI outside the cluster: Expose the Longhorn UI outside the cluster:
```sh ```sh
printf 'Longhorn username: '
read longhorn_username
printf 'Longhorn password: '
read -s longhorn_password
printf '%s:%s\n' \
"${longhorn_username}" \
"$(openssl passwd -stdin -apr1 <<< "${longhorn_password}")" \
> auth
kubectl create secret generic -n longhorn-system basic-auth --from-file auth
kubectl apply -f longhorn-ingress.yaml kubectl apply -f longhorn-ingress.yaml
``` ```