Comments (7)
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.
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.
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.
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.
But my error is csi.storageos.com not found, it does not says csi.storageos.com-reg not found
from cluster-operator.
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.
@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)
- [Kubernetes][KubeSpray] Error: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"storageos\": executable file not found in $PATH": unknown HOT 6
- [Kubernetes][KubeSpray] MountVolume.SetUp failed for volume "pvc-371a14b0-8426-4ce9-86f5-abe83e59743b" : exit status 5 HOT 10
- Expand PersistentVolumes in k8s HOT 1
- storageos operator missing pods/log permission
- Missing properties from CR
- Feature Request: use a storage class for data volume instead of host dir HOT 2
- Error on creation of PVC HOT 4
- Cluster operator UI broken on OpenShift 4.2 - "Invariant Violation" HOT 6
- error retrieving resource lock on k8s 1.17.0 HOT 1
- "node has no NodeID annotation" when attaching a volume HOT 9
- StorageOS 2 and OKD 4.4 volumes created after installation not visible in dashboard and not spread across nodes HOT 1
- pod with storageos disk recreates about 5 minutes. HOT 1
- [FEATURE] UI show volumes for all namespaces HOT 1
- Problem with AKS storage HOT 3
- When trying to deploy, gcr.io/google-containers/kube-scheduler:v1.18.8 is not found and install can';t complete HOT 5
- Node metrics in v2 HOT 1
- Node containers can't connect to ETCD HOT 7
- Operator projects using the removed APIs in k8s 1.22 requires changes. HOT 10
- storageos-csi-helper pod on CrashLoopBackOff
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cluster-operator.