Add network-plugin option

This commit is contained in:
2023-03-17 15:57:48 +01:00
parent 0fc5dbb791
commit e5920b3ddf
7 changed files with 114 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
- name: Deploy calico operator
command: kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.24.3/manifests/tigera-operator.yaml
register: command
changed_when: "'created' in command.stdout"
run_once: true
- name: Deploy calico ressource template
ansible.builtin.template:
src: ./k3s/server/network-plugin/calico/custom-ressource.yml.jinja2
dest: /root/calico-ressource.yml
run_once: true
- name: Deploy calico ressource
command: kubectl apply -f /root/calico-ressource.yml
register: command
changed_when: "'created' in command.stdout"
run_once: true
- name: Deploy calico-helpers
import_tasks: ./roles/kubernetes/tasks/install/server/network-plugin/deploy_calico_helper.yml

View File

@@ -0,0 +1,6 @@
- name: Deploy service-file for routing-table to wireguard-translation
ansible.builtin.template:
src: ./k3s/server/network-plugin/calico/routingtabletowg.yml.jinja2
dest: /var/lib/rancher/k3s/server/manifests/routingtabletowg.yml
mode: u=rw,g=r,o=r
run_once: true