27 lines
772 B
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
|