From f28d2bc030024a43bdd67637544caa6027175cfb Mon Sep 17 00:00:00 2001 From: Jan Novak Date: Sat, 20 Jul 2024 20:35:19 +0200 Subject: [PATCH] some changes ;-) --- README.md | 3 +-- todo.md | 8 ++++++++ vagrant/bootstrap_kmaster.sh | 2 +- vagrant/k8s/cilium-values.yaml | 5 ++++- vagrant/k8s/loadbalancer-ip-pools.yaml | 9 +++++++++ 5 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 todo.md create mode 100644 vagrant/k8s/loadbalancer-ip-pools.yaml diff --git a/README.md b/README.md index 24f1f0e..1cd6fef 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,5 @@ sudo apt-get install helm # cilium installation helm repo add cilium https://helm.cilium.io/ -helm install cilium cilium/cilium --version 1.15.5 \ - --namespace kube-system +helm install cilium cilium/cilium --version 1.15.5 --namespace kube-system --values cilium-values.yaml ``` \ No newline at end of file diff --git a/todo.md b/todo.md new file mode 100644 index 0000000..741a4ce --- /dev/null +++ b/todo.md @@ -0,0 +1,8 @@ +## kubernetes apps +- certManager +- cloudNativePg +- longhorn CSI + + +## other apps +- gitea diff --git a/vagrant/bootstrap_kmaster.sh b/vagrant/bootstrap_kmaster.sh index 23ff998..983405c 100644 --- a/vagrant/bootstrap_kmaster.sh +++ b/vagrant/bootstrap_kmaster.sh @@ -4,7 +4,7 @@ echo "[TASK 1] Pull required containers" kubeadm config images pull >/dev/null echo "[TASK 2] Initialize Kubernetes Cluster" -kubeadm init --apiserver-advertise-address=172.16.16.100 --pod-network-cidr=192.168.0.0/16 >> /root/kubeinit.log 2>/dev/null +kubeadm init --apiserver-advertise-address=192.168.0.21 --pod-network-cidr=10.96.0.0/16 >> /root/kubeinit.log 2>/dev/null echo "[TASK 3] Deploy Calico network" kubectl --kubeconfig=/etc/kubernetes/admin.conf create -f https://raw.githubusercontent.com/projectcalico/calico/v3.27.0/manifests/tigera-operator.yaml >/dev/null diff --git a/vagrant/k8s/cilium-values.yaml b/vagrant/k8s/cilium-values.yaml index 56ddeaf..e7cc26e 100644 --- a/vagrant/k8s/cilium-values.yaml +++ b/vagrant/k8s/cilium-values.yaml @@ -9,4 +9,7 @@ ipam: mode: cluster-pool operator: clusterPoolIPv4MaskSize: 24 - clusterPoolIPv4PodCIDRList: "10.96.0.0/16" \ No newline at end of file + clusterPoolIPv4PodCIDRList: "10.96.0.0/16" +l2announcements: + enabled: true + interface: eth1 \ No newline at end of file diff --git a/vagrant/k8s/loadbalancer-ip-pools.yaml b/vagrant/k8s/loadbalancer-ip-pools.yaml new file mode 100644 index 0000000..99eee2d --- /dev/null +++ b/vagrant/k8s/loadbalancer-ip-pools.yaml @@ -0,0 +1,9 @@ +apiVersion: "cilium.io/v2alpha1" +kind: CiliumLoadBalancerIPPool +metadata: + name: cilium-lb-ipam + namespace: kube-system +spec: + cidrs: + - start: "192.168.0.31" + - stop: "192.168.0.39" \ No newline at end of file