Skip to content

Commit 1dbe9c0

Browse files
committed
hetzner: Update Getting Started docs
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
1 parent 3b0078c commit 1dbe9c0

1 file changed

Lines changed: 18 additions & 26 deletions

File tree

docs/getting_started/hetzner.md

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# Getting Started with kOps on Hetzner Cloud
22

3-
**WARNING**: Hetzner Cloud support on kOps is currently in **beta**, which means it is in good shape and could be used for production.
4-
However, it is not as rigorously tested as the stable cloud providers and there are some features that might be missing.
3+
**WARNING**: Hetzner Cloud support on kOps is currently in **BETA**, which means it is in good shape and could be used for production.
4+
However, it is not as rigorously tested as the stable cloud providers, and there are some features that might be missing.
55

66
## Requirements
77
* kOps version >= 1.24
88
* kubectl version >= 1.23
99
* Hetzner Cloud [account](https://accounts.hetzner.com/login)
10-
* Hetzner Cloud [token](https://docs.hetzner.cloud/#authentication)
10+
* Hetzner Cloud [API token](https://docs.hetzner.cloud/reference/cloud#description/authentication)
11+
* Hetzner Cloud [S3 credentials](https://docs.hetzner.com/storage/object-storage/faq/s3-credentials/)
1112
* SSH public and private keys
12-
* S3 compatible object storage (like [MinIO](https://docs.min.io/minio/baremetal/security/minio-identity-management/user-management.html))
1313

1414
## Environment Variables
1515

1616
It is important to set the following environment variables:
1717
```bash
1818
export HCLOUD_TOKEN=<token>
19-
export S3_ENDPOINT=<endpoint>
2019
export S3_ACCESS_KEY_ID=<acces-key>
2120
export S3_SECRET_ACCESS_KEY=<secret-key>
22-
export KOPS_STATE_STORE=s3://<bucket-name>
21+
export S3_ENDPOINT=https://fsn1.your-objectstorage.com
22+
export KOPS_STATE_STORE=hos://<bucket-name>
2323
```
2424

2525
Some S3 compatible stores may also require to set the region:
@@ -29,34 +29,26 @@ export S3_REGION=<region>
2929

3030
## Creating a Single Master Cluster
3131

32-
In the following examples, `example.k8s.local` is a [gossip-based DNS ](../gossip.md) cluster name.
33-
3432
```bash
35-
# create a ubuntu 20.04 + calico cluster in fsn1
36-
kops create cluster --name=my-cluster.example.k8s.local \
37-
--ssh-public-key=~/.ssh/id_rsa.pub --cloud=hetzner --zones=fsn1 \
38-
--image=ubuntu-20.04 --networking=calico --network-cidr=10.10.0.0/16
39-
kops update cluster my-cluster.example.k8s.local --yes
40-
41-
# create a ubuntu 20.04 + calico cluster in fsn1 with CPU optimized servers
42-
kops create cluster --name=my-cluster.example.k8s.local \
33+
# create a ubuntu 24.04 + Cilium cluster in fsn1
34+
kops create cluster --name=my.k8s \
4335
--ssh-public-key=~/.ssh/id_rsa.pub --cloud=hetzner --zones=fsn1 \
44-
--image=ubuntu-20.04 --networking=calico --network-cidr=10.10.0.0/16 \
45-
--node-size cpx31
46-
kops update cluster --name=my-cluster.example.k8s.local --yes
36+
--image=ubuntu-24.04 --networking=calico --network-cidr=10.10.0.0/16 \
37+
--node-size cx23
38+
kops update cluster my.k8s --yes
4739

4840
# update a cluster
49-
kops update cluster --name=my-cluster.example.k8s.local
50-
kops update cluster --name=my-cluster.example.k8s.local --yes
51-
kops rolling-update cluster --name=my-cluster.example.k8s.local
52-
kops rolling-update cluster --name=my-cluster.example.k8s.local --yes
41+
kops update cluster --name=my.k8s
42+
kops update cluster --name=my.k8s --yes
43+
kops rolling-update cluster --name=my.k8s
44+
kops rolling-update cluster --name=my.k8s --yes
5345

5446
# validate a cluster
55-
kops validate cluster --name=my-cluster.example.k8s.local
47+
kops validate cluster --name=my.k8s
5648

5749
# delete a cluster
58-
kops delete cluster --name=my-cluster.example.k8s.local
59-
kops delete cluster --name=my-cluster.example.k8s.local --yes
50+
kops delete cluster --name=my.k8s
51+
kops delete cluster --name=my.k8s --yes
6052

6153
# export kubecfg
6254
# See https://kops.sigs.k8s.io/cli/kops_export_kubeconfig/#examples.

0 commit comments

Comments
 (0)