Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 987 Bytes

README.md

File metadata and controls

33 lines (30 loc) · 987 Bytes

Usage

latest_ver=$(curl -fsSL https://api.github.com/repos/dyrnq/lvscare-binary/releases/latest | jq -r '.tag_name')
[ "$(uname -m)" = "x86_64" ] && arch="amd64";
[ "$(uname -m)" = "aarch64" ] && arch="arm64";
DOWNLOAD_URL="https://github.com/dyrnq/lvscare-binary/releases/download/${latest_ver}/lvscare-${latest_ver}.linux-${arch}.tar.gz"
#DOWNLOAD_URL="${DOWNLOAD_URL/github.com/files.m.daocloud.io/github.com}"
DOWNLOAD_URL="${DOWNLOAD_URL/https/https://mirror.ghproxy.com/https}"
echo "DOWNLOAD_URL=${DOWNLOAD_URL}"
curl -fsSL $DOWNLOAD_URL | tar -xvz -C /usr/local/bin/
/usr/local/bin/lvscare version
/usr/local/bin/lvscare care \
--vs 10.10.10.10:8443 \
--mode link \
--logger INFO \
--rs 192.168.27.11:6443 \
--rs 192.168.27.12:6443 \
--rs 192.168.27.13:6443 \
--health-insecure-skip-verify true \
--health-status 401,403,200,201 \
--health-schem https \
--health-path "/livez" \
--interval 2

ref