Comments (5)
Thanks for the help @DanielKuzmenkoo !
from rke2-ansible.
Hello.
I did this in my air-gapped environment with ansible templates.
I made a variable called "cni_chioce" and gave it either canal or calico
if its canal, you can proceed with this playbook as canal is the default option.
if It's calico, you need to configure in /etc/rancher/rke2/config.yaml
cni:
- calico
disable:
- rke2-canal
- rke2-kube-proxy
you will also need to download the image of calico from here according to your version
https://github.com/rancher/rke2/releases
Hope it helps!
from rke2-ansible.
Thanks @DanielKuzmenkoo, I appreciate the message. I take it the Calico images need to be placed in the same location as the other images that the playbook put in place?
I also noticed that there are three different rke2_config
blocks in various places in the playbook. I assume all of them need to be updated? Thinking the server and agent blocks at a minimum are necessary.
from rke2-ansible.
@DanielKuzmenkoo, how did you adjust /var/lib/rancher/rke2/server/manifests/rke2-calico.yaml
? I believe this is the file that Rancher uses to install Calico.
Comparing an air-gapped installation to one that has access to the internet shows that this file doesn't exist after the air-gapped installation, suggesting that it is downloaded from somewhere. How did you switch your air gapped installation to use Calico?
from rke2-ansible.
Hello again.
I added a task that copies with the calico images that can be downloaded from the release page here
And I added Jinja template that will configure the rke2-config if I chose calico or canal and copy the relevant configuration.
I will post tomorrow the tasks that I have been working on, hope it will help
from rke2-ansible.
Related Issues (20)
- Multimaster rke2_servers support
- Hanging on task: `Extract the hostname-override parameter from the kubelet process` HOT 1
- `cni: "cilium"` not working HOT 2
- Add configuration to set specific RKE2 version HOT 2
- rke2 version check failing on bash pipe HOT 2
- Request for Clarification [setting proxy information] HOT 3
- CIS hardening does not support new generic cis profile
- Parameterize Temporary Directory used during Tarball Install
- Feature Request [RHEL/Rocky/CentOS 9] Support HOT 1
- Yum repo names incorrect for uninstall
- Turn this into a collection
- allow for manifests to be applied after the cluster is fully up
- Add tags to Ansible tasks
- Add registry role to ansible HOT 1
- manage yum repos by default HOT 1
- Add role to rotate certificates on a cluster
- Re-run ansible playbook after first run breaks HOT 1
- previous_install.yaml logic doesn't work with detecting if the rke2_agent and rke2_server service is present or not
- previous_install.yaml logic breaks when rke2 is installed with an RPM and then later switched to TAR HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rke2-ansible.