From 63d60746f377c0ee47dfa21f248c0328797c9a58 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sat, 24 Jun 2023 07:23:03 +0200 Subject: [PATCH] longhorn ingress with basicauth --- longhorn/ingress.yaml | 11 +++++++++++ longhorn/values.yaml | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 longhorn/ingress.yaml diff --git a/longhorn/ingress.yaml b/longhorn/ingress.yaml new file mode 100644 index 0000000..62defc3 --- /dev/null +++ b/longhorn/ingress.yaml @@ -0,0 +1,11 @@ +--- +kind: Secret +metadata: + name: longhorn-basic-auth-secret + namespace: longhorn-system +apiVersion: v1 +type: nginx.org/htpasswd +stringData: + htpasswd: | + aaron:$2y$05$B2.Q.9/e4VEXsnoe.ypjYOkiykmrF2hpApE7CYc2DPIr0pFIdDO1O + tom:$2y$05$BsM7fvmf3Gpuznak5OSgre0x81K4.vxUQO/aKW5cY4gmQOzvssPLO diff --git a/longhorn/values.yaml b/longhorn/values.yaml index 3ed9b78..de6ef36 100644 --- a/longhorn/values.yaml +++ b/longhorn/values.yaml @@ -6,4 +6,6 @@ defaultSettings: ingress: enabled: true ingressClassName: nginx - host: longhorn.services.yolokube.de \ No newline at end of file + host: longhorn.services.yolokube.de + annotations: + nginx.org/basic-auth-secret: longhorn-basic-auth-secret \ No newline at end of file