Skip to content

Commit

Permalink
docs: added longhornctl
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Sep 19, 2024
1 parent af9167b commit 080516a
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion k3s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ chmod 700 get_helm.sh
./get_helm.sh
```

Install longhornctl (on laptop)
---------------------------

```bash
curl -L https://github.com/longhorn/cli/releases/download/${LonghornVersion}/longhornctl-${OS}-${ARCH} -o longhornctl # check https://github.com/longhorn/cli/releases
chmod +x longhornctl
mv ./longhornctl /usr/local/bin/longhornctl
```


Enable completion (optional but useful)
---------------------------------------

Expand All @@ -72,6 +82,9 @@ source <(kubectl completion bash)

# helm
source <(helm completion bash)

# longhornctl
source <(longhornctl completion bash)
```


Expand Down Expand Up @@ -160,7 +173,6 @@ Deploy longhorn in your cluster:
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.5.3/deploy/prerequisite/longhorn-iscsi-installation.yaml

kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.5.3/deploy/prerequisite/longhorn-nfs-installation.yaml

```

**Single or two nodes cluster** (less than 3 nodes)
Expand All @@ -182,6 +194,15 @@ edit `longhorn.yaml` and
kubectl apply -f longhorn.yaml
```

Install longhornctl (on laptop)
-------------------------

```bash
curl -sLS https://get.k3sup.dev | sh
sudo install k3sup /usr/local/bin/
```


**Multi node cluster** (more than 2 nodes)

```bash
Expand Down

0 comments on commit 080516a

Please sign in to comment.