k8s/helm/apps/argocd/istio-ingress.yaml

58 lines
1,007 B
YAML
Raw Normal View History

2022-12-28 23:06:22 +00:00
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
2023-07-08 19:22:57 +00:00
name: argocd-cert
2022-12-28 23:06:22 +00:00
namespace: istio-system
spec:
2023-07-08 19:22:57 +00:00
secretName: argocd-cert
commonName: argocd.teapot.masked.name
2022-12-28 23:06:22 +00:00
dnsNames:
2023-07-08 19:22:57 +00:00
- argocd.teapot.masked.name
2022-12-28 23:06:22 +00:00
issuerRef:
name: vault-issuer
kind: ClusterIssuer
group: cert-manager.io
...
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
2023-07-08 19:22:57 +00:00
name: argocd-gateway
namespace: argocd
2022-12-28 23:06:22 +00:00
spec:
selector:
istio: ingressgateway-internal
2022-12-28 23:06:22 +00:00
servers:
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
2023-07-08 19:22:57 +00:00
credentialName: argocd-cert
2022-12-28 23:06:22 +00:00
hosts:
2023-07-08 19:22:57 +00:00
- argocd.teapot.masked.name
2022-12-28 23:06:22 +00:00
...
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
2023-07-08 19:22:57 +00:00
name: argocd-gateway
namespace: argocd
2022-12-28 23:06:22 +00:00
spec:
hosts:
2023-07-08 19:22:57 +00:00
- argocd.teapot.masked.name
2022-12-28 23:06:22 +00:00
gateways:
2023-07-08 19:22:57 +00:00
- argocd-gateway
2022-12-28 23:06:22 +00:00
http:
- match:
- uri:
prefix: /
route:
- destination:
port:
number: 80
2023-07-08 19:22:57 +00:00
host: argocd-server
2022-12-28 23:06:22 +00:00
...