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
|
|
|
|
commonName: git.minhas.io
|
|
|
|
dnsNames:
|
|
|
|
- git.minhas.io
|
|
|
|
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:
|
|
|
|
- git.minhas.io
|
2023-01-14 21:11:30 +00:00
|
|
|
- port:
|
|
|
|
number: 80
|
|
|
|
name: http
|
|
|
|
protocol: HTTP
|
|
|
|
tls:
|
|
|
|
httpsRedirect: true
|
|
|
|
hosts:
|
|
|
|
- git.minhas.io
|
2022-12-30 22:14:54 +00:00
|
|
|
...
|
|
|
|
---
|
|
|
|
apiVersion: networking.istio.io/v1beta1
|
|
|
|
kind: VirtualService
|
|
|
|
metadata:
|
|
|
|
name: gitea-gateway
|
|
|
|
namespace: gitea
|
|
|
|
spec:
|
|
|
|
hosts:
|
|
|
|
- git.minhas.io
|
|
|
|
gateways:
|
|
|
|
- gitea-gateway
|
|
|
|
http:
|
|
|
|
- match:
|
|
|
|
- uri:
|
|
|
|
prefix: /
|
|
|
|
route:
|
|
|
|
- destination:
|
|
|
|
port:
|
|
|
|
number: 80
|
|
|
|
host: gitea-http
|
|
|
|
...
|