Gitea/manifests/ingress.yaml

29 lines
724 B
YAML
Raw Normal View History

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitea-ingress
namespace: gitea
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
kubernetes.io/ingress.class: nginx-external
acme.cert-manager.io/http01-edit-in-place: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite ^/metrics(/?)$ https://git.halis.io/$1 permanent;
spec:
2024-11-11 13:07:04 +00:00
tls:
- hosts:
- git.halis.io
2024-11-17 20:18:02 +00:00
secretName: git-halis-io-tls
ingressClassName: nginx-external
rules:
- host: git.halis.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gitea-svc
port:
number: 80