From ff0d769aa5732ba1b0eaa78c671cfed5843f85de Mon Sep 17 00:00:00 2001 From: Michael Balsillie Date: Sat, 14 Jan 2023 17:51:22 +1000 Subject: [PATCH] added calico ip reservations --- ansible/roles/k8s_network/defaults/main.yaml | 2 ++ .../k8s_network/files/calico/calico_ip_reservation.yaml | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 ansible/roles/k8s_network/files/calico/calico_ip_reservation.yaml diff --git a/ansible/roles/k8s_network/defaults/main.yaml b/ansible/roles/k8s_network/defaults/main.yaml index c47cb69..5df2525 100644 --- a/ansible/roles/k8s_network/defaults/main.yaml +++ b/ansible/roles/k8s_network/defaults/main.yaml @@ -8,6 +8,8 @@ k8s_network_packages: - python-jsonpatch k8s_v4_pod_cidr: 10.128.0.0/16 k8s_v6_pod_cidr: 2a01:4f8:13b:f202::00/64 +k8s_v4_reserved_cidr: 10.128.255.224/28 +k8s_v6_reserved_cidr: 2a01:4f8:13b:f202:ffff:ffff:ffff:fe00/120 k8s_v4_service_cidr: 10.96.0.0/16 k8s_v6_service_cidr: 2a01:4f8:13b:f203::00/116 k8s_v4_network_blocksize: 20 diff --git a/ansible/roles/k8s_network/files/calico/calico_ip_reservation.yaml b/ansible/roles/k8s_network/files/calico/calico_ip_reservation.yaml new file mode 100644 index 0000000..29e908e --- /dev/null +++ b/ansible/roles/k8s_network/files/calico/calico_ip_reservation.yaml @@ -0,0 +1,8 @@ +apiVersion: projectcalico.org/v3 +kind: IPReservation +metadata: + name: default-ipreservation +spec: + reservedCIDRs: + - 10.128.255.224/28 + - 2a01:4f8:13b:f202:ffff:ffff:ffff:ffe0/124 \ No newline at end of file