kubeadm / on-prem
Install the StackRadar scanner on a self-managed cluster built with kubeadm, Kubespray or by hand: kubeconfig, egress, private registries, and security context.
Last updated
Self-managed clusters are where the in-cluster model earns its keep: there is no cloud provider API for an agentless scanner to read, so tools that scan from the cloud side cannot see an on-prem cluster at all. The StackRadar scanner runs inside the cluster and needs only the Kubernetes API and outbound HTTPS.
Prerequisites
- A conformant cluster (kubeadm, Kubespray, or equivalent) on a supported Kubernetes version.
- The admin kubeconfig, or a kubeconfig with rights to create a namespace and cluster-scoped RBAC for the scanner.
- Helm 3.8+ and kubectl.
- A free StackRadar account.
Point kubectl at your kubeadm and self-managed clusters cluster
bash# On a control-plane node: export KUBECONFIG=/etc/kubernetes/admin.conf kubectl get nodes # Or copy it to your workstation: scp root@<control-plane>:/etc/kubernetes/admin.conf ~/.kube/configInstall the scanner
Create a cluster in the StackRadar dashboard and copy its cluster ID and cluster-scoped API key (see API keys & cluster scoping):
bashexport STACKRADAR_API_KEY=<your-api-key> export STACKRADAR_CLUSTER_ID=<your-cluster-id>Then install the scanner chart (Helm 3.8+ for the OCI method). The command pins the current release,
0.7.1— published versions are immutable, so the install is reproducible.bashhelm install stackradar-scanner \ oci://ghcr.io/lockdep/charts/stackradar-scanner \ --version 0.7.1 \ --namespace stackradar --create-namespace \ --set stackradar.apiKey=$STACKRADAR_API_KEY \ --set stackradar.clusterId=$STACKRADAR_CLUSTER_IDVerify
bashkubectl get pods --namespace stackradarOnce the pod is
Running, the scanner sends a heartbeat and the cluster shows as connected in the dashboard. Expect the first findings within minutes. If the cluster never connects, see Troubleshooting.
On-prem notes
- Egress: the scanner needs HTTPS to api.stackradar.io and to whichever registries your images come from. Behind a corporate proxy, set proxy.httpsProxy (with the scheme) and, for a TLS-intercepting proxy, mount your CA bundle with caBundle.configMapName — both are chart values.
- Private registries (Harbor, Nexus, Artifactory, a plain registry:2): the scanner can reuse the imagePullSecrets on each pod once scanner.resolveImagePullSecrets is on and the Secret names are listed in scanner.imagePullSecretNames. If your nodes authenticate via containerd config instead, the pods carry no Secret and the scanner needs a dockerConfigSecret of its own.
- Pod Security Admission: the chart’s defaults satisfy the restricted profile, so a namespace labelled pod-security.kubernetes.io/enforce=restricted admits the scanner without changes.
- Storage: the scanner uses an emptyDir scratch volume for image layers while generating SBOMs. No PersistentVolume is needed; the SBOMs are uploaded and the scratch space is discarded.
Images from a private registry? The scanner pulls each image itself. Give it one read-only credential via dockerConfigSecret, or let it read the imagePullSecrets your pods declare by turning on scanner.resolveImagePullSecrets and naming those Secrets — it is off by default, so the chart never grants cluster-wide Secret access. Both are in authenticating to a private registry. No public egress at all? Same page: restricted-network installs.
What happens after install
The scanner reports the cluster's workload inventory first — namespaces, workloads, containers, plus the Helm releases and GitOps applications that deliver them — so the dashboard shows every discovered workload and its scan coverage right away. Its first pass covers the whole cluster, not just new deploys: the initial sync lists every pod already running, and each container image is queued for scanning immediately. The scanner generates a CycloneDX SBOM per image and uploads it for matching against 900K+ OSV.dev advisories, then keeps coverage current as pods start, restart, or change — no scan schedules to configure. See architecture & data flow for what runs where and exactly what data leaves the cluster.
Next steps
- Architecture & data flowHow the StackRadar scanner works: what runs in your cluster, exactly what data leaves it, how SBOMs are matched to vulnerabilities, and where data is stored.
- TroubleshootingFixes for common StackRadar scanner issues: 401/403 API errors, a cluster that never appears in the dashboard, Helm install failures, and missing SBOMs.