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

[Question] Right way to deploy Calico in RKE #3290

Closed
HectorB-2020 opened this issue Jul 9, 2023 · 4 comments
Closed

[Question] Right way to deploy Calico in RKE #3290

HectorB-2020 opened this issue Jul 9, 2023 · 4 comments

Comments

@HectorB-2020
Copy link

RKE version: rke version v1.4.6
Docker version: 20.10.24
Operating system and kernel: CentOS 7.9, 3.10.0-1160.el7.x86_64
Type/provider of hosts: QEMU/KVM on kernel 5.10.152
Question:
I've been studying documentation and stuck at the point where Calico is to be properly configured.
Official Rancher documentation says that Calico has to be explicitly mentioned in cluster.yml. Such question is asked while running rke config.

network:
  plugin: calico

Surprisingly Tigera's point of view in their dedicated article "Rancher Kubernetes Engine (RKE)" is different, they say literally:
Configure your cluster with a Cluster Config File and specify no network plugin by setting plugin: none under network in your configuration file.
Then they suggest installing Calico separately with a manifest:

kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/tigera-operator.yaml

Hence I'm wondering if any of these approaches have certain advantages and drawbacks.

@HectorB-2020
Copy link
Author

Forgot to include a couple of issues found here. Who knows is this helps:

@manuelbuil
Copy link
Contributor

manuelbuil commented Jul 31, 2023

Hey @HectorB-2020 sorry for the late reply. Both options are fine and most of the code is the same, however:

  • We are only testing the former (using cluster.yml)
  • The manifests related to that option include rke variables which make the installation of calico less manual and thus less error-prone. For example, things such as cluster-cidr

Therefore, I'd always select that option. Unless you want to use Calico Enterprise, the paying version from Tigera. In that case, you should use their manifests (but be careful with some paramters such as cluster-cidr)

@HectorB-2020
Copy link
Author

Excellent, thanks very much!

@github-actions
Copy link
Contributor

This repository uses an automated workflow to automatically label issues which have not had any activity (commit/comment/label) for 60 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the workflow can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the workflow will automatically close the issue in 14 days. Thank you for your contributions.

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

No branches or pull requests

2 participants