From 58c2972dbe95f2ba95b04dc56e2d43f300847e31 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 4 Jun 2021 14:26:03 +0200 Subject: [PATCH 1/4] ++sleep pod --- generic/busybox-sleep.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 generic/busybox-sleep.yaml diff --git a/generic/busybox-sleep.yaml b/generic/busybox-sleep.yaml new file mode 100644 index 0000000..a1bd7cf --- /dev/null +++ b/generic/busybox-sleep.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Pod +metadata: + name: busybox-sleep +spec: + containers: + - name: busybox + image: busybox + args: + - sleep + - "1000000" From 61ce1ef505c5cb06726a162a61c3547526c86e9e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 4 Jun 2021 14:35:59 +0200 Subject: [PATCH 2/4] Add hostpath test pod --- generic/busybox-sleep.yaml | 3 +++ generic/hostpath-test.yaml | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 generic/hostpath-test.yaml diff --git a/generic/busybox-sleep.yaml b/generic/busybox-sleep.yaml index a1bd7cf..d7cb8ee 100644 --- a/generic/busybox-sleep.yaml +++ b/generic/busybox-sleep.yaml @@ -9,3 +9,6 @@ spec: args: - sleep - "1000000" + env: + - name: NICOTEST + value: "correct environment" diff --git a/generic/hostpath-test.yaml b/generic/hostpath-test.yaml new file mode 100644 index 0000000..a51c96a --- /dev/null +++ b/generic/hostpath-test.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Pod +metadata: + name: busybox-sleep +spec: + containers: + - name: busybox + image: busybox + args: + - sleep + - "1000000" + env: + - name: NICOTEST + value: "correct environment" + volumes: + - name: hostpathtest + hostPath: + path: /home From 5e35f849ed0fbccd9c85421c1096697cbeff4fec Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 4 Jun 2021 18:59:17 +0200 Subject: [PATCH 3/4] Add 2nd calico bgp peer configuration --- v3-calico/README.md | 16 ++++++++++++++++ v3-calico/bgp-place7-v2.yaml | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 v3-calico/bgp-place7-v2.yaml diff --git a/v3-calico/README.md b/v3-calico/README.md index a51d865..a2eafde 100644 --- a/v3-calico/README.md +++ b/v3-calico/README.md @@ -137,3 +137,19 @@ anytime before you plan to schedule containers on them, after the **kubeadm join** request. **THIS is fixed if we use a kubeadm config file specifying the cgroupdriver**. + +## Calico notes + +Requires + +``` +mount --make-shared /sys +``` + +## Kubevirt nodes + +Requires + +``` +mount --make-shared / +``` diff --git a/v3-calico/bgp-place7-v2.yaml b/v3-calico/bgp-place7-v2.yaml new file mode 100644 index 0000000..0697737 --- /dev/null +++ b/v3-calico/bgp-place7-v2.yaml @@ -0,0 +1,21 @@ +--- +apiVersion: projectcalico.org/v3 +kind: BGPConfiguration +metadata: + name: default +spec: + logSeverityScreen: Info + nodeToNodeMeshEnabled: true + asNumber: 65534 + serviceClusterIPs: + - cidr: 2a0a:e5c0:13:e2::/108 + serviceExternalIPs: + - cidr: 2a0a:e5c0:13:e2::/108 +--- +apiVersion: projectcalico.org/v3 +kind: BGPPeer +metadata: + name: red-place7 +spec: + peerIP: 2a0a:e5c0:13::42 + asNumber: 213081 From bf9f633ff1f19ea7020a93457fcf82cdeed48b63 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 4 Jun 2021 19:21:28 +0200 Subject: [PATCH 4/4] ++readme --- v3-calico/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/v3-calico/README.md b/v3-calico/README.md index a2eafde..1e2c936 100644 --- a/v3-calico/README.md +++ b/v3-calico/README.md @@ -153,3 +153,12 @@ Requires ``` mount --make-shared / ``` + +## Manual / post boot changes for place7-v2 cluster + +``` +mount --make-shared / +mount --make-shared /sys +sysctl net.ipv6.conf.eth0.accept_ra=2 + +```