This repository was archived by the owner on Sep 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 456
Why I use calico in kubernetes, but still kubelet try to look for flannel? #912
Copy link
Copy link
Open
Description
I use calico in my cluster , and everything seems ok. But when I create new pod here, kubelet try to look for flannel. It is wired.
NAME READY STATUS RESTARTS AGE
calico-kube-controllers-1748576524-h772q 1/1 Running 0 1h
calico-node-6rkb9 2/2 Running 14 1h
calico-node-c4rzm 2/2 Running 15 1h
calico-node-vpf0g 2/2 Running 16 1h936 reflector.go:323] k8s.io/kubernetes/pkg/kubelet/kubelet.go:382: watch of *v1.Service ended with: very short watc
1023 03:32:46.529178 19936 cni.go:257] Error adding network: open /run/flannel/subnet.env: no such file or directory
1023 03:32:46.529227 19936 cni.go:211] Error while adding to cni network: open /run/flannel/subnet.env: no such file or directory
1023 03:32:46.630566 19936 remote_runtime.go:86] RunPodSandbox from runtime service failed: rpc error: code = 2 desc = NetworkPlugin cni fa
1023 03:32:46.630846 19936 kuberuntime_sandbox.go:54] CreatePodSandbox for pod "busybox_default(45de94b8-b79f-11e7-b206-0050569f4fcf)" fail
1023 03:32:46.630896 19936 kuberuntime_manager.go:619] createPodSandbox for pod "busybox_default(45de94b8-b79f-11e7-b206-0050569f4fcf)" fai
1023 03:32:46.630989 19936 pod_workers.go:182] Error syncing pod 45de94b8-b79f-11e7-b206-0050569f4fcf ("busybox_default(45de94b8-b79f-11e7-
1023 03:32:46.817663 19936 docker_sandbox.go:263] NetworkPlugin cni failed on the status hook for pod "busybox_default": Unexpected command
with error: exit status 1
1023 03:32:46.856827 19936 docker_sandbox.go:263] NetworkPlugin cni failed on the status hook for pod "busybox_default": Unexpected command
with error: exit status 1
1023 03:32:46.892439 19936 docker_sandbox.go:263] NetworkPlugin cni failed on the status hook for pod "busybox_default": Unexpected command
with error: exit status 1Calico process is running.
IPv4 BGP status
+---------------+-------------------+-------+----------+-------------+
| PEER ADDRESS | PEER TYPE | STATE | SINCE | INFO |
+---------------+-------------------+-------+----------+-------------+
| 10.247.99.136 | node-to-node mesh | up | 02:38:46 | Established |
| 10.247.99.138 | node-to-node mesh | up | 02:39:47 | Established |
+---------------+-------------------+-------+----------+-------------+And my kubelet.service like this:
Environment=KUBELET_IMAGE_TAG=v1.6.1_coreos.0
Environment="RKT_RUN_ARGS=--insecure-options=all \
--volume cni-bin,kind=host,source=/opt/cni/bin \
--mount volume=cni-bin,target=/opt/cni/bin"
ExecStartPre=/usr/bin/mkdir -p /etc/kubernetes/manifests
ExecStartPre=/usr/bin/mkdir -p /var/log/containers
ExecStart=/usr/lib/coreos/kubelet-wrapper \
--api-servers=http://$hostip:4432 \
--register-node=true \
--container-runtime=docker \
--allow-privileged=true \
--pod-manifest-path=/etc/kubernetes/manifests \
--hostname-override=$hostip \
--cluster_dns=10.3.0.10 \
--cni-conf-dir=/etc/cni/net.d \
--network-plugin=cni \
--cluster_domain=cluster.local
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
EOFWhen I install calico, I use this link:
https://docs.projectcalico.org/v2.6/getting-started/kubernetes/installation/hosted/hosted
Did I miss something?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels