k8s0 icon indicating copy to clipboard operation
k8s0 copied to clipboard

kubelet can't start without "shared" volume on Travis

Open reachlin opened this issue 7 years ago • 6 comments

this is about more investigation on this issue

without the "shared" flag on this line, the calico can't start properly. the "shared" works fine on local box, but not on travis.

reachlin avatar Sep 08 '17 02:09 reachlin

In your docker service unit file you have to set shared MountFlags

[Service]
Type=notify
ExecStart=/usr/bin/docker daemon -H fd://
MountFlags=shared
LimitNOFILE=1048576

IIRC, --volume=/var/lib/kubelet:/var/lib/kubelet:rw,rslave also works. You can have a try.

dixudx avatar Sep 08 '17 02:09 dixudx

@dixudx ok, running travis now: https://travis-ci.org/reachlin/k8s0/builds/273147090

reachlin avatar Sep 08 '17 02:09 reachlin

well, no luck.

Try add drop-in for docker unitfile.

dixudx avatar Sep 08 '17 02:09 dixudx

@dixudx how? this is on Travis...

reachlin avatar Sep 08 '17 02:09 reachlin

so this is still sth. Travis has to fix for their docker image?

reachlin avatar Sep 08 '17 02:09 reachlin

@reachlin You're running kubelet through hyperkube. Please append --containerized after "hyperkube:v1.6.4", "kubelet"

dixudx avatar Sep 08 '17 02:09 dixudx