Skip to main content

Installing the Agent on OpenShift

The install is the standard agent installation with OpenShift mode turned on. Read its Before You Begin section first; the requirements apply here too.

What OpenShift mode changes​

With openshift.enabled=true, the chart renders Security Context Constraints (SCCs) and adjusts the pod security contexts for OpenShift. The node agent (eBPF) is privileged and needs the privileged SCC.

ValueDefaultPurpose
openshift.enabledfalseRender OpenShift SCCs.
openshift.createScctrueCreate the baseline SCC.
openshift.createPrivilegedSccfalseCreate the privileged SCC the node agent needs.

The full list, including SCC name and priority overrides, is in the agent Helm values.

Install with Helm​

Log in as a cluster-admin (oc login), then follow Steps 1 and 2 of the agent installation and add the OpenShift values to the agent command:

helm upgrade --install nudgebee-agent nudgebee-agent/nudgebee-agent \
--namespace nudgebee-agent --create-namespace \
--set runner.nudgebee.auth_secret_key="<YOUR_AUTH_KEY>" \
--set globalConfig.prometheus_url="<YOUR_PROMETHEUS_URL>" \
--set openshift.enabled=true \
--set openshift.createPrivilegedScc=true

Install with the script​

Pass -o with any value to turn on OpenShift mode. See the install script options.

If you manage SCCs yourself​

The node agent DaemonSet uses the runner's ServiceAccount, so grant the privileged SCC to that account:

oc adm policy add-scc-to-user privileged -z nudgebee-agent-runner-service-account -n nudgebee-agent

The ServiceAccount is <release-name>-runner-service-account; the command above uses the default release name.

Without the node agent​

If you can't grant the privileged SCC, install without the node agent (-d on the script). The node agent is what provides the eBPF data; the runner and event watcher don't need it.

Troubleshooting​

Node-agent pods rejected at admission, or stuck without pods, are usually missing SCC or Pod Security settings. See Node agent configs.