Skip to content

Sysbox installation on Rancher managed cluster failed #380

@pwurbs

Description

@pwurbs

I tried to install Sysbox in a k8S cluster using the user guide.

  • It's a single node cluster, created and managed by Rancher 2.5.9, no special cluster properties.
  • Kubernetes v1.20.9
  • Host Ubuntu 20.04.2 LTS / Kernel 5.4.0-80-generic / Docker 20.10.7
  • Host got label sysbox-install: yes

So Sysbox requirements should be fulfilled.

RBAC and RuntimeClass have been successfully deployed.
But there are issues with the Daemonset sysbox-deploy-k8s, the Pod is continously crashing.
This is the log line before crashing:
Job for kubelet-config-helper.service failed because the control process exited with error code. See "systemctl status kubelet-config-helper.service" and "journalctl -xe" for details.

This is the result of "systemctl status kubelet-config-helper.service":

kubelet-config-helper.service - Kubelet config service
     Loaded: loaded (/lib/systemd/system/kubelet-config-helper.service; static; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2021-08-11 09:34:05 UTC; 1min 3s ago
    Process: 98727 ExecStart=/bin/sh -c /usr/local/bin/kubelet-config-helper.sh (code=exited, status=1/FAILURE)
   Main PID: 98727 (code=exited, status=1/FAILURE)
Aug 11 09:34:05 rancher02-testsysbox systemd[1]: Starting Kubelet config service...
Aug 11 09:34:05 rancher02-testsysbox sh[98756]: Usage: grep [OPTION]... PATTERNS [FILE]...
Aug 11 09:34:05 rancher02-testsysbox sh[98756]: Try 'grep --help' for more information.
Aug 11 09:34:05 rancher02-testsysbox sh[98755]: Unit kubelet.service could not be found.
Aug 11 09:34:05 rancher02-testsysbox sh[98728]: Soft-linking dockershim socket to CRI-O socket on the host ...
Aug 11 09:34:05 rancher02-testsysbox sh[98777]: cp: cannot stat '/etc/default/kubelet': No such file or directory
Aug 11 09:34:05 rancher02-testsysbox systemd[1]: kubelet-config-helper.service: Main process exited, code=exited, status=1/FAILURE
Aug 11 09:34:05 rancher02-testsysbox systemd[1]: kubelet-config-helper.service: Failed with result 'exit-code'.
Aug 11 09:34:05 rancher02-testsysbox systemd[1]: Failed to start Kubelet config service.

The cluster has been created in Rancher using the option "Create a new Kubernetes cluster", based on existing nodes. So the single node has been prepared and imported to create the new (downstream) cluster.
Attached, there is the cluster-config, exported from Rancher
cluster-config.txt

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions