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

32 lines
732 B
YAML
Raw Normal View History

2024-03-27 11:34:19 +00:00
{{- if index .Values "argo-cd" "istio" "enabled" }}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: argocd-server
namespace: {{ $.Release.Namespace }}
labels:
{{- include "kubezero-lib.labels" . | nindent 4 }}
spec:
gateways:
- {{ index .Values "argo-cd" "istio" "gateway" }}
2024-03-27 11:34:19 +00:00
hosts:
- {{ get (urlParse (index .Values "argo-cd" "configs" "cm" "url")) "host" }}
http:
- name: grpc
match:
- headers:
user-agent:
prefix: argocd-client
route:
- destination:
host: argo-argocd-server
2024-03-27 11:34:19 +00:00
port:
number: 443
- name: http
route:
- destination:
host: argo-argocd-server
2024-03-27 11:34:19 +00:00
port:
number: 80
{{- end }}