agent icon indicating copy to clipboard operation
agent copied to clipboard

operator logs agent nodeSelector

Open invisibl-dev opened this issue 3 years ago • 3 comments
trafficstars

currently we use nodeSelector as shown below.

apiVersion: monitoring.grafana.com/v1alpha1
kind: GrafanaAgent
metadata:
  name: grafana-agent
spec:
  nodeSelector:
       nodepool1: 'true'

But it gets applied for logs agent DaemonSet as well. => https://github.com/grafana/agent/blob/v0.26.1/pkg/operator/resources_pod_template.go#L252

Would like to disable nodeSelector for logs subsystem Spec.

invisibl-dev avatar Aug 04 '22 08:08 invisibl-dev

cc @marctc @captncraig

rfratto avatar Aug 09 '22 20:08 rfratto

One workaround for this would be to create multiple GrafanaAgent resources. You can have one for logs without the nodeSelector, and one for metrics with it. Each GrafanaAgent can include just the MetricsInstance or LogsInstance it wants with the appropriate selectors.

captncraig avatar Sep 01 '22 18:09 captncraig

This issue has been automatically marked as stale because it has not had any activity in the past 30 days. The next time this stale check runs, the stale label will be removed if there is new activity. The issue will be closed in 7 days if there is no new activity. Thank you for your contributions!

github-actions[bot] avatar Oct 02 '22 00:10 github-actions[bot]