longhorn ingress with basicauth

This commit is contained in:
Aaron Riedel 2023-06-24 07:23:03 +02:00
parent c4033903b4
commit 63d60746f3
Signed by: aaron
GPG key ID: 643004654D40D577
2 changed files with 14 additions and 1 deletions

11
longhorn/ingress.yaml Normal file
View file

@ -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

View file

@ -6,4 +6,6 @@ defaultSettings:
ingress:
enabled: true
ingressClassName: nginx
host: longhorn.services.yolokube.de
host: longhorn.services.yolokube.de
annotations:
nginx.org/basic-auth-secret: longhorn-basic-auth-secret