Documentation menu

Akamai / Linode LKE

SBOM and vulnerability scanning on Linode Kubernetes Engine (LKE): decode the kubeconfig, pick a node plan, handle Docker Hub limits and node recycling.

Last updated

LKE is Akamai’s managed Kubernetes: a conformant control plane in front of Linode worker nodes with public addresses, so the scanner needs no egress configuration at all. LKE has no registry integration of its own, which makes the private-image story the generic one, and its nodes are replaced rather than patched, which is worth understanding before the first recycle happens mid-scan.

Prerequisites

  • An LKE cluster and either the Cloud Manager or linode-cli with access to it.
  • Helm 3.8+ and kubectl.
  • A free StackRadar account.
  1. Point kubectl at your Linode Kubernetes Engine (LKE) cluster

    bash
    # With linode-cli — the API returns the kubeconfig base64-encoded:
    linode-cli lke kubeconfig-view <cluster-id> --text --no-headers | base64 -d > ~/.kube/lke.yaml
    export KUBECONFIG=~/.kube/lke.yaml
    kubectl get nodes
    
    # Or from Cloud Manager → Kubernetes → your cluster → ⋮ → Download kubeconfig:
    export KUBECONFIG=~/Downloads/<cluster>-kubeconfig.yaml

    The base64 -d is not optional: the LKE API’s kubeconfig field is a base64 string, and kubeconfig-view prints that field as-is. Cloud Manager’s download gives you the decoded file.

    Reference: LKE API: get cluster kubeconfig.

  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.

Choosing an LKE node plan

LKE pools accept any Linode plan except the 1 GB Nanode, so the smallest worker is a 2 GB Shared CPU Linode. The scanner’s 512Mi memory request and 1Gi limit are a quarter to a half of such a node before the kubelet and system pods take their share, so a 2 GB pool should be the scanner’s alone or not host it at all; a 4 GB Shared plan or larger is where it coexists with your workloads. CPU is 50m requested without a limit, which suits a shared-CPU plan: syft bursts when a scan starts and idles otherwise. Ephemeral storage is requested at 1Gi and limited at 6Gi, bounding the 4Gi emptyDir scratch volume; the chart creates no PersistentVolumeClaim, so Linode Block Storage is not involved.

Reference: Manage nodes and node pools.

Private images without a provider registry

LKE clusters pull from Docker Hub, GHCR, Quay or a registry you host, authenticating with an ordinary docker-registry Secret referenced under imagePullSecrets. The scanner can read those Secrets once scanner.resolveImagePullSecrets is on and their names are listed in scanner.imagePullSecretNames; or give it one read-only credential through dockerConfigSecret. Docker Hub is the case to think about: its anonymous pull limit applies to the scanner’s pulls exactly as to the kubelet’s, and the scanner’s first sweep pulls every distinct image in the cluster once. A Docker Hub account in the scanner’s dockerConfigSecret lifts the limit for the scanner, and the same account in a pod pull Secret lifts it for the kubelet.

bash
kubectl create secret docker-registry stackradar-registry \
    --namespace stackradar \
    --docker-server=https://index.docker.io/v1/ \
    --docker-username=<docker-hub-user> \
    --docker-password=<read-only-access-token>

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

What is specific to Linode Kubernetes Engine (LKE)

Recycling deletes the Linode

Recycling a worker node — how LKE upgrades minor Kubernetes versions, and what Recycle All Nodes or Recycle Pool Nodes does — deletes the Linode and deploys a new one, one node at a time so only a single node is down. Any local storage on the old Linode (hostPath, emptyDir, local PersistentVolumes) is erased. The scanner keeps nothing it needs on the node: SBOMs are uploaded as each scan finishes and the scratch volume is an emptyDir, so a recycle mid-scan costs one restarted scan and no data.

Autoscaler drains, it does not top up

The LKE autoscaler adds nodes only when pods are unschedulable and, when it shrinks a pool, drains the departing nodes so their pods are rescheduled on the ones that remain. The scanner’s requests are small enough that it rarely causes a scale-up, but it can be the pod that gets moved; expect one restart in the pod’s history after a scale-down and nothing in the dashboard.

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