-
Notifications
You must be signed in to change notification settings - Fork 776
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
Microk8s 1.19.0 never ready, not working. #1570
Comments
Hi @WereCatf In the logs of kubelet (
and
I assume you are on btrfs and kubelet cannot query the stats of the underling filesystem. I wonder what our options are here? Is moving to another file system an option or do we need to further digg into this? I am not familiar with btrfs but this is a possibly related issue: [1] |
@ktsakalozos Wait, are you...are you serious? Using Btrfs breaks Microk8s?? Jesus Christ, that's definitely something I'd classify as a major issue. |
Exactly the same problem. / uses btrfs and I get the same errors in the kubelet logs. Ubuntu 18.04 LTS based system. |
Hi @GavinB-hpe Could you try one of the two suggestions recommended in #1587 (comment) |
Thanks @ktsakalozos --feature-gates="LocalStorageCapacityIsolation=false" Fixed things for me. |
Do you think this is something it should be automated? Can we reliably detect the cases where this is needed? |
@ktsakalozos Reliably detecting where this workaround is specifically absolutely needed, I dunno, but detecting cases where it might be needed could be as simple as: Personally, I don't think automating such a workaround should be done at all and instead the issue should be fixed properly at the source, but I don't really have a grasp of where it happens or who is in charge of the code and if they even care. |
We could detect btrfs in [1] https://github.com/ubuntu/microk8s/blob/master/scripts/inspect.sh#L106 |
Setting: |
To answer my own question: k8s 1.19 will not work, even with the feature-gates flag. |
I tried feature-gates flag with microk8s 1.18/stable (v1.18.15), still not working. |
I have a similar problem. on microk8s 1.20.2 on ubuntu. |
This seems to have been fixed recently. I just installed 1.21.0 in a VM with a Btrfs-filesystem and Microk8s does seem to be working as it's supposed to. Not that I tested it in depth, but at least it now states the node is ready. Closing this as solved. |
just installed mirok8s on 20.04.1 LTS with btrfs. juju 2.9.10 16909 latest/stable canonical✓ classic I don't see any btrfs subvol created by micro8s: does that mean that btrfs is not used? by the way, how to see containers created by microk8s? docker ps won't show anything. Regards. |
The default is to not use the btrfs snapshotter so this is completely expected.
microk8s does not use docker as the container runtime but instead uses containerd. To see all running pods in k8s you can try doing:
|
thank you for your answers. how to know where are stored the containers ? |
In MicroK8s container data are kept under /var/snap/microk8s/common/var/lib/containerd and /var/snap/microk8s/common/run/ |
ok thank you. last question: how do you activate brtfs snapshotter? |
Short answer: better not. See containerd/containerd#4217 (comment) The btrfs snapshotter is currently considered broken. |
Installing microk8s with sudo snap install microk8s --classic appears to go fine, but microk8s status always reports as microk8s not running. microk8s kubectl get all --all-namespaces shows everything as not ready and pending.
Ubuntu 20.04.1 Desktop, network-interfaces are ens33, lo, virbr0 and virbr0-nic, so nothing particularly exciting there. The flannel - interface you'd get with an earlier microk8s - version is a no-show here.
Already tried the solution mentioned in #1554 but that doesn't work.
inspection-report-20200916_031614.tar.gz
The text was updated successfully, but these errors were encountered: