apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: monitoring

resources: 
  - namespace.yaml
  - grafana.pvc.yaml
  - influxdb.pvc.yaml
  - grafana.ingress.yaml
  # prometheus-operator crds
  - https://github.com/prometheus-operator/prometheus-operator/releases/download/v0.70.0/bundle.yaml
  - prometheus.yaml
  - thanos-objstore-config.sealedsecret.yaml
  # thanos deployment from kube-thanos project
  - thanos-store.statefulset.yaml
  - thanos-query.deployment.yaml

images:
  - name: thanos
    newName: quay.io/thanos/thanos
    newTag: v0.34.1

helmCharts:
  - releaseName: grafana
    name: grafana
    repo: https://grafana.github.io/helm-charts
    version: 7.3.0
    valuesFile: grafana.values.yaml

  - releaseName: influxdb
    name: influxdb2
    repo: https://helm.influxdata.com/
    version: 2.1.2
    valuesFile: influxdb.values.yaml

  - releaseName: telegraf-speedtest
    name: telegraf
    repo: https://helm.influxdata.com/
    version: 1.8.39
    valuesFile: telegraf-speedtest.values.yaml