File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change 1
1
## Usage
2
2
``` 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/
4
11
```
5
12
6
13
``` 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
8
30
```
9
31
10
32
## ref
You can’t perform that action at this time.
0 commit comments