Giter Site home page Giter Site logo

Comments (7)

sorinpepelea avatar sorinpepelea commented on May 28, 2024 1

so I should change

"--root-dir=${SNAP_COMMON}/var/lib/kubelet"
whith
"--root-dir=/var/lib/kubelet"
in
/var/snap/microk8s/1910/args/kubelet ?

And after a microk8s restart , install storageos ?
Did it worked internally ?.
Also is there an option to not depend on etcd ? (cause microk8s use something else now for HA)

from cluster-operator.

Arau avatar Arau commented on May 28, 2024

Hi @sorinpepelea,

the microk8s uses an immutable containerised kubelet. It is worth trying the sharedDir param from the values.yaml.

# sharedDir should be set if running kubelet in a container.  This should
# be the path shared into to kubelet container, typically:
# "/var/lib/kubelet/plugins/kubernetes.io~storageos".  If not set, defaults
# will be used.
sharedDir:

I don't know for certain if with microk8s the path that should be used is sharedDir: /var/lib/kubelet/plugins/kubernetes.io~storageos. But it is worth a try.

StorageOS and the Kubelet communicate through the CSI socket. So both of them need to be able to see that socket. By adding that sharedDir, the StorageOS Operator applies a shared mounted filesystem in between StorageOS and the Kubelet so they can both "see" the socket.

Let us know if that is not enough to make it work and we will see if we can look into more specifics. Microk8s is not fully supported at the moment by StorageOS, but we would be open to look into it 😃

from cluster-operator.

sorinpepelea avatar sorinpepelea commented on May 28, 2024

I could only find "/var/lib/kubelet/plugins_registry/storageos" folder in my system .. I have microk8s installed with snap ..(official instructions) .. there is no '/var/lib/kubelet/plugins/kubernetes.io~storageos' location .

if i install storageos with --set sharedDir='/var/lib/kubelet/plugins/kubernetes.io~storageos' , nothing changes, error persists.
I also try to verify if mountPropagation is true .. and it is. Also i don't really know if setting --set csi.deploymentStrategy=deployment might have some inpact ...

from cluster-operator.

sorinpepelea avatar sorinpepelea commented on May 28, 2024

In /var/lib/kubelet/plugins_registry i have a file :
csi.storageos.com-reg.sock ,
and a folder : storageos , that folder contains a file : csi.sock ..
I believe one of this must be accesible by kubelet ..but i don't know witch one ..

from cluster-operator.

sorinpepelea avatar sorinpepelea commented on May 28, 2024

But my error is csi.storageos.com not found, it does not says csi.storageos.com-reg not found

from cluster-operator.

Arau avatar Arau commented on May 28, 2024

Hi @sorinpepelea,

I believe microk8s uses the kubelet root dir --root-dir=${SNAP_COMMON}/var/lib/kubelet. We tried internally and I think the solution could be to change that config to --root-dir=/var/lib/kubelet.

from cluster-operator.

martincolladodev avatar martincolladodev commented on May 28, 2024

@sorinpepelea Did you tried that options? For etcd I deployed a docker etcd cluster, but would be nice that requirement will be an optional opt-in.

from cluster-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.