From a1ae72148732c8346f987cbf7a825fca394330d3 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Wed, 28 Sep 2022 21:34:21 +0000 Subject: [PATCH] Update argocd/longhorn-system/templates/ingress.yaml --- argocd/longhorn-system/templates/ingress.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 argocd/longhorn-system/templates/ingress.yaml diff --git a/argocd/longhorn-system/templates/ingress.yaml b/argocd/longhorn-system/templates/ingress.yaml new file mode 100644 index 0000000..32965c2 --- /dev/null +++ b/argocd/longhorn-system/templates/ingress.yaml @@ -0,0 +1,27 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: longhorn-ingress + annotations: + kubernetes.io/ingress.class: nginx + cert-manager.io/cluster-issuer: letsencrypt-production + nginx.ingress.kubernetes.io/auth-response-headers: Authorization + nginx.ingress.kubernetes.io/auth-url: http://oauth2-proxy.oauth2-proxy.svc.cluster.local/oauth2/auth + nginx.ingress.kubernetes.io/auth-signin: https://oauth.lukritz.com/oauth2/start?rd=https://$host$request_uri$is_args$args + nginx.ingress.kubernetes.io/whitelist-source-range: "89.187.180.41/32" +spec: + rules: + - host: longhorn.durp.info + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: longhorn-frontend + port: + number: 80 + tls: + - hosts: + - longhorn.durp.info + secretName: longhorn-tls