agent
agent copied to clipboard
operator logs agent nodeSelector
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.
cc @marctc @captncraig
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.
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!