-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add deployment manifests for MicroK8s #34
Comments
Hello @sta4152, Thanks for doing the heavy lifting here to figure out what's going on :) I believe updating the deployment manifests for a particular installation of the driver (as you've done) is the correct way to handle when some Kubernetes distribution like Micro K8s uses a "non-standard" path to /var/lib/kubelet. What you might consider doing instead of updating the default manifests, is creating a new overlay with the required patches/modifications to deploy for Micro K8s. That way you can continue to pull changes to the project including updates to the default manifests without having to stash/reapply your changes. AFAIK all those hard-coded references to I did want to confirm you didn't need to do anything else to get the driver to work with Micro K8s? You mentioned a symlink, but I wasn't sure if that was actually required or if simply updating the manifests was sufficient. |
Hi, thanks for the response. For patching using For the sym-link: I did not create it myself manually, but this was created by the microk8s deployment using snap (on ubuntu 22.04 LTS, installing microk8s the |
Thanks for confirming. In that case the only other immediate thing that could be done to better support MicroK8s is to add default deployment manifests. However I'm hesitant to start down the path of adding custom manifests for different K8s distributions as that become challenging to test/maintain. So I'd prefer to hold off for now until we see more requests for MicroK8s and the driver. In the meantime we can use this issue to help people get started with MicroK8s and gauge interest. |
After installing the driver on a microk8s cluster, the example dyn-app does not start successfully. Due to
Installed by
Best guess: microk8s does not use
/var/lib/kubelet
as root dir but/var/snap/microk8s/common/var/lib/kubelet
, with sym-linking the common default to that dir. The sym-link does not work with the mounting used by the beegfs driver.Unfortunately I do not see any config option to specify a prefix/alternate location. But this is needed here AFAIS (similar to the
kubeletDirPath
in ceph - they suffer from the same without having specified this correctly).The following patching of sources seems to work for me - please correct me if I am wrong with that or if this could cause problems somewhere later!: from within the repo root dir (I used the 1.7 branch) replace the
/var/lib/kubelet
occurences in non-test yaml files with the micork8s specific path:I see the
/var/lib/kubelet
hard-coded also in the driver sourcecode. But I guess (and hope) that for that the sym-link does it's job, that the problem is just a matter of mounting host dirs (being and/or including sym-links) into the containers ... ?The text was updated successfully, but these errors were encountered: