2024-12-05 13:09:22 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: Ingress
|
2023-07-06 11:49:33 +00:00
|
|
|
metadata:
|
|
|
|
name: gitea-ingress
|
|
|
|
namespace: gitea
|
|
|
|
annotations:
|
2024-12-05 13:09:22 +00:00
|
|
|
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;
|
2023-07-06 11:49:33 +00:00
|
|
|
spec:
|
2024-11-11 13:07:04 +00:00
|
|
|
tls:
|
2024-12-05 13:09:22 +00:00
|
|
|
- hosts:
|
|
|
|
- git.halis.io
|
2024-11-17 20:18:02 +00:00
|
|
|
secretName: git-halis-io-tls
|
2024-12-05 13:09:22 +00:00
|
|
|
ingressClassName: nginx-external
|
|
|
|
rules:
|
|
|
|
- host: git.halis.io
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
backend:
|
|
|
|
service:
|
|
|
|
name: gitea-svc
|
|
|
|
port:
|
|
|
|
number: 80
|