Installation fails on Digital Ocean Kubernetes (missing EnvironmentFile in kubelet.service)
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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