fix oauth2 longhorn
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: longhorn-dashboard
|
name: longhorn-ingress
|
||||||
namespace: longhorn-system
|
namespace: longhorn-system
|
||||||
annotations:
|
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:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
|
|||||||
@@ -3,14 +3,17 @@ kind: Ingress
|
|||||||
metadata:
|
metadata:
|
||||||
name: oauth2-proxy-longhorn-ingress
|
name: oauth2-proxy-longhorn-ingress
|
||||||
namespace: longhorn-system
|
namespace: longhorn-system
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: nginx
|
||||||
spec:
|
spec:
|
||||||
- host: longhorn.prod.panic.haus
|
rules:
|
||||||
http:
|
- host: longhorn.prod.panic.haus
|
||||||
paths:
|
http:
|
||||||
- backend:
|
paths:
|
||||||
service:
|
- path: /oauth2
|
||||||
name: oauth2-proxy-longhorn-service
|
pathType: Prefix
|
||||||
port:
|
backend:
|
||||||
number: 4180
|
service:
|
||||||
path: /oauth2
|
name: oauth2-proxy-longhorn-service
|
||||||
pathType: Prefix
|
port:
|
||||||
|
number: 4180
|
||||||
|
|||||||
@@ -4,9 +4,10 @@ metadata:
|
|||||||
name: oauth2-proxy-longhorn-service
|
name: oauth2-proxy-longhorn-service
|
||||||
namespace: longhorn-system
|
namespace: longhorn-system
|
||||||
spec:
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 4180
|
||||||
|
targetPort: 4180
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
selector:
|
selector:
|
||||||
app: oauth2-proxy-longhorn
|
app: oauth2-proxy-longhorn
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 4180
|
|
||||||
targetPort: 4180
|
|
||||||
|
|||||||
Reference in New Issue
Block a user