Skip to content

Commit 527ad24

Browse files
committed
Update README.md
1 parent 88dc72d commit 527ad24

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
## Usage
22
```bash
3-
curl -fsSL https://github.com/dyrnq/lvscare-binary/releases/download/v4.1.3/lvscare-v4.1.3.linux-amd64.tar.gz | tar -xvz -C /usr/local/bin/
3+
latest_ver=$(curl -fsSL https://api.github.com/repos/dyrnq/lvscare-binary/releases/latest | jq -r '.tag_name')
4+
[ "$(uname -m)" = "x86_64" ] && arch="amd64";
5+
[ "$(uname -m)" = "aarch64" ] && arch="arm64";
6+
DOWNLOAD_URL="https://github.com/dyrnq/lvscare-binary/releases/download/${latest_ver}/lvscare-${latest_ver}.linux-${arch}.tar.gz"
7+
#DOWNLOAD_URL="${DOWNLOAD_URL/github.com/files.m.daocloud.io/github.com}"
8+
DOWNLOAD_URL="${DOWNLOAD_URL/https/https://mirror.ghproxy.com/https}"
9+
echo "DOWNLOAD_URL=${DOWNLOAD_URL}"
10+
curl -fsSL $DOWNLOAD_URL | tar -xvz -C /usr/local/bin/
411
```
512

613
```bash
7-
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
14+
/usr/local/bin/lvscare version
15+
```
16+
17+
```bash
18+
/usr/local/bin/lvscare care \
19+
--vs 10.10.10.10:8443 \
20+
--mode link \
21+
--logger INFO \
22+
--rs 192.168.27.11:6443 \
23+
--rs 192.168.27.12:6443 \
24+
--rs 192.168.27.13:6443 \
25+
--health-insecure-skip-verify true \
26+
--health-status 401,403,200,201 \
27+
--health-schem https \
28+
--health-path "/livez" \
29+
--interval 2
830
```
931

1032
## ref

0 commit comments

Comments
 (0)