k8s/helm/chartmuseum/istio-ingress.yaml

66 lines
1.1 KiB
YAML
Raw Normal View History

2023-01-03 03:55:50 +00:00
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: chartmuseum-cert
namespace: istio-system
spec:
secretName: chartmuseum-cert
commonName: charts.minhas.io
dnsNames:
- charts.minhas.io
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
group: cert-manager.io
...
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: chartmuseum-gateway
namespace: chartmuseum
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: chartmuseum-cert
hosts:
- charts.minhas.io
2023-01-14 21:11:30 +00:00
- port:
number: 80
name: http
protocol: HTTP
tls:
httpsRedirect: true
hosts:
- charts.minhas.io
2023-01-03 03:55:50 +00:00
...
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: chartmuseum-gateway
namespace: chartmuseum
spec:
hosts:
- charts.minhas.io
gateways:
- chartmuseum-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
port:
number: 8080
host: chartmuseum
...