Skip to content

Commit 6c29d66

Browse files
committed
Merge pull request 'doc: added missing steps and updated local cluster setup' (#153) from improve_doc_again into main
Reviewed-on: https://gitea.obmondo.com/EnableIT/kubeaid-bootstrap-script/pulls/153
2 parents 27812ad + 439077b commit 6c29d66

File tree

4 files changed

+90
-63
lines changed

4 files changed

+90
-63
lines changed

README.md

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,40 +35,53 @@ NOTE: You can also run the ./scripts/install-runtime-dependencies.sh
3535
### Quick Setup
3636

3737
1. **Download the compose file**:
38-
- Get the compose file
39-
```bash
40-
wget https://raw.githubusercontent.com/Obmondo/kubeaid-bootstrap-script/refs/heads/main/docker-compose.yaml
41-
```
38+
- Get the compose file
39+
```bash
40+
wget https://raw.githubusercontent.com/Obmondo/kubeaid-bootstrap-script/refs/heads/main/docker-compose.yaml
41+
```
4242

4343
2. **Configure Your Environment**:
44-
- Setup the .env file
45-
```raw
46-
# cat .env
47-
CLOUD_PROVIDER=local
48-
CLUSTER_NAME=kubeaid-demo
49-
```
50-
51-
3. **Deploy the local Cluster**:
44+
- Setup the .env file
45+
```raw
46+
# vim .env
47+
CLOUD_PROVIDER=local
48+
CLUSTER_NAME=kubeaid-demo
49+
```
50+
51+
3. **Generate the config**:
52+
- Run the compose to generate the config, it will drop the file in **/outputs/config**
53+
```bash
54+
docker compose run bootstrap-generate
55+
```
56+
57+
4. **Fix the config based on your requirements**:
58+
- kubeaid-config git repo in general.yaml
59+
```yaml
60+
forkURLs:
61+
kubeaidConfig: https://github.com/xxxxxxxx/kubeaid-config.git
62+
```
63+
64+
5. **Deploy the local Cluster**:
5265
- Run the docker compose:
5366
```bash
5467
docker compose run bootstrap-cluster
5568
```
5669

57-
4. **Access Your Cluster**:
70+
6. **Access Your Cluster**:
5871
- Once the setup is complete, you can access your Kubernetes cluster using `kubectl`:
5972
```bash
6073
export KUBECONFIG=./outputs/kubeconfigs/main.yaml
6174
kubectl get nodes
6275
```
6376

64-
5. **Access Keycloak, ArgoCD, and Monitoring**:
77+
7. **Access Keycloak, ArgoCD, and Monitoring**:
6578
- Follow the instructions in the [KubeAid](https://github.com/Obmondo/kubeaid) to access and configure Keycloak, ArgoCD, and Kube-Prometheus.
6679
- Example: ArgoCD
6780
```bash
6881
kubectl port-forward svc/argocd-server --namespace argo-cd 8080:443
6982
```
7083

71-
6. **Destroy**
84+
8. **Destroy**
7285
- When you are done playing
7386
```bash
7487
k3d cluster delete kubeaid-demo

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ services:
1414
- -c
1515
- |
1616
rm -fr outputs/configs
17-
kubeaid-bootstrap-script config generate ${CLOUD_PROVIDER} ${FLAVOR}
17+
kubeaid-bootstrap-script config generate ${CLOUD_PROVIDER} ${FLAVOR:-''}
1818
volumes:
1919
- ./outputs:/outputs
2020
networks:

docs/hetzner/hcloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Hetzner cloud
22

3-
## Generate token and ssh keys
3+
### Generate token and ssh keys
44
- Generate an [HCloud API token](https://docs.hetzner.com/cloud/api/getting-started/generating-api-token)
55

66
- Generate an [SSH key pair](https://community.hetzner.com/tutorials/add-ssh-key-to-your-hetzner-cloud)

docs/local.md

Lines changed: 60 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,60 @@
1-
# Hetzner KubeAid managed cluster
2-
3-
## Installation
4-
5-
* Download the compose file
6-
```sh
7-
wget https://raw.githubusercontent.com/Obmondo/kubeaid-bootstrap-script/refs/heads/main/docker-compose.yaml
8-
```
9-
10-
* Add the cloud provider and flavour
11-
12-
```
13-
# cat .env
14-
CLOUD_PROVIDER=hetzner
15-
FLAVOR=hcloud
16-
CLUSTER_NAME=kubeaid-demo
17-
```
18-
19-
* Generate the config, which will be created under `./outputs/configs`
20-
21-
```sh
22-
docker compose run bootstrap-generate
23-
```
24-
25-
## Choose your flavor
26-
27-
* [Hcloud](./hetzner/hcloud.md)
28-
* [Robot](./hetzner/robot.md)
29-
* [Hybrid](./hetzner/hybrid.md)
30-
31-
## Access your cluster
32-
33-
* Get your KUBECONFIG
34-
35-
```sh
36-
cat ./outputs/kubeconfigs/main.yaml
37-
export KUBECONFIG=./outputs/kubeconfigs/main.yaml
38-
```
39-
40-
## Destroy
41-
42-
* When you want to destroy the cluster
43-
44-
```sh
45-
k3d cluster delete kubeaid-demo
46-
```
1+
## Local KubeAid Cluster
2+
3+
### Generate token and ssh keys
4+
5+
- Generate the [GitHub token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token).
6+
7+
### Setup
8+
9+
1. **Download the compose file**:
10+
- Get the compose file
11+
```bash
12+
wget https://raw.githubusercontent.com/Obmondo/kubeaid-bootstrap-script/refs/heads/main/docker-compose.yaml
13+
```
14+
15+
2. **Configure Your Environment**:
16+
- Setup the .env file
17+
```raw
18+
# vim .env
19+
CLOUD_PROVIDER=local
20+
CLUSTER_NAME=kubeaid-demo
21+
```
22+
23+
3. **Generate the config**:
24+
- Run the compose to generate the config, it will drop the file in **/outputs/config**
25+
```bash
26+
docker compose run bootstrap-generate
27+
```
28+
29+
4. **Fix the config based on your requirements**:
30+
- kubeaid-config git repo in general.yaml
31+
```yaml
32+
forkURLs:
33+
kubeaidConfig: https://github.com/xxxxxxxx/kubeaid-config.git
34+
```
35+
36+
5. **Deploy the local Cluster**:
37+
- Run the docker compose:
38+
```bash
39+
docker compose run bootstrap-cluster
40+
```
41+
42+
6. **Access Your Cluster**:
43+
- Once the setup is complete, you can access your Kubernetes cluster using `kubectl`:
44+
```bash
45+
export KUBECONFIG=./outputs/kubeconfigs/main.yaml
46+
kubectl get nodes
47+
```
48+
49+
7. **Access Keycloak, ArgoCD, and Monitoring**:
50+
- Follow the instructions in the [KubeAid](https://github.com/Obmondo/kubeaid) to access and configure Keycloak, ArgoCD, and Kube-Prometheus.
51+
- Example: ArgoCD
52+
```bash
53+
kubectl port-forward svc/argocd-server --namespace argo-cd 8080:443
54+
```
55+
56+
8. **Destroy**
57+
- When you are done playing
58+
```bash
59+
k3d cluster delete kubeaid-demo
60+
```

0 commit comments

Comments
 (0)