Closed jordy25519 closed 6 years ago
Resolved this by restarting kubelet service multiple times. Seems like synchronicity issues during the deployment process
To provide a bit of background detail / explanation, its normal for the kubelet to log about the lack of CNI config or CNI plugins during initial bootstrapping. The flannel
or calico
DaemonSet (depending on your choice) has a sidecar pod called install-cni
that is responsible for adding the correct version of the CNI plugins on each node (at /opt/cni/bin
which is mounted in the kubelet) and the CNI config in /etc/kubernetes/cni/net.d
.
Its actually handy these are decoupled because it means you can kubectl apply
to update your flannel or calico to some new version and get the official upstream CNI config and plugins they intend you use.
Bug
Environment
Platform: bare-metal
OS: container-linux
Terraform:
v0.10.7
Plugins: Provider plugin versions
provider.local: version = "~> 1.0"
provider.null: version = "~> 1.0"
provider.template: version = "~> 1.0"
provider.tls: version = "~> 1.0"
terraform-provider-matchbox v0.2.2
Ref: Git SHA (if applicable)*
ref=1bc25c103654a497bcc0c2486104426f09ea2456
Problem
Temporary Kubernetes control plane API fails to start
Log entries show issues relating to missing cni config
Desired Behavior
bootkube API server starts and cluster is provisioned
Steps to Reproduce
cluster.tf
terraform.tfvars
Run