fix oauth2 longhorn
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -3,14 +3,17 @@ kind: Ingress
|
||||
metadata:
|
||||
name: oauth2-proxy-longhorn-ingress
|
||||
namespace: longhorn-system
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
spec:
|
||||
- host: longhorn.prod.panic.haus
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: oauth2-proxy-longhorn-service
|
||||
port:
|
||||
number: 4180
|
||||
path: /oauth2
|
||||
pathType: Prefix
|
||||
rules:
|
||||
- host: longhorn.prod.panic.haus
|
||||
http:
|
||||
paths:
|
||||
- path: /oauth2
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: oauth2-proxy-longhorn-service
|
||||
port:
|
||||
number: 4180
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user