You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hetzner/hcloud.md
+46-24Lines changed: 46 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -7,30 +7,52 @@
7
7
8
8
- 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).
9
9
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`:
0 commit comments