KubeZero/charts/kubezero-argo-cd/templates/istio-service.yaml

31 lines
696 B
YAML

{{- if index .Values "argo-cd" "istio" "enabled" }}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: argocd-server
labels:
{{ include "kubezero-lib.labels" . | indent 4 }}
spec:
gateways:
- {{ index .Values "argo-cd" "istio" "gateway" }}
hosts:
- {{ index .Values "argo-cd" "server" "config" "url" }}
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 }}