Skip to content

Calico 3.6-3.8 Pending forever on single-node Kubeadm #2699

@staticdev

Description

@staticdev

I am following the documentation on https://docs.projectcalico.org/v3.8/getting-started/kubernetes/ and pods are pending forever.

Expected Behavior

All pods running in watch kubectl get pods --all-namespaces.

Current Behavio

When I watch kubectl get pods --all-namespaces over 15 minutes, it is still pending:

NAMESPACE     NAME                                       READY   STATUS     RESTARTS   AGE
kube-system   calico-kube-controllers-59f54d6bbc-k8dhf   0/1     Pending    0          17m
kube-system   calico-node-r7v2n                          0/1     Init:0/3   0          17m
kube-system   coredns-5c98db65d4-5jrl2                   0/1     Pending    0          17m
kube-system   coredns-5c98db65d4-d2rc4                   0/1     Pending    0          17m
kube-system   etcd-cherokee                              1/1     Running    0          16m
kube-system   kube-apiserver-cherokee                    1/1     Running    0          16m
kube-system   kube-controller-manager-cherokee           1/1     Running    0          16m
kube-system   kube-proxy-hfp6c                           1/1     Running    0          17m
kube-system   kube-scheduler-cherokee                    1/1     Running    0          16m

Possible Solution

I don't know why, but version 3.5 just works:

 curl \
   https://docs.projectcalico.org/v3.5/getting-started/kubernetes/installation/hosted/kubernetes-datastore/calico-networking/1.7/calico.yaml \
   -O
   kubectl apply -f calico.yaml

I've tried 3.6, 3.7 and 3.8, with the same results.

Steps to Reproduce (for bugs)

  1. Exec:
sudo kubeadm init --pod-network-cidr=192.168.0.0/16
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
kubectl apply -f https://docs.projectcalico.org/v3.8/manifests/calico.yaml
watch kubectl get pods --all-namespaces
  1. Wait 15 minutes

Context

I can't create a cluster with newer versions of Calico.

Your Environment

  • Calico version 3.6-3.8
  • Orchestrator version (e.g. kubernetes, mesos, rkt): kubeadm/kubernetes 1.15.0
  • Operating System and version: Ubuntu 18.04.2 LTS
  • Link to your project (optional): -

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions