cluster-manifests/gitea/ingress.yaml

30 lines
815 B
YAML

# ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitea-local-ingress
namespace: gitea
annotations:
# AUTOMATED TLS FIX: Triggers cert-manager to provision the certificate
cert-manager.io/cluster-issuer: "letsencrypt-production"
# THE 502 FIX: Instructs NGINX to bridge to the unencrypted pod port 80
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
ingressClassName: nginx
# AUTOMATED TLS FIX: Instructs NGINX where to mount the generated certificate
tls:
- secretName: gitea-tls-secret
hosts:
- git.needlestack.boo
rules:
- host: git.needlestack.boo
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gitea-service
port:
number: 80