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 23, 2024
1 parent af9167b commit 6c83db1
Show file tree
Hide file tree
Showing 3 changed files with 8,614 additions and 1 deletion.
15 changes: 14 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,7 @@ edit `longhorn.yaml` and
kubectl apply -f longhorn.yaml
```


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

```bash
Expand Down
Loading

0 comments on commit 6c83db1

Please sign in to comment.