KubeZero/charts/kubezero-argocd/templates/istio-service.yaml

31 lines
616 B
YAML
Raw Normal View History

2020-11-24 14:44:57 +00:00
{{- if .Values.istio.enabled }}
2020-05-01 13:57:31 +00:00
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: argocd-server
2020-05-02 15:41:14 +00:00
labels:
2020-05-19 11:16:22 +00:00
{{ include "kubezero-lib.labels" . | indent 4 }}
2020-05-01 13:57:31 +00:00
spec:
gateways:
2020-11-24 14:44:57 +00:00
- {{ .Values.istio.gateway }}
2020-05-01 13:57:31 +00:00
hosts:
- {{ index .Values "argo-cd" "server" "config" "url" }}
2020-05-01 13:57:31 +00:00
http:
- name: grpc
match:
- headers:
user-agent:
prefix: argocd-client
route:
- destination:
2020-11-24 14:44:57 +00:00
host: argocd-server
2020-05-01 13:57:31 +00:00
port:
number: 443
- name: http
route:
- destination:
2020-11-24 14:44:57 +00:00
host: argocd-server
2020-05-01 13:57:31 +00:00
port:
number: 80
{{- end }}