Skip to content

Commit

Permalink
Switch back to calico
Browse files Browse the repository at this point in the history
Closes #13
  • Loading branch information
edwardtheharris committed Jul 25, 2024
1 parent 3b4fda3 commit 16f3168
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ data:
}
net-conf.json: |
{
"Network": "10.244.0.0/16",
"Network": "10.0.0.0/8",
"EnableNFTables": false,
"Backend": {
"Type": "vxlan"
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions roles/calico/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
- name: Apply the flannel manifest
ansible.builtin.shell:
cmd: kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.28.0/manifests/tigera-operator.yaml
delegate_to: localhost
8 changes: 0 additions & 8 deletions roles/flannel/tasks/main.yml

This file was deleted.

7 changes: 7 additions & 0 deletions roles/init/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,10 @@
owner: root
- path: "/home/{{ kcp_nonroot }}/.kube/config"
owner: "{{ kcp_nonroot }}"
- name: Copy admin conf to local
ansible.builtin.shell:
cmd: "scp {{ kcp }}:.kube/config {{ item }}"
loop:
- "{{ cfg_dest }}"
- "{{ cfg_home }}"
delegate_to: localhost
8 changes: 8 additions & 0 deletions roles/reset/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@
ansible.builtin.service:
state: stopped
name: containerd
- name: Stop kubelet
ansible.builtin.service:
state: stopped
name: kubelet
- name: Start containerd
ansible.builtin.service:
state: started
name: containerd
- name: Start kubelet
ansible.builtin.service:
state: started
name: kubelet
4 changes: 2 additions & 2 deletions site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@
- role: kv
tags:
- kv
- role: flannel
- role: calico
tags:
- flannel
- calico

0 comments on commit 16f3168

Please sign in to comment.