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

31 lines
656 B
YAML
Raw Normal View History

2020-05-01 13:57:31 +00:00
{{- if .Values.istio.enabled }}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: argocd-server
2020-05-02 15:41:14 +00:00
labels:
2020-05-19 11:16:22 +00:00
{{ include "kubezero-lib.labels" . | indent 4 }}
2020-05-01 13:57:31 +00:00
spec:
gateways:
- {{ .Values.istio.gateway }}
hosts:
- {{ index .Values "argo-cd" "server" "config" "url" }}
2020-05-01 13:57:31 +00: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 }}