Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subcommands dedicated to Linux run on Ms Windows #5439

Open
4 tasks done
lpiot opened this issue Jan 15, 2025 · 1 comment
Open
4 tasks done

Subcommands dedicated to Linux run on Ms Windows #5439

lpiot opened this issue Jan 15, 2025 · 1 comment
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@lpiot
Copy link

lpiot commented Jan 15, 2025

Before creating an issue, make sure you've checked the following:

  • You are running the latest released version of k0s
  • Make sure you've searched for existing issues, both open and closed
  • Make sure you've searched for PRs too, a fix might've been merged already
  • You're looking at docs for the released version, "main" branch docs are usually ahead of released versions.

Platform

Ms Windows 2022 Datacenter

Version

1.31.3+k0s.0

Sysinfo

`k0s sysinfo`
➡️ Please replace this text with the output of `k0s sysinfo`. ⬅️

What happened?

This issue is related to #5381.
I'm trying to create a specific single node k0s cluster on Ms Windows 2022 server (for specific R&D purpose).
As far as the documentation goes, k0s is supported on Windows server 2019 (cf.https://docs.k0sproject.io/stable/system-requirements/#host-operating-system).
I suppose this is just for worker and not for controller but not sure.

Steps to reproduce

  1. Download https://github.com/k0sproject/k0s/releases/download/v1.31.3%2Bk0s.0/k0s-v1.31.3+k0s.0-amd64.exe onto your Ms Windows machine
  2. Open a command line as an Administrator
    3.Type "…/k0s-v1.31.3+k0s.0-amd64.exe install controller --single"
  3. See the error message

Expected behavior

An error should indicate that this subcommand is not available for Windows. (And even in the help message).

Actual behavior

When typing the subcommand, it run well and return the following error message:

return errors.New("this command must be run as root")

Screenshots and logs

No response

Additional context

No response

@lpiot lpiot added the bug Something isn't working label Jan 15, 2025
@twz123
Copy link
Member

twz123 commented Jan 16, 2025

I suppose this is just for worker and not for controller but not sure.

Exactly. Upstream Kubernetes doesn't support running the control plane components on Windows: only worker components are supported. So you need to connect your Windows nodes to a Linux control plane.

@twz123 twz123 added documentation Improvements or additions to documentation question Further information is requested and removed bug Something isn't working labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants