Skip to content

Commit

Permalink
Add build/clean scripts for kubeadm
Browse files Browse the repository at this point in the history
  • Loading branch information
stano45 committed Sep 5, 2024
1 parent 17ed8f4 commit beaf328
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/container_migration_in_kubernetes/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

sudo sysctl -w net.ipv4.ip_forward=1
sudo kubeadm init --pod-network-cidr=10.244.0.0/16 --cri-socket=unix:///var/run/crio/crio.sock

mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

kubectl taint nodes --all node-role.kubernetes.io/master-
kubectl taint nodes --all node-role.kubernetes.io/control-plane-

kubectl apply -f manifests/bmv2-daemonset.yaml
kubectl apply -f manifests/http-server-deployment.yaml
kubectl apply -f manifests/http-client-deployment.yaml

kubectl get pods --all-namespaces
4 changes: 4 additions & 0 deletions examples/container_migration_in_kubernetes/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sudo kubeadm reset -f --cri-socket=unix:///var/run/crio/crio.sock
sudo rm -f /var/log/bmv2-cni.log


0 comments on commit beaf328

Please sign in to comment.