k8s/helm/wallabag/istio-ingress.yaml

66 lines
1.1 KiB
YAML
Raw Normal View History

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