Describe the bug
Node exporter pod underlying container fails to startup. This is the error reported by the deamon:
Error: failed to start container "node-exporter": Error response from daemon: path / is mounted on / but it is not a shared or slave mount
This error is related to #325 and it appears to be caused by this pull request. I've create this issue as suggested by @monotek in https://github.com/prometheus-community/helm-charts/issues/80#issuecomment-728922569 (it appears that the original reporter of this issue has not created a new issue).
Moreover, I've tried to change kube-prometheus-stack chart manually to revert the commit above and I am able to deploy the chart without any error.
I am using docker-desktop (v2.5.0.1) on Windows 10 1909 and I have enabled Kubernetes cluster from it.
I'm not sure if this error is caused by docker-desktop, in any case, if it does not happen in other type of clusters, I would suggest to make the mount rootfs mountPropagation configurable via the chart values (and maybe enable it by default if you think it should not be optional) to prevent this error.
Another (better) solution would be to mount / as shared, but I've not found a way to do it.
Version of Helm and Kubernetes:
Helm Version:
version.BuildInfo{Version:"v3.4.1", GitCommit:"c4e74854886b2efe3321e185578e6db9be0a6e29", GitTreeState:"clean", GoVersion:"go1.14.11"}
Kubernetes Version:
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.1", GitCommit:"7879fc12a63337efff607952a323df90cdc7a335", GitTreeState:"clean", BuildDate:"2020-04-08T17:38:50Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:41:49Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
Which chart: kube-prometheus-stack
Which version of the chart: 12.7.0
What happened: node-exporter pod fails to startup
What you expected to happen: node-exporter should not fail
How to reproduce it:
No additional change in values.yaml file to reproduce.
The helm command that you execute and failing/misfunctioning:
helm install prom-stack prometheus-community/kube-prometheus-stack --version v12.7.0 -n monitoring
I have the same issue, running a k3s v1.18 cluster on Linux (Alpine) if that helps rule anything out.
I have the this issue also on Docker Desktop for Mac 3.0.0
Same issue on Docker for Windows.
Client: Docker Engine - Community
Version: 20.10.0
Server: Docker Engine - Community
Engine:
Version: 20.10.0
API version: 1.41 (minimum version 1.12)
helm version
version.BuildInfo{Version:"v3.4.2", GitCommit:"23dd3af5e19a02d4f4baa5b2f242645a1a3af629", GitTreeState:"clean", GoVersion:"go1.14.13"}
kubectl.exe version
Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.0", GitCommit:"af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38", GitTreeState:"clean", BuildDate:"2020-12-08T17:59:43Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:41:49Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
Same issue in docker for windows ( Using Hyper-V backend ) with Kubernetes v1.19.3 and Helm v3.4.1.
The same issue with Docker Desktop for Mac v.3.
Same issue using Docker Desktop for windows 10 on WSL2
Facing the same issue using Docker Desktop for windows 10.
DockerEngine Version: 20.10.2
Helm version: v3.3.1
Kubernetes version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:58:59Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.8", GitCommit:"9f2892aab98fe339f3bd70e3c470144299398ace", GitTreeState:"clean", BuildDate:"2020-08-13T16:04:18Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}
+1
+1
Same issue on docker desktop for Mac. v 2.5.0.1
Kubernete version 1.19.3
Most helpful comment
I have the this issue also on Docker Desktop for Mac 3.0.0