fix oauth2 longhorn

This commit is contained in:
2025-03-31 01:23:25 +02:00
parent a8df93957f
commit 56ca246d9b
3 changed files with 23 additions and 16 deletions

View File

@@ -1,10 +1,13 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: longhorn-dashboard
name: longhorn-ingress
namespace: longhorn-system
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/auth-signin: https://$host/oauth2/start?rd=$escaped_request_uri
nginx.ingress.kubernetes.io/auth-url: https://$host/oauth2/auth
spec:
tls:
- hosts:

View File

@@ -3,14 +3,17 @@ kind: Ingress
metadata:
name: oauth2-proxy-longhorn-ingress
namespace: longhorn-system
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: longhorn.prod.panic.haus
http:
paths:
- backend:
- path: /oauth2
pathType: Prefix
backend:
service:
name: oauth2-proxy-longhorn-service
port:
number: 4180
path: /oauth2
pathType: Prefix

View File

@@ -4,9 +4,10 @@ metadata:
name: oauth2-proxy-longhorn-service
namespace: longhorn-system
spec:
ports:
- port: 4180
targetPort: 4180
protocol: TCP
name: http
selector:
app: oauth2-proxy-longhorn
ports:
- name: http
port: 4180
targetPort: 4180