Documentation menu

Scaleway Kapsule

SBOM and vulnerability scanning on Scaleway Kapsule and Kosmos: kubeconfig with scw, system volume size, a Container Registry pull Secret, external nodes.

Last updated

Kapsule is Scaleway’s managed Kubernetes on Scaleway Instances; Kosmos is the same managed control plane with pools of machines from other providers attached. Both are conformant and run the scanner unchanged. For EU teams the pairing is tidy: a cluster in fr-par, nl-ams or pl-waw sends its SBOMs to StackRadar’s EU-hosted API, so the inventory never leaves the EU. What is Scaleway-specific is the registry credential shape, the system-volume sizing and the limits on external nodes.

Prerequisites

  • A Kapsule or Kosmos cluster and the scw CLI configured with a project.
  • Helm 3.8+ and kubectl.
  • A free StackRadar account.
  1. Point kubectl at your Scaleway Kapsule cluster

    bash
    scw k8s kubeconfig install <cluster-id> region=fr-par
    kubectl get nodes

    The command merges the cluster into the file named by KUBECONFIG, or ~/.kube/config, and switches the current context to it; add keep-current-context=true to leave your context alone. region defaults to fr-par or your CLI profile’s region, so pass nl-ams or pl-waw for a cluster there. If IAM is not set up on the account yet, the console can generate a kubeconfig with the required permission sets instead.

    Reference: scw k8s kubeconfig install.

  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.

System volume and node size on Kapsule

Scaleway recommends a system volume of at least 20 GB per node and suggests 100 GB where many images and logs accumulate. The scanner’s 1Gi ephemeral-storage request, 6Gi limit and 4Gi scratch emptyDir fit a 20 GB volume but sit next to every image containerd has already pulled; on 20 GB nodes set watcher.scratchSizeLimit to 2Gi, on 100 GB leave the default. Memory is 512Mi requested and 1Gi limited, CPU 50m requested with no limit, which any Kapsule Instance type above the smallest development sizes absorbs without displacing your pods. Scaleway sets its Block Storage class as the cluster default, but the chart requests no PersistentVolume, so it never comes into play.

Reference: Kubernetes FAQ (storage recommendations).

Scaleway Container Registry

Scaleway’s documented pull Secret uses the registry endpoint (rg.fr-par.scw.cloud for Paris), your Container Registry namespace name as the username and an IAM API secret key as the password; nologin, the username you use for docker login, is not what goes in the Secret. Your pods reference that Secret under imagePullSecrets in their own Kubernetes namespace, and the scanner can read it once scanner.resolveImagePullSecrets is on and its name is in scanner.imagePullSecretNames. For a credential of the scanner’s own, create the same kind of Secret in the stackradar namespace with a secret key from an IAM application that holds only a read-only Container Registry permission set, and pass its name as dockerConfigSecret.

bash
kubectl create secret docker-registry stackradar-registry \
    --namespace stackradar \
    --docker-server=rg.fr-par.scw.cloud \
    --docker-username=<registry-namespace> \
    --docker-password=$SCW_SECRET_KEY

Reference: Deploy an image from Scaleway Container Registry. Both routes, and what each registry wants for the credential, are in authenticating to a private registry.

What is specific to Scaleway Kapsule

Kosmos external nodes

In a Kosmos cluster the multi-cloud pools are machines Scaleway cannot create, delete or reboot, and autoscaling and autohealing are unavailable on them. The scanner is one Deployment with one replica and schedules onto whichever node has room, external or Scaleway-hosted; if an external node disappears, Kubernetes reschedules the pod and the emptyDir scratch starts empty. Scaleway does not move workloads between a Kapsule and a Kosmos cluster, so each is a separate cluster in StackRadar as well, with its own cluster-scoped API key.

Nodes are replaced, not repaired

Kapsule nodes can be deleted, replaced or restarted by autohealing, autoscaling or an upgrade. None of that touches the scanner’s data: SBOMs are uploaded as each scan completes, and the scanner skips images whose digest is already indexed, so a replaced node means at most one scan restarting on the new one.

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