Skip to main content

Helm Chart Values

The values you are likely to set, grouped by what you are trying to do. Anything not listed here is an internal default or a passthrough to a subchart.

The chart is open source at nudgebee/k8s-agent. If this page and values.yaml disagree, the chart is right.

Subcharts​

RepositoryNameVersionCondition
https://charts.bitnami.com/bitnamiclickhouse3.1.*opentelemetry-collector.enabled
https://open-telemetry.github.io/opentelemetry-helm-chartsopentelemetry-collector0.165.0opentelemetry-collector.enabled
https://opencost.github.io/opencost-helm-chartopencost2.0.1opencost.enabled

For task-oriented guidance, see Enable or Disable Agent Modules and Agent Storage and PVCs.


Required​

KeyTypeDefaultDescription
runner.nudgebee.auth_secret_keystring""Agent auth key from Admin → Integrations → Kubernetes Clusters. The backend derives the account and cluster from this key.
runner.nudgebee.endpointstringhttps://collector.nudgebee.comCollector URL. Self-hosted: https://collector.yourcompany.com.
runner.relay_addressstringwss://relay.nudgebee.com/registerRelay WebSocket URL. Self-hosted: wss://relay.yourcompany.com/register.
globalConfig.prometheus_urlstring""Prometheus/Thanos/VictoriaMetrics query URL. Empty = auto-discover in-cluster.

Auth key from an existing Secret​

If something else creates the credential — External Secrets, a parent chart, your own pipeline — point the agent at that Secret instead of putting the key in your values. Setting this and auth_secret_key together fails the install rather than silently picking one.

runner:
nudgebee:
authSecretKeyFrom:
name: my-existing-secret
key: NUDGEBEE_AUTH_SECRET_KEY

Collector or relay behind a private CA​

If your collector and relay serve certificates issued by an internal CA, the runner rejects them and nothing reaches the server:

incremental post failed ... tls: failed to verify certificate: x509: certificate signed by unknown authority

The pod stays Running and healthy while this repeats, so the only symptom is a cluster that never reports data. Mount your CA and point the runner's trust store at it. One setting covers every outbound connection: the discovery POSTs, the relay WebSocket, task polling, and config refresh.

kubectl -n nudgebee-agent create configmap nudgebee-private-ca \
--from-file=ca.crt=/path/to/internal-ca.pem
runner:
extraVolumes:
- name: private-ca
configMap:
name: nudgebee-private-ca
extraVolumeMounts:
- name: private-ca
mountPath: /etc/nudgebee/ca
readOnly: true
additional_env_vars:
- name: SSL_CERT_DIR
value: /etc/ssl/certs:/etc/nudgebee/ca
# additional_env_vars replaces the chart's list instead of merging, so the
# three ClickHouse variables have to be repeated here.
- name: CLICKHOUSE_PORT
value: "8123"
- name: CLICKHOUSE_USER
value: default
- name: CLICKHOUSE_DB
value: default

Roll the runner (kubectl rollout restart deployment/nudgebee-agent-runner -n nudgebee-agent) and the x509 errors stop.

Notes:

  • Use SSL_CERT_DIR, and keep /etc/ssl/certs in the list. Go splits the value on : and reads every directory in it, so the system roots and your CA both load. SSL_CERT_FILE is the wrong knob: it takes a single path and replaces the default CA bundle rather than adding to it, which leaves the public roots dependent on whatever the base image happens to leave loose in /etc/ssl/certs.
  • Put the full chain in the PEM — the root plus any intermediates. A root-only file fails the same way if the server does not send its intermediates.
  • Use a Secret instead of a ConfigMap if your policy treats the CA as non-public; the volume block is the same with secret.secretName.
  • There is no option to skip certificate verification for the collector or relay. runner.es.sslVerify looks similar but only applies to Elasticsearch.
  • This covers the runner only. If the OpenTelemetry collector or the forwarder also ship to an internal endpoint over TLS, mount the CA into those pods through their own volume settings.

Permissions and access mode​

A default install can already act on workloads: delete and evict pods, exec into them, cordon nodes, restart rollouts, scale Deployments and ReplicaSets, patch HPAs, manage PrometheusRules, and read Secrets. Two values change that in either direction.

KeyTypeDefaultDescription
runner.enableWritePermissionsboolfalseAdds the cluster-shape permissions the default install leaves out: node delete, Service/Endpoint/ServiceAccount management, Secret update and delete, namespace create and delete, ResourceQuota and LimitRange writes, statefulsets/scale, workload creation, Ingress and NetworkPolicy writes, rollout lifecycle.
runner.readOnlyboolfalseCuts the ClusterRole down to get, list, watch. No Secrets access at all, no pods/exec, no eviction, no node patch. The few writes the agent needs to run come from a Role scoped to the release namespace.
runner.mutateEnabledbooltrueTurns the runner's mutating actions on or off inside the agent itself (delete_pod, cordon, rollout_restart, PrometheusRule CRUD, Alertmanager silences, Loki rules). With false they are never registered at startup, whatever RBAC allows.
runner.scannerAutoCopyPullSecretsbooltrueLets an image scan copy the scanned pod's imagePullSecrets into the release namespace, where the scan Job runs, so private images can be pulled. The copies are owned by that Job and go away with it. Also grants secret update, patch, and delete in the release namespace to clean them up. Set it to false and the agent never reads a registry credential — private images are then scannable only while a copy of the image is still on the node. readOnly forces it off.
runner.customClusterRoleRuleslist[]Extra rules appended to the runner ClusterRole.
runnerServiceAccount.imagePullSecretslist[]Pull secrets attached to the runner ServiceAccount.
automountServiceAccountTokenbooltrueMount the ServiceAccount token in agent pods.
CapabilityDefaultenableWritePermissionsreadOnly
Read cluster inventory and metricsyesyesyes
Scanner Jobs and script-runner in the release namespaceyesyesyes
Create and edit PrometheusRules from the UIyesyesrelease namespace only
Exec, terminal, profiling into a podyesyesrelease namespace only
Read Secretsyesyesno
Delete or evict a pod, cordon a node, restart a rolloutyesyesno
Scale a Deployment or ReplicaSet, apply a rightsizingyesyesno
Delete a nodenoyesno
Create a workload or namespacenoyesno
Write Services, Ingresses, NetworkPolicies, Secretsnoyesno
Scale a StatefulSetnoyesno

To switch modes on an existing install:

helm upgrade nudgebee-agent nudgebee-agent/nudgebee-agent \
-n nudgebee-agent --reuse-values \
--set runner.enableWritePermissions=true # or runner.readOnly=true

readOnly cannot be combined with enableWritePermissions. The install fails if you set both. It also turns scannerAutoCopyPullSecrets off — that path has to read Secrets in workload namespaces, which read-only mode does not allow.

Under readOnly the rightsizing recommendations still compute; you just cannot apply them from the UI. If your security review needs to see the exact permissions first, the whole read-only ClusterRole is in one file: runner-service-account-readonly.yaml.

If what you want is for the agent not to act, rather than for its ServiceAccount to lose the permission, mutateEnabled: false is the smaller change. The actions are never registered and the RBAC stays as it is.

Actions triggered from the UI​

runner:
nudgebee:
relay_signing_public_key: "<server SIGNING_PUBLIC_KEY>"

This is the relay's Ed25519 public key. The agent uses it to check that a request really came from the relay before running a workload mutation. Leave it empty and those requests are rejected with 401 no matter what RBAC allows. The install command generated by the UI fills it in for you; you only set it by hand when writing your own values file for a self-hosted server.


Metrics backend​

KeyTypeDefaultDescription
globalConfig.prometheus_urlstring""Query URL for Prometheus, Thanos Query, Mimir, VictoriaMetrics, Chronosphere, AMP.
globalConfig.prometheus_headersstring""Semicolon-separated Header: value pairs (static auth headers).
globalConfig.prometheus_additional_labelsobject{}Labels appended to every PromQL query, e.g. {k8s_cluster: aws-prod}.
runner.prometheus.auth.coralogixTokenstring""Coralogix token (sent as the token header).
runner.prometheus.auth.awsAccessKey / awsSecretAccessKey / awsRegion / awsServiceNamestring""AWS SigV4 for Amazon Managed Prometheus. serviceName defaults to aps.
runner.prometheus.auth.azureUseManagedId / azureClientId / azureClientSecret / azureTenantId / azureResourcestring""Azure AD for Azure Monitor managed Prometheus.

In-cluster Prometheus needs none of the auth values. Use them for managed backends that sign requests rather than accepting a static header. If more than one is filled in, AWS wins, then Coralogix, then Azure. Endpoint formats for each backend are in Prometheus Metrics Integrations.


Alerts​

These values only control the alert rules the chart ships. Getting alerts to the agent is a separate job that happens in your Alertmanager: see Alert Forwarding.

KeyTypeDefaultDescription
alertmanager.create_nb_default_rulesbooltrueRender NudgeBee's default PrometheusRule set.
alertmanager.extra_rule_exclusionslist[]Silences the default log-error and API-failure rules for workloads you expect to fail, such as demo or load-test apps. Each term is matched as a substring of /k8s/<namespace>/<pod>/<container>, so a namespace name excludes everything in it: ["demo", "nb-bench"].
alertmanager.rule_keep_firing_forstring""Keeps the flappy rules firing through short dips instead of resolving and re-firing, e.g. "10m". Set it only if every rule evaluator in the cluster understands keep_firing_for. Prometheus older than 2.42 rejects the entire rule file when it sees the field, which takes down all the rules in it.

Logs​

KeyTypeDefaultDescription
runner.loki.urlstring""Loki endpoint.
runner.loki.headersstring""Extra headers (e.g. X-Scope-OrgID: tenant).
runner.loki.username / passwordstring""Optional HTTP basic auth.
runner.es.enabledboolfalseElasticsearch is off unless you set both enabled: true and url, so a leftover url never quietly takes over from another logs provider.
runner.es.url / apiKeystring""Elasticsearch endpoint and API key.
runner.es.headersstring""Extra request headers, semicolon-separated Key: Value pairs. For OpenSearch-compatible services that authenticate on a custom header — Logz.io uses X-API-TOKEN.
runner.es.sslVerifyboolfalseVerify the ES TLS certificate (https URLs).
runner.signoz.urlstring""SigNoz endpoint.
runner.signoz.apiKey / user / passwordstring""apiKey takes precedence over user/password.

See Logging Integration.


Traces​

KeyTypeDefaultDescription
opentelemetry-collector.enabledbooltrueIn-cluster OTel collector writing to the bundled ClickHouse.
clickhouse.enabledbooltrueBundled ClickHouse for traces/logs storage.
clickhouse.persistence.sizestring50GiClickHouse PVC size.
clickhouse.auth.passwordstring""Empty = the subchart generates one on first install, stored in the <release>-clickhouse Secret under admin-password.
runner.clickhouse_enabledbooltrueRunner reads traces from ClickHouse.
runner.clickhouse_secretstring""Secret holding the ClickHouse password (key admin-password). Empty = the bundled <release>-clickhouse Secret.
runner.jaeger.queryUrl / tokenstring""In-cluster Jaeger query endpoint for jaeger_query_* actions.
runner.chronosphere.url / apiKeystring""Chronosphere trace queries.
runner.chronosphere.tracesEnabledbooltrueReport Chronosphere as the traces provider when url is set.
runner.chronosphere.tracesUrlstring""Explicit traces URL; empty falls back to prometheus_url when it points at chronosphere.io.
runner.pinot.url / authToken / username / passwordstring""Apache Pinot broker.
runner.grafana.url / username / password / extra_headersstring""Grafana endpoint the agent proxies UI requests to. extra_headers is semicolon-separated.

See Tracing Integration.


Cost (OpenCost)​

Off by default. Turn it on to feed cluster cost allocation into the Optimize surfaces; without it, the OpenCost probe on the Agent Health page reports the subsystem as not deployed.

KeyTypeDefaultDescription
opencost.enabledboolfalseDeploys the bundled OpenCost exporter.
opencost.opencost.prometheus.external.urlstring""Prometheus the exporter queries. Leave empty to reuse the cluster's own; set it when metrics live outside the cluster.
opencost.opencost.prometheus.external.enabledbooltrueUse an external Prometheus rather than the one OpenCost would bundle.
opencost.opencost.prometheus.serviceMonitor.enabledbooltrueScrape the exporter via a ServiceMonitor. Requires the Prometheus Operator CRDs.
opencost.opencost.ui.enabledboolfalseOpenCost's own web UI. NudgeBee reads the exporter directly and does not need it.

Runner sizing​

If the runner is getting OOMKilled, this is the section you want. Its memory is dominated by the informer cache, so it scales with the number of objects in the cluster, not with traffic.

The chart sets the runner's GOMEMLIMIT to 80% of runner.resources.limits.memory, so raising the memory limit raises it too. Raise the limit using the sizing guide below. If the pod still OOMs at a sensible limit, lower runner.goMemLimitRatio.

KeyTypeDefaultDescription
runner.resources.requests.cpustring250m
runner.resources.requests.memorystring1000Mi
runner.resources.limits.memorystring2000MiBudget roughly 1Gi per 50k watched objects. Under 100 nodes the default is fine; around 500 nodes use 4000Mi; around 1000 nodes use 6000Mi or more.
runner.goMemLimitRationumber0.8Fraction of the memory limit given to the Go heap as GOMEMLIMIT. The rest covers non-heap memory.
runner.goMemLimitstring""Explicit GOMEMLIMIT (for example 1600MiB). Overrides the ratio when set.
runner.probes.enabledbooltrueLiveness and readiness probes against /healthz on port 5000.
runner.scaling.snapshotBatchingbooltrueSends the full inventory snapshot in batches rather than one payload.
runner.scaling.batchSizeint1000Objects per snapshot batch.
runner.scaling.incrementalBatchSizeint100How many informer events are coalesced into one POST.
runner.scaling.emitTombstonesbooltrueReports deletions so the backend drops objects that no longer exist.
runner.pprofboolfalseExposes net/http/pprof on the runner. The endpoints are unauthenticated, so turn it on for a debugging session and off again.
runner.tolerations / nodeSelector / annotations / affinityStandard scheduling controls.
runner.extraVolumes / extraVolumeMountslist[]Extra volumes on the runner pod.
runner.additional_env_varslistCLICKHOUSE_PORT, CLICKHOUSE_USER, CLICKHOUSE_DBExtra environment variables on the runner. Helm replaces lists rather than merging them, so if you set this, re-state the three CLICKHOUSE_* entries from the chart.

Node agent (eBPF)​

KeyTypeDefaultDescription
nodeAgent.enabledbooltrueeBPF DaemonSet for network metrics, logs, and profiles.
nodeAgent.image.repositorystringghcr.io/nudgebee/node-agent
nodeAgent.image.tagstring0.1.11
nodeAgent.resources.requestsobject100m / 500Mi
nodeAgent.resources.limitsobject1 / 1Gi
nodeAgent.podmonitor.enabledbooltrueRender a PodMonitor so Prometheus scrapes the node agent.
nodeAgent.podmonitor.azuremanagedboolfalseEmits the azmonitoring.coreos.com PodMonitor that Azure Monitor managed Prometheus reads instead.
nodeAgent.podmonitor.additionalLabelsobject{}Extra labels on the PodMonitor, for example to match your Prometheus CR's podMonitorSelector.
nodeAgent.podmonitor.namespaceSelectorobject{}Namespaces Prometheus looks in for the node agent's pods. Empty means the PodMonitor's own namespace.
nodeAgent.priorityClassNamestring""
nodeAgent.envlistsee chartIncludes SENSITIVE_HEADERS, the header names the node agent strips from captured traffic.

Without the prometheus-operator there is no PodMonitor to create. Scrape the node agent with the job from kube-prometheus-stack-values.yaml instead. More detail in Node Agent Configuration.

Match your Prometheus CR's podMonitorSelector

The chart stamps the PodMonitor with the standard chart labels — app.kubernetes.io/name, app.kubernetes.io/instance, app.kubernetes.io/version, app.kubernetes.io/managed-by, helm.sh/chart, and component: node-agent — plus anything in prometheusStack.selectorLabels and nodeAgent.podmonitor.additionalLabels.

If your Prometheus CR's podMonitorSelector requires a label the PodMonitor doesn't carry — release: <your-prom-release> is the usual one — the operator ignores the PodMonitor silently: no scrape target is created and network metrics stay empty with nothing reporting an error. Add the label with prometheusStack.selectorLabels (which also covers the chart's ServiceMonitor and PrometheusRule) or nodeAgent.podmonitor.additionalLabels, or widen the selector on the Prometheus side. When run without -g true, the install script copies the labels from your Prometheus CR's ruleSelector into prometheusStack.selectorLabels; check that they also satisfy podMonitorSelector. The UI's install command passes -g true, so it doesn't set them.


Event watcher (kubewatch)​

KeyTypeDefaultDescription
kubewatch.image.repositorystringghcr.io/nudgebee/kubewatch
kubewatch.image.tagstring2.14.1-nb.2
kubewatch.config.namespacestring""Restrict watching to one namespace. Empty = all.
kubewatch.config.resource.*boolsee chartPer-resource watch toggles. secret and coreevent are off by default; replicationcontroller is unsupported.
kubewatch.resources.requestsobject10m / 512Mi

Platform-specific​

KeyTypeDefaultDescription
openshift.enabledboolfalseRender OpenShift SCCs.
openshift.createSccbooltrueBaseline SCC.
openshift.createPrivilegedSccboolfalsePrivileged SCC (node agent eBPF).
openshift.sccName / privilegedSccName / sccPriority / privilegedSccPrioritynullOverrides.
enablePrometheusStackbooltrueAsserts that the prometheus-operator CRDs (ServiceMonitor, PodMonitor, PrometheusRule) are registered, so those manifests still render during offline templating (Argo CD, Flux). Set false on a cluster with no operator.
enableServiceMonitorsbooltrueRender ServiceMonitors for agent components.
nameOverride / fullnameOverridestring""Resource naming.
globalConfig.custom_annotationsobject{}Annotations added to all agent pods.

Installing where there is no Prometheus operator​

Set enablePrometheusStack=false. The chart then renders its ServiceMonitor, PodMonitor and PrometheusRule objects (including the ClickHouse ones) only where the CRD is registered. The install script sets this for you when the operator's CRDs are missing.

--set enablePrometheusStack=false

Component names​

Names come from the release name, which is what you need when writing an Alertmanager receiver URL or tailing logs. For a release named nudgebee-agent:

ComponentKindName
RunnerDeployment / Servicenudgebee-agent-runner (Service port 80 → container 5000)
Event watcherDeploymentnudgebee-agent-forwarder
Node agentDaemonSetnudgebee-agent-node-agent (pod label app=nudgebee-node-agent)
ClickHouseStatefulSet / Servicenudgebee-agent-clickhouse-shard0 / nudgebee-agent-clickhouse
OTel collectorDeployment / Servicenudgebee-agent-opentelemetry-collector