Magent is build for select k3s master according to etcd leader
- ipvsadm should be installed
- running magent as root
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o magent main.go
GOOS=linux GOARCH=adm64 CGO_ENABLED=0 go build -o magent main.go
Running with VirtualIP of the k3s master, for example:
sudo ./magent "200.23.34.56:6443"