Skip to content

Commit 27812ad

Browse files
committed
Merge pull request 'doc: improved it further' (#151) from improve_doc into main
Reviewed-on: https://gitea.obmondo.com/EnableIT/kubeaid-bootstrap-script/pulls/151
2 parents 3a5eb8a + ae4a9e0 commit 27812ad

File tree

2 files changed

+55
-25
lines changed

2 files changed

+55
-25
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@ 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
3839
```bash
3940
wget https://raw.githubusercontent.com/Obmondo/kubeaid-bootstrap-script/refs/heads/main/docker-compose.yaml
4041
```
4142

4243
2. **Configure Your Environment**:
44+
- Setup the .env file
4345
```raw
4446
# cat .env
4547
CLOUD_PROVIDER=local
46-
#FLAVOR=hcloud
4748
CLUSTER_NAME=kubeaid-demo
4849
```
4950

@@ -76,9 +77,16 @@ NOTE: You can also run the ./scripts/install-runtime-dependencies.sh
7677
## Cloud Provider Support
7778

7879
- **AWS**: Self-managed and EKS
80+
- Documentation: [docs/aws.md](docs/aws.md)
81+
7982
- **Azure**: AKS and self-managed
83+
- Documentation: [docs/azure.md](docs/azure.md)
84+
8085
- **Hetzner**: Cloud, Robot, and Hybrid
86+
- Documentation: [docs/hetzner.md](docs/hetzner.md)
87+
8188
- **Local**: Minikube or other local setups
89+
- Documentation: [docs/local.md](docs/local.md)
8290

8391
## Contributing
8492

docs/hetzner/hcloud.md

Lines changed: 46 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,52 @@
77

88
- 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).
99

10-
## Bootstrap the cluster
11-
12-
* Add the user and ssh key in the general.yaml.
13-
14-
```yaml
15-
# Any additional users you want to be setup for each Kubernetes node.
16-
additionalUsers:
17-
- name: your-username
18-
sshPublicKey: xxxxxxxxxx
19-
```
20-
21-
* Add the git username and token in the secret.yaml
22-
23-
```yaml
24-
git:
25-
username: xxxxxxxxxx
26-
password: xxxxxxxxxx
27-
```
28-
29-
* Bootstrap the cluster
30-
31-
```sh
32-
docker compose run bootstrap-cluster
33-
```
10+
### Setup
11+
12+
1. **Configure Your Environment**:
13+
- Setup the .env file
14+
```raw
15+
# cat .env
16+
CLOUD_PROVIDER=hetzner
17+
FLAVOR=hcloud
18+
CLUSTER_NAME=kubeaid-demo
19+
```
20+
21+
2. **Generate the config**:
22+
- Run the compose to generate the config, it will drop the file in **/outputs/config**
23+
```bash
24+
docker compose run bootstrap-generate
25+
```
26+
27+
3. **Add the user and ssh key**:
28+
- Edit general.yaml
29+
```yaml
30+
# Any additional users you want to be setup for each Kubernetes node.
31+
additionalUsers:
32+
- name: your-username
33+
sshPublicKey: xxxxxxxxxx
34+
```
35+
36+
4. **Add the git username and token**:
37+
- Edit secret.yaml
38+
```yaml
39+
git:
40+
username: xxxxxxxxxx
41+
password: xxxxxxxxxx
42+
```
43+
44+
5. **Bootstrap the cluster**:
45+
- Setup the Hetzner cloud k8s cluster
46+
```sh
47+
docker compose run bootstrap-cluster
48+
```
49+
50+
6. **Access Your Cluster**:
51+
- Once the setup is complete, you can access your Kubernetes cluster using `kubectl`:
52+
```bash
53+
export KUBECONFIG=./outputs/kubeconfigs/main.yaml
54+
kubectl get nodes
55+
```
3456

3557
## Reference
3658

0 commit comments

Comments
 (0)