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
|
2021-11-11 15:58:58 +00:00
|
|
|
namespace: {{ $.Release.Namespace }}
|
2020-05-02 15:41:14 +00:00
|
|
|
labels:
|
2022-01-24 11:05:54 +00:00
|
|
|
{{- include "kubezero-lib.labels" . | nindent 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:
|
2022-11-21 11:14:03 +00:00
|
|
|
- {{ index .Values "argo-cd" "configs" "cm" "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 }}
|