fix oauth2 longhorn proxy
This commit is contained in:
27
deploy/longhorn/longhorn-dashboard.yaml
Normal file
27
deploy/longhorn/longhorn-dashboard.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: longhorn-dashboard
|
||||
namespace: longhorn-system
|
||||
annotations:
|
||||
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:
|
||||
- longhorn.panic.haus
|
||||
secretName: longhorn-tls
|
||||
rules:
|
||||
- host: longhorn.panic.haus
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: longhorn-frontend
|
||||
port:
|
||||
number: 80
|
||||
|
Reference in New Issue
Block a user