Documentation menu

Civo

SBOM and vulnerability scanning on Civo Kubernetes: save the kubeconfig with the civo CLI, size the node for the scanner, and pull private images on k3s.

Last updated

Civo Kubernetes is k3s: the create command’s --cluster-type defaults to k3s, Traefik comes bundled, and the Talos Linux option is listed as being deprecated alongside Flannel. k3s is conformant, so the scanner runs on it unchanged. What matters on Civo is the node sizes, which start at 1 GB of RAM, and a free control plane that makes very small workers tempting.

Prerequisites

  • A Civo cluster and the civo CLI with an API key configured.
  • Helm 3.8+ and kubectl.
  • A free StackRadar account.
  1. Point kubectl at your Civo Kubernetes cluster

    bash
    civo kubernetes config <cluster-name> --save --merge --switch
    kubectl get nodes

    --save writes to ~/.kube/config and, without --merge, overwrites whatever is there; --switch makes the new cluster the current context; --local-path (-p) writes somewhere else. civo kubernetes config <cluster-name> with no flags prints the kubeconfig to the terminal.

    Reference: civo CLI README.

  2. Install the scanner

    Create a cluster in the StackRadar dashboard and copy its cluster ID and cluster-scoped API key (see API keys & cluster scoping):

    bash
    export 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.

    bash
    helm 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_ID
  3. Verify

    bash
    kubectl get pods --namespace stackradar

    Once 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.

Which Civo node size fits the scanner

Civo’s Standard Kubernetes nodes are Extra Small (1 GB RAM, 1 core, 30 GB NVMe), Small (2 GB, 1 core, 40 GB), Medium (4 GB, 2 cores, 50 GB) and Large (8 GB, 4 cores, 60 GB); civo kubernetes size prints the current slugs. The scanner requests 512Mi of memory and is limited at 1Gi, so an Extra Small node cannot host it beside k3s’s own components, and a Small node runs little else while a scan is in progress. Medium is the practical minimum for a node that carries the scanner and your workloads. CPU is 50m requested with no limit. Disk needs more thought than on larger clouds: the chart requests 1Gi of ephemeral storage, limits it at 6Gi and caps the image scratch emptyDir at 4Gi, which on a 30 or 40 GB NVMe shared with every image k3s has pulled is a real share. Set watcher.scratchSizeLimit to 2Gi on Extra Small and Small nodes if the node reports DiskPressure. No Civo Volume is created; the chart has no PersistentVolumeClaim.

Reference: Civo pricing (node sizes).

Private images on a Civo cluster

Civo has no managed container registry, so images come from Docker Hub, GHCR or a registry you run. The k3s way of configuring one — /etc/rancher/k3s/registries.yaml on each node — is not available to you on Civo, where the nodes are managed, and it would not help the scanner anyway: that file is the kubelet’s, and the scanner pulls each image itself. Give the scanner one read-only credential through dockerConfigSecret, or let it read the pull Secrets your pods already reference by setting scanner.resolveImagePullSecrets to true and listing the Secret names in scanner.imagePullSecretNames.

bash
helm upgrade stackradar-scanner oci://ghcr.io/lockdep/charts/stackradar-scanner \
    --namespace stackradar --reuse-values --version <installed-version> \
    --set-string scanner.resolveImagePullSecrets=true \
    --set 'scanner.imagePullSecretNames={<your-pull-secret>}'

Both routes, and what each registry wants for the credential, are in authenticating to a private registry.

What is specific to Civo Kubernetes

It is k3s, with the CNI you chose

k3s bundles Traefik, which the scanner neither uses nor conflicts with. The CNI matters more: the chart installs a NetworkPolicy by default that limits the scanner to DNS, the Kubernetes API and TCP 443, and only a CNI that enforces NetworkPolicy makes it real. Civo offers the CNI as an advanced option at creation, with Flannel being deprecated; if you kept Flannel, the policy object is inert and the scanner is constrained by nothing but Civo’s firewall.

Talos-type clusters

Civo still lists Talos Linux as a cluster type, marked as being deprecated. If you run one, Talos enforces the restricted Pod Security profile on every namespace except kube-system, and the chart’s defaults — non-root, read-only root filesystem, dropped capabilities, RuntimeDefault seccomp — are admitted without an exemption. Plan the move to a k3s cluster separately; the scanner is one helm install on either.

Not in the marketplace

Civo’s marketplace can install Helm charts at cluster creation, but the StackRadar chart is not listed there. Install it with Helm as above; the OCI reference and pinned version work the same on Civo as anywhere.

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