Adding htaccess for longhorn ui

This commit is contained in:
Moritz Graf 2020-04-13 22:48:30 +02:00
parent ee391de9cb
commit 93da61895f
2 changed files with 25 additions and 22 deletions

Binary file not shown.

View File

@ -1,25 +1,28 @@
# ### status: works, but is not secure
# apiVersion: extensions/v1beta1
# kind: Ingress
# metadata:
# name: longhorn-frontend
# namespace: longhorn-system
# annotations:
# kubernetes.io/ingress.class: "nginx"
# nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
# cert-manager.io/cluster-issuer: "letsencrypt-prod"
# spec:
# tls:
# - hosts:
# - "longhorn.haumdaucher.de"
# secretName: longhorn-haumdaucher-de
# rules:
# - host: longhorn.haumdaucher.de
# http:
# paths:
# - path: /
# backend:
# serviceName: longhorn-frontend
# servicePort: 80
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: longhorn-frontend
namespace: longhorn-system
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: htpasswd
nginx.ingress.kubernetes.io/auth-realm: "Authentication Required - ok"
spec:
tls:
- hosts:
- "longhorn.haumdaucher.de"
secretName: longhorn-haumdaucher-de
rules:
- host: longhorn.haumdaucher.de
http:
paths:
- path: /
backend:
serviceName: longhorn-frontend
servicePort: 80