Skip to content

Commit

Permalink
Merge pull request #490 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR - cicd updates for kube-proxy replacement
  • Loading branch information
UltraInstinct14 authored Jan 9, 2024
2 parents ad0c00a + 3293cfd commit fd48d68
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cicd/k3s-flannel-cluster-ipvs-compat/loxilb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ spec:
serviceAccountName: loxilb-lb
containers:
- name: loxilb-lb
image: "ghcr.io/loxilb-io/loxilb:debug"
image: "ghcr.io/loxilb-io/loxilb:latest"
imagePullPolicy: Always
#command: [ "sleep", "72000" ]
command: [ "/root/loxilb-io/loxilb/loxilb", "--egr-hooks", "--blacklist=cni.|veth.|flannel.|cali.|tunl.|vxlan[.]calico", "--ipvs-compat", "--k8s-api=cluster" ]
Expand Down
2 changes: 1 addition & 1 deletion cicd/k3s-flannel-cluster-ipvs-compat/master.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export MASTER_IP=$(ip a |grep global | grep -v '10.0.2.15' | grep '192.168.80' | awk '{print $2}' | cut -f1 -d '/')

curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable traefik --disable servicelb --disable-cloud-controller --kube-proxy-arg proxy-mode=ipvs \
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable traefik --disable servicelb --disable-cloud-controller --kube-proxy-arg proxy-mode=ipvs --flannel-iface=eth1 \
--node-ip=${MASTER_IP} --node-external-ip=${MASTER_IP} \
--bind-address=${MASTER_IP}" sh -

Expand Down
2 changes: 1 addition & 1 deletion cicd/k3s-flannel-cluster-ipvs-compat/worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export NODE_TOKEN=$(cat /vagrant/node-token)

sudo mkdir -p /etc/rancher/k3s
sudo cp -f /vagrant/k3s.yaml /etc/rancher/k3s/k3s.yaml
curl -sfL https://get.k3s.io | K3S_URL="https://${MASTER_ADDR}:6443" K3S_TOKEN="${NODE_TOKEN}" INSTALL_K3S_EXEC="--node-ip=${WORKER_ADDR} --node-external-ip=${WORKER_ADDR} --kube-proxy-arg proxy-mode=ipvs" sh -
curl -sfL https://get.k3s.io | K3S_URL="https://${MASTER_ADDR}:6443" K3S_TOKEN="${NODE_TOKEN}" INSTALL_K3S_EXEC="--node-ip=${WORKER_ADDR} --node-external-ip=${WORKER_ADDR} --kube-proxy-arg proxy-mode=ipvs --flannel-iface=eth1" sh -
#sudo kubectl apply -f /vagrant/nginx.yml
#sudo kubectl apply -f /vagrant/udp.yml
sudo kubectl apply -f /vagrant/iperf-service.yml
Expand Down
2 changes: 1 addition & 1 deletion loxilb-ebpf

0 comments on commit fd48d68

Please sign in to comment.