From 76875e3dbfc6ace0d22ec67c778f4e8ef5fb8408 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 23 Aug 2022 21:21:43 -0500 Subject: [PATCH] storage: Show how to create admin password secret --- storage/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/storage/README.md b/storage/README.md index db256c2..1a88a36 100644 --- a/storage/README.md +++ b/storage/README.md @@ -23,6 +23,15 @@ kubectl apply -f longhorn.yaml Expose the Longhorn UI outside the cluster: ```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 ```