Skip to content

Commit 7aa9620

Browse files
committed
Updated installation instructions
1 parent 3822f99 commit 7aa9620

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

README.md

+19-5
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,37 @@ A mostly GPT-4 created Golang-based tool for executing commands in parallel on K
1919

2020
## Installation
2121

22-
1. Clone the repository:
22+
### Homebrew
23+
24+
You can install `k8s-parallel-exec` using Homebrew on macOS and Linux:
25+
26+
```bash
27+
brew install cin/k8s-parallel-exec/k8s-parallel-exec
28+
```
29+
30+
### From Source
31+
32+
You can also build and install the k8s-parallel-exec from source. To do this, follow these steps:
33+
34+
1. Ensure that you have Go installed on your system. You can check this by running go version. If you don't have Go installed, you can follow the installation instructions on the [official Go website](https://golang.org/doc/install).
35+
36+
2. Clone the repository:
2337

2438
```sh
2539
git clone https://github.com/your-github-username/k8s-parallel-exec.git
2640
```
2741

28-
2. Change into the project directory:
42+
3. Change into the project directory:
2943
```sh
3044
cd k8s-parallel-exec
3145
```
3246

33-
3. Build the binary:
47+
4. Build the binary:
3448
```sh
3549
go build -o k8s-parallel-exec
3650
```
3751

38-
4. Move the binary to a directory in your PATH (optional):
52+
5. Move the binary to a directory in your PATH (optional):
3953
```sh
4054
sudo mv k8s-parallel-exec /usr/local/bin/
4155
```
@@ -57,7 +71,7 @@ This command would execute `nodetool status` on all the Cassandra containers in
5771

5872
If authentication is enabled and you don't want to expose credentials, you may have to do things like the following:
5973

60-
```
74+
```bash
6175
KPE_LABELS="cassandra-cluster-component=cassandra
6276
,cassandra-cluster-instance=test-cluster"
6377
k8s-parallel-exec -kubeconfig ~/.kube/kind-kcfg -l $KPE_LABELS -c cassandra -- bash -c 'nodetool --ssl -u $(cat /etc/cassandra-auth-config/admin-role) -pw $(cat /etc/cassandra-auth-config/admin-password) status'

0 commit comments

Comments
 (0)