2020-08-18 10:34:34 +00:00
|
|
|
{{- if .Values.fluentd.istio.enabled }}
|
|
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
|
|
kind: VirtualService
|
|
|
|
metadata:
|
2020-08-18 11:45:15 +00:00
|
|
|
name: {{ template "kubezero-lib.fullname" $ }}-fluentd
|
2020-08-18 10:34:34 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
{{ include "kubezero-lib.labels" . | indent 4 }}
|
|
|
|
spec:
|
|
|
|
gateways:
|
|
|
|
- {{ .Values.fluentd.istio.gateway }}
|
|
|
|
hosts:
|
|
|
|
- {{ .Values.fluentd.url }}
|
|
|
|
tcp:
|
|
|
|
- match:
|
|
|
|
- port: 24224
|
|
|
|
route:
|
|
|
|
- destination:
|
2020-08-18 11:45:15 +00:00
|
|
|
host: {{ template "kubezero-lib.fullname" $ }}-fluentd
|
2020-08-18 10:34:34 +00:00
|
|
|
port:
|
|
|
|
number: 24224
|
|
|
|
http:
|
|
|
|
- route:
|
|
|
|
- destination:
|
2020-08-18 11:45:15 +00:00
|
|
|
host: {{ template "kubezero-lib.fullname" $ }}-fluentd
|
2020-08-18 10:34:34 +00:00
|
|
|
port:
|
|
|
|
number: 9880
|
|
|
|
{{- end }}
|