GoogleCloudPlatform / prometheus-engine

Google Cloud Managed Service for Prometheus libraries and manifests.
https://g.co/cloud/managedprometheus
Apache License 2.0
191 stars 89 forks source link

fix: allow datasource-syncer to run on arm64 nodes #960

Closed edingroot closed 4 months ago

edingroot commented 4 months ago

The GCP Configure and authenticate the Grafana data source documentation instructs users to apply this datasource-syncer.yaml to deploy datasource syncer to their Kubernetes cluster.

However, there is a default taint kubernetes.io/arch=arm64:NoSchedule on every ARM node launched from GKE clusters, preventing the syncer jobs from being scheduled.

I referred to the linked grafana.yaml below from this repository to add affinity configurations, allowing the jobs to be scheduled on ARM nodes. I tested it in my GKE cluster and it works. https://github.com/GoogleCloudPlatform/prometheus-engine/blob/2ca623dfb091dbec98344bf98ab43c917b7cdfe4/examples/grafana.yaml#L29-L42