-
Notifications
You must be signed in to change notification settings - Fork 368
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
Cannot start k0s inside LXD container. #5152
Comments
Output of
|
Output of
Several times when I tried to install with option --enable-worker, Today I tried following:
It seems, it works:
And even able to install Prometheus stack and Grafana works. Not sure, what happened, why it works now. May be |
Btw., what do you think about making your own provisioning script (k0sctl, Ansible or Terraform provider) to install a k0s cluster in Docker containers? I think that installation of docker images is more predictable than trying to install your k0s on different Linux distribution. Something like a https://github.com/zengzhengrong/k0s-stack https://github.com/tldr-devops/k0s-in-docker When performance is not very important but needing a real multi-node k0s cluster then why not using many Docker containers on many different physical hosts to build a k0s cluster? |
I have been able to install k0s on lxd containers using the following
Unfortunately I don't have the actual profile YAML but this is the Go code that generates the profile and I hope you can infer the YAML out of this. request := api.ProfilesPost{
Name: fmt.Sprintf("profile-%s", in.id),
ProfilePut: api.ProfilePut{
Description: "test",
Config: map[string]string{
"raw.lxc": profileConfig,
"security.nesting": "true",
"security.privileged": "true",
"linux.kernel_modules": "br_netfilter,ip_tables,ip6_tables,netlink_diag,nf_nat,overlay",
},
Devices: map[string]map[string]string{
"kmsg": {
"path": "/dev/kmsg",
"source": "/dev/kmsg",
"type": "unix-char",
},
},
},
} Note
|
Hello,
I have some positive experience using your
k0s
inDocker
container on the host, but unfortunately still cannot succeed with runningk0s
inside LXD container.Here is output of the
lxc profile show k8s
command:The text was updated successfully, but these errors were encountered: