-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Expected Behavior
Running kubectl apply -f https://docs.projectcalico.org/v3.8/manifests/calico.yaml
eventually results in a calico-node-X
pod in the Running
status.
Current Behavior
Running kubectl apply -f https://docs.projectcalico.org/v3.8/manifests/calico.yaml
results in calico-node-X
stuck forever in the Init:0/3
status.
Possible Solution
I got the following output from kubectl describe
:
$ kubectl -n kube-system describe pod calico-node-r76lz
(...)
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 2m32s default-scheduler Successfully assigned kube-system/calico-node-r76lz to node-01
Warning FailedMount 29s kubelet, node-01 Unable to mount volumes for pod "calico-node-r76lz_kube-system(fba1f97a-64ff-4f98-b4c3-dadcd011469e)": timeout expired waiting for volumes to attach or mount for pod "kube-system"/"calico-node-r76lz". l
ist of unmounted volumes=[flexvol-driver-host]. list of unattached volumes=[lib-modules var-run-calico var-lib-calico xtables-lock cni-bin-dir cni-net-dir host-local-net-dir policysync flexvol-driver-host calico-node-token-h5czw]
Warning FailedMount 25s (x9 over 2m32s) kubelet, node-01 MountVolume.SetUp failed for volume "flexvol-driver-host" : mkdir /usr/libexec/kubernetes: read-only file system
This makes me think that the installation manifest should maybe use a different path to install the FlexVolume driver?
(...)
- name: flexvol-driver-host
hostPath:
type: DirectoryOrCreate
path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/nodeagent~uds
(...)
Steps to Reproduce (for bugs)
- Spin up a machine running CoreOS stable.
- Run
kubeadm init --pod-network-cidr=192.168.0.0/16
. - Configure
kubectl
according to the instructions. - Run
kubectl apply -f https://docs.projectcalico.org/v3.8/manifests/calico.yaml
.
Context
I was trying to deploy Calico 3.8 in a brand new (bare-metal) Kubernetes 1.15.0 cluster bootstrapped by Kubeadm.
I am not entirely sure, but this may be related to #2699 somehow, even though Calico 3.7 installs without any issues.
Your Environment
- Calico version: 3.8
- Orchestrator version (e.g. kubernetes, mesos, rkt): Kubernetes 1.15.0.
- Operating System and version:
Container Linux by CoreOS stable (2135.5.0)
- Link to your project (optional): N/A
surajssd, r0bj and pastukhov