mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Re-add longhorn ingress with subdomain and basic auth
This commit is contained in:
@@ -6,7 +6,7 @@ namespace: argocd
|
|||||||
|
|
||||||
# additional resources like ingress rules, cluster and repository secrets.
|
# additional resources like ingress rules, cluster and repository secrets.
|
||||||
resources:
|
resources:
|
||||||
- https://raw.githubusercontent.com/argoproj/argo-cd/v2.14.2/manifests/install.yaml
|
- https://raw.githubusercontent.com/argoproj/argo-cd/refs/tags/v2.12.4/manifests/install.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
|
|
||||||
patches:
|
patches:
|
||||||
|
|||||||
+36
-27
@@ -1,27 +1,36 @@
|
|||||||
# apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
# kind: Ingress
|
kind: Ingress
|
||||||
# metadata:
|
metadata:
|
||||||
# name: longhorn-ingress
|
name: longhorn-ingress
|
||||||
# namespace: longhorn-system
|
annotations:
|
||||||
# annotations:
|
# nginx.ingress.kubernetes.io/rewrite-target: /
|
||||||
# # type of authentication
|
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
||||||
# # nginx.ingress.kubernetes.io/auth-type: basic
|
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
|
||||||
# # prevent the controller from redirecting (308) to HTTPS
|
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||||
# nginx.ingress.kubernetes.io/ssl-redirect: 'false'
|
# nginx.ingress.kubernetes.io/cors-allow-origin: "http://localhost:3000/"
|
||||||
# # name of the secret that contains the user/password definitions
|
# nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS, DELETE"
|
||||||
# # nginx.ingress.kubernetes.io/auth-secret: basic-auth
|
# If you encounter a redirect loop or are getting a 307 response code
|
||||||
# # message to display with an appropriate context why the authentication is required
|
# then you need to force the nginx ingress to connect to the backend using HTTPS.
|
||||||
# # nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required '
|
#
|
||||||
# # custom max body size for file uploading like backing image uploading
|
# nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
||||||
# nginx.ingress.kubernetes.io/proxy-body-size: 10000m
|
# namespace: ente-photos
|
||||||
# spec:
|
spec:
|
||||||
# rules:
|
ingressClassName: nginx
|
||||||
# - http:
|
rules:
|
||||||
# paths:
|
- host: longhorn.hensen.io
|
||||||
# - pathType: Prefix
|
http:
|
||||||
# path: "/"
|
paths:
|
||||||
# backend:
|
- path: /
|
||||||
# service:
|
pathType: Prefix
|
||||||
# name: longhorn-frontend
|
backend:
|
||||||
# port:
|
service:
|
||||||
# number: 80
|
name: longhorn-service
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
|
||||||
|
# TLS configuration for HTTPS
|
||||||
|
tls:
|
||||||
|
# TLS secretName used on ClusterIssuer
|
||||||
|
- secretName: letsencrypt-prod
|
||||||
|
hosts:
|
||||||
|
- longhorn.hensen.io
|
||||||
|
|||||||
Reference in New Issue
Block a user