-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems to add a new node using calico #7519
Comments
what is your calico_datastore? |
The file I would advise you to check and share the following:
The ansible error you are seeing comes from the malformed |
@liupeng0518 the datastore is etcd. @cristicalin Thank you. I will look at the template and will post it here. |
@cristicalin the problem is that the template is created on install.yml that is executed after the pre.yml. In my tests, the first file always was created with the wrong template. |
Closing as per #7519 (comment) |
@jbaojunior the Potentially this may be caused by the fact that the kubelet starts on the node and starts |
Hi, I think there is still an issue on this pre.yml because we can have 3 situations : 1- We add a new node and the content of 10-calico.conflist hasn't the "plugins" section. The pre.yml contains :
Whitch means : In fact, calico_datastore should be set in group_vars/k8s-cluster/k8s-net-calico.yml so I'm not sure to understand why we do this here. In my opinion we can fix this in two way : 1- We simply remove the task below :
2- We modify the playbook to manage the 3 cases. If nobody manifests an opinion in the next few days, I will do a PR with the first solution. |
Environment:
Cloud provider or hardware configuration:
OS:
Linux 4.19.0-5-amd64 x86_64
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Version of Ansible : 2.9.19
Version of Python: 3.9.3
Kubespray version (commit): 4661e7d
Network plugin used: Calico
Full inventory with variables:
Command used to invoke ansible:
Output of ansible run:
Anything else do we need to know:
The file
10-calico.conflist
is created but with a different configuration. When the pre.yml is executed this check look byplugins.0
but this does not exist. I think that this should be changed to"'etcd_endpoints' in calico_cni_config"
.The first file created is:
The right file is:
The text was updated successfully, but these errors were encountered: