31 lines
696 B
YAML
Raw Normal View History

2020-06-25 13:52:07 +01:00
{{- if index .Values "argo-cd" "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-06-25 13:52:07 +01:00
- {{ index .Values "argo-cd" "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:
host: {{ .Release.Name }}-argocd-server
port:
number: 443
- name: http
route:
- destination:
host: {{ .Release.Name }}-argocd-server
port:
number: 80
{{- end }}