Giter Site home page Giter Site logo

K3s installation steps about kube-vip HOT 5 CLOSED

kube-vip avatar kube-vip commented on June 4, 2024
K3s installation steps

from kube-vip.

Comments (5)

thebsdbox avatar thebsdbox commented on June 4, 2024 1

This is now added to the documentation.

from kube-vip.

alexellis avatar alexellis commented on June 4, 2024

Docker isn't usually installed to k3s hosts, that's part of the beauty and speed of the solution..

Therefore it'd be nice if you had the equivalent of the below:

sudo docker run --network host --rm plndr/kube-vip:0.1.8 kubeadm init --interface ens160 --vip $VIP --arp --leaderElection | sed 's/name: kube-vip/name: kube-vip-'hostname'/g' | sed 's/path: \/etc\/kubernetes\/admin.conf/path: \/etc\/rancher\/k3s\/k3s.yaml/g' | sudo tee /var/lib/rancher/k3s/server/manifests/vip.yaml

But that ran as a static binary or a bash file.

When we spoke, you had a concern of the size of your binary. You could publish a tiny binary to do this one task, that'd be the easiest to maintain and a clean approach, you could hack some bash, or zip your binary.. zipping for us reduced the size of inletsctl from 30-35mb to 10mb. https://github.com/inlets/inletsctl/releases

from kube-vip.

alexellis avatar alexellis commented on June 4, 2024

Keep up the good work. I'm looking forward to telling people about Kube-vip for a HA k3s control plane IP.

from kube-vip.

thebsdbox avatar thebsdbox commented on June 4, 2024

These steps need an alternative method that doesn't involve the Docker engine. Perhaps curl -sFL kube-vip.io/k3sManifest.yaml | sed 's/old_IP/new_IP/' > manifest.yaml

from kube-vip.

thebsdbox avatar thebsdbox commented on June 4, 2024

Right, here we go !

Option one:

curl -sL kube-vip.io/k3s | vipAddress=192.168.0.10 vipInterface=ens192 sh > /var/lib/rancher/k3s/server/manifests/vip.yaml

Option two:

export vipAddress=192.168.0.10
export vipInterface=ens192
curl -sL kube-vip.io/k3s | sh > /var/lib/rancher/k3s/server/manifests/vip.yaml

from kube-vip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.