Skip to content

Commit

Permalink
docs: change README example
Browse files Browse the repository at this point in the history
  • Loading branch information
KoLiBer committed Dec 15, 2023
1 parent 11efe4d commit bb3ceb0
Showing 1 changed file with 29 additions and 16 deletions.
45 changes: 29 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
![release](https://img.shields.io/github/v/release/cktf/terraform-hcloud-rke?display_name=tag)
![license](https://img.shields.io/github/license/cktf/terraform-hcloud-rke)

**RKE** is a Terraform module useful for bootstraping **HA** kubernetes clusters using **k3s** and **rke2** on **HCloud**

These modules will be installed and configured on the cluster:
This module is a customized version of [terraform-module-rke](https://github.com/cktf/terraform-module-rke) for hetzner cloud. these addons will be installed and configured on the cluster:

- [CCM](https://github.com/hetznercloud/hcloud-cloud-controller-manager)
- [CSI](https://github.com/hetznercloud/csi-driver)
Expand All @@ -26,29 +24,44 @@ terraform init
module "rke" {
source = "cktf/rke/hcloud"
name = "mycluster"
network_id = module.network_hcloud.network_id
hcloud_token = "<HCLOUD_TOKEN>"
name = "mycluster"
type = "k3s"
hcloud_zone = "<ALB_ZONE>"
hcloud_token = "<HCLOUD_TOKEN>"
hcloud_network = "<HCLOUD_NETWORK>"
masters = {
servers = {
1 = {
type = "cx11"
location = "fsn1"
tags = {}
}
}
node_pools = {
pool1 = {
2 = {
type = "cx11"
location = "fsn1"
min_size = 3
max_size = 5
}
pool2 = {
3 = {
type = "cx11"
location = "fsn1"
min_size = 2
}
}
agents = {
1 = {
type = "cx21"
location = "fsn1"
}
2 = {
type = "cx21"
location = "fsn1"
}
}
pools = {
1 = {
type = "cx21"
location = "fsn1"
min_size = 1
max_size = 5
}
}
Expand Down

0 comments on commit bb3ceb0

Please sign in to comment.