31 lines
616 B
YAML
Raw Normal View History

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