k8s/helm/gitea/istio-ingress.yaml

66 lines
1.1 KiB
YAML
Raw Normal View History

2022-12-30 22:14:54 +00:00
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: gitea-cert
namespace: istio-system
spec:
secretName: gitea-cert
2024-01-27 18:53:00 +00:00
commonName: git.devvul.com
2022-12-30 22:14:54 +00:00
dnsNames:
2024-01-27 18:53:00 +00:00
- git.devvul.com
2022-12-30 22:14:54 +00:00
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
group: cert-manager.io
...
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: gitea-gateway
namespace: gitea
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: gitea-cert
hosts:
2024-01-27 18:53:00 +00:00
- git.devvul.com
2023-01-14 21:11:30 +00:00
- port:
number: 80
name: http
protocol: HTTP
tls:
httpsRedirect: true
hosts:
2024-01-27 18:53:00 +00:00
- git.devvul.com
2022-12-30 22:14:54 +00:00
...
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: gitea-gateway
namespace: gitea
spec:
hosts:
2024-01-27 18:53:00 +00:00
- git.devvul.com
2022-12-30 22:14:54 +00:00
gateways:
- gitea-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
port:
number: 80
host: gitea-http
...