This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
iac/kubernetes/apps/production/longhorn/ingress.yaml

27 lines
772 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: longhorn-ingress
namespace: longhorn-system
annotations:
# Prevent the controller from redirecting (308) to HTTPS
nginx.ingress.kubernetes.io/ssl-redirect: 'true'
# Custom max body size for file uploading, like backing image uploading
nginx.ingress.kubernetes.io/proxy-body-size: 10000m
spec:
ingressClassName: nginx
rules:
- host: "longhorn.local.mafyuh.com"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: longhorn-frontend
port:
number: 80
tls:
- hosts:
- longhorn.local.mafyuh.com
secretName: local-mafyuh-com-production-tls