Code Monkey home page Code Monkey logo

Comments (5)

TheFutonEng avatar TheFutonEng commented on August 17, 2024 1

Thanks for the help @DanielKuzmenkoo !

from rke2-ansible.

DanielKuzmenkoo avatar DanielKuzmenkoo commented on August 17, 2024

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.

TheFutonEng avatar TheFutonEng commented on August 17, 2024

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.

TheFutonEng avatar TheFutonEng commented on August 17, 2024

@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.

DanielKuzmenkoo avatar DanielKuzmenkoo commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.