nestybox / nestybox/sysbox

Installation fails on Digital Ocean Kubernetes (missing EnvironmentFile in kubelet.service)

Open
#932 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
3.9k
Forks
230
Avg merge
7h 48m
Merged PRs (30d)
3

Description

Sysbox installation fails on Digital Ocean Kubernetes because the install script's $KUBELET_CRIO_ARGS are not applied (and the user will see FailedCreatePodSandBox Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox runtime: no runtime for "sysbox-runc" is configured). This is happening because Digitial Ocean's (Debian Bookworm) nodes' kubelet.service doesn't include a EnvironmentFile directive, adding EnvironmentFile=-/etc/default/kubelet fixes the installation.

It looks like the install script searches for EnvironmentFile in kublet.service, it should add one if it doesn't find it.

On a side note, k8s troubleshooting doc might want to mention kubectl get node <node> -o jsonpath='{.status.nodeInfo.containerRuntimeVersion}' and the kublelet command line arguments to check for to verify the runtime is running, that would have helped me figure out this problem faster.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the install script's handling of EnvironmentFile and the kubelet.service configuration on Debian Bookworm nodes. Check /etc/default/kubelet and verify the resulting kubelet arguments with kubectl; done means installation applies the CRI-O arguments and pods can start with sysbox-runc.

Written by the indexing model from the issue text.

Assessment

Tech stack
debian, kubernetes, shell
Domain
devops, infrastructure
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.