Skip to content

Alpine support / help #182

@TobiasS1402

Description

@TobiasS1402

Summary

Are you planning on implementing Alpine Linux support, or can you help me hack the repository to make it work with OpenRC instead of systemd?

Issue Type

  • Feature Request

Additional Information

My current install fails with not being able to start the service, when running the curl -sfL https://get.k3s.io | sh - script from k3s.io it does check if systemd is there, or else it will use OpenRC to create the services and stuff.

Failing:

TASK [xanmanning.k3s : Check that the initial control plane server is available to accept connections] ***************************************************************************************
fatal: [gaia]: FAILED! => {"changed": false, "elapsed": 300, "msg": "Timeout when waiting for 127.0.0.1:6443"}

TASK [xanmanning.k3s : Ensure cluster token is captured from gaia] ***************************************************************************************************************************
fatal: [atlas -> gaia]: FAILED! => {"changed": false, "msg": "file not found: /var/lib/rancher/k3s/server/token"}
fatal: [hecate -> gaia]: FAILED! => {"changed": false, "msg": "file not found: /var/lib/rancher/k3s/server/token"}
fatal: [helios -> gaia]: FAILED! => {"changed": false, "msg": "file not found: /var/lib/rancher/k3s/server/token"}

Default k3s install:

helios:~$ curl -sfL https://get.k3s.io | sudo sh -
[INFO]  Finding release for channel stable
[INFO]  Using v1.22.7+k3s1 as release
[INFO]  Downloading hash https://github.com/k3s-io/k3s/releases/download/v1.22.7+k3s1/sha256sum-amd64.txt
[INFO]  Skipping binary downloaded, installed k3s matches hash
[INFO]  Skipping installation of SELinux RPM
[INFO]  Skipping /usr/local/bin/kubectl symlink to k3s, already exists
[INFO]  Skipping /usr/local/bin/crictl symlink to k3s, already exists
[INFO]  Skipping /usr/local/bin/ctr symlink to k3s, already exists
[INFO]  Creating killall script /usr/local/bin/k3s-killall.sh
[INFO]  Creating uninstall script /usr/local/bin/k3s-uninstall.sh
[INFO]  env: Creating environment file /etc/rancher/k3s/k3s.env
[INFO]  openrc: Creating service file /etc/init.d/k3s
[INFO]  openrc: Enabling k3s service for default runlevel
[INFO]  openrc: Starting k3s
 * Caching service dependencies ...                                                                                                                                                     [ ok ]
 * Mounting cgroup filesystem ...                                                                                                                                                       [ ok ]
 * Starting k3s ...

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions