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

30 lines
602 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
namespace: argocd
spec:
gateways:
- {{ .Values.istio.gateway }}
hosts:
- {{ .Values.argocd.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 }}