k0sctl icon indicating copy to clipboard operation
k0sctl copied to clipboard

CoreOS support

Open kaplan-michael opened this issue 3 years ago • 5 comments

Support for coreOS distro family.

Closes: #107

kaplan-michael avatar Jan 30 '22 02:01 kaplan-michael

Too bad there's no coreos image for footloose so we could add it to the test matrix. I assume you've tried this build with an actual coreos installation? :)

kke avatar Jan 31 '22 09:01 kke

I assume it will need some directory tweaks to avoid writing to /usr?

kke avatar Jan 31 '22 10:01 kke

I'm running my cluster on coreos for a while. kubelet has to have writable path, so example config it would be:

calico:
  flexVolumeDriverPath: /var/libexec/k0s/kubelet-plugins/volume/exec/nodeagent~uds
controllerManager:
  extraArgs:
    flex-volume-plugin-dir: /var/libexec/k0s/kubelet-plugins/volume/exec
workerProfiles:
  - name: coreos
    values:
      volumePluginDir: /var/libexec/k0s/kubelet-plugins/volume/exec

kaplan-michael avatar Jan 31 '22 12:01 kaplan-michael

Maybe to add:

When you create a profile, you also need to add the following:

spec:
  hosts:
    - role: worker
      installFlags:
        - "--profile coreos"

till avatar Apr 21 '22 14:04 till

@kke A few month ago, I have added support for Flatcar Container Linux which is also part of the CoreOS-Family. To support the installation of K0S using K0SCTL, we added support for overwriting the actual binary path. If this is added to this PR (or to a new PR), can we get this merged? I think this should be straight-forward. :100:

Ref.: https://github.com/k0sproject/k0sctl/pull/221

bephinix avatar May 13 '22 12:05 bephinix

@bephinix I finally have more time for this, so I'll try to redo this PR, so we can merge it.

kaplan-michael avatar Aug 31 '22 19:08 kaplan-michael

@bephinix @kke I have used your reference and updated it to the spec so we can finally merge this. Please check it after me, as I haven't tested this yet(will try doing that tomorrow).

Thanks!

kaplan-michael avatar Aug 31 '22 20:08 kaplan-michael

forgot to import errors there(should be fixed now)

kaplan-michael avatar Sep 07 '22 15:09 kaplan-michael

Looks fine to me, I assume you've used it succesfully?

kke avatar Sep 09 '22 06:09 kke

Looks fine to me, I assume you've used it succesfully?

Yes, I have successfully deployed a simple cluster with it.

kaplan-michael avatar Sep 09 '22 09:09 kaplan-michael