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:
|
|
|
|
app.kubernetes.io/name: {{ .Chart.Name }}-argocd-virtualservice
|
|
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
|
|
app.kubernetes.io/part-of: argocd
|
|
|
|
app.kubernetes.io/component: server
|
2020-05-01 13:57:31 +00:00
|
|
|
spec:
|
|
|
|
gateways:
|
|
|
|
- {{ .Values.istio.gateway }}
|
|
|
|
hosts:
|
2020-05-02 15:27:07 +00:00
|
|
|
- {{ 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 }}
|