github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/helm/templates/addons/vmagent-addon.yaml (about) 1 apiVersion: extensions.kubeblocks.io/v1alpha1 2 kind: Addon 3 metadata: 4 name: victoria-metrics-agent 5 labels: 6 {{- include "kubeblocks.labels" . | nindent 4 }} 7 "kubeblocks.io/provider": community 8 {{- if .Values.keepAddons }} 9 annotations: 10 helm.sh/resource-policy: keep 11 {{- end }} 12 spec: 13 description: 'vmagent is a tiny agent which helps you collect metrics from various sources, relabel and filter the collected metrics and store them in VictoriaMetrics or any other storage systems via Prometheus remote_write protocol.' 14 type: Helm 15 16 helm: 17 {{- include "kubeblocks.addonChartLocationURL" ( dict "name" "victoria-metrics-agent" "version" "0.8.41" "values" .Values) | indent 4 }} 18 {{- include "kubeblocks.addonChartsImage" . | indent 4 }} 19 20 installOptions: 21 {{- if hasPrefix "oci://" .Values.addonChartLocationBase }} 22 version: 0.8.41 23 {{- end }} 24 25 valuesMapping: 26 valueMap: 27 replicaCount: replicaCount 28 29 jsonMap: 30 tolerations: tolerations 31 32 resources: 33 cpu: 34 requests: resources.requests.cpu 35 limits: resources.limits.cpu 36 memory: 37 requests: resources.requests.memory 38 limits: resources.limits.memory 39 40 defaultInstallValues: 41 - replicas: 1 42 {{- with .Values.tolerations }} 43 tolerations: {{ toJson . | quote }} 44 {{- end }} 45 46 installable: 47 autoInstall: false