Skip to content
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

Calico manifest & pod cidr #86

Closed
lvincens opened this issue Nov 16, 2020 · 3 comments
Closed

Calico manifest & pod cidr #86

lvincens opened this issue Nov 16, 2020 · 3 comments
Labels

Comments

@lvincens
Copy link

The default calico manifest in the role https://docs.projectcalico.org/v3.10/manifests/calico.yaml actually enforces the pod cidr to
192.168.0.0/16 which may cause issues when overriding the cidr with kubeadm.

kubernetes_pod_network:
  cni: 'calico'
  cidr: '10.10.0.0/16'

The official documentation actually talks about this topic: https://docs.projectcalico.org/getting-started/kubernetes/self-managed-onprem/onpremises

As a fix, the following manifest should be used:

https://docs.projectcalico.org/manifests/calico.yaml

As a workaround, it is possible to override the kubernetes_calico_manifest_file variable in your inventory:

kubernetes_calico_manifest_file: https://docs.projectcalico.org/manifests/calico.yaml

Best regards,

@stale
Copy link

stale bot commented Feb 14, 2021

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@stale stale bot added the stale label Feb 14, 2021
@stale
Copy link

stale bot commented Mar 16, 2021

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

@stale stale bot closed this as completed Mar 16, 2021
@rdxmb
Copy link
Contributor

rdxmb commented Nov 3, 2022

if you use https://github.com/geerlingguy/ansible-role-kubernetes/blob/master/defaults/main.yml#L28-L29 in your variables, this should be correct. Isn't it?

@lvincens

You cannot overwrite the ip calico is using with this role. However, you should set the ip calico wants to have when running kubeadm init :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants