Skip to content

Commit

Permalink
Merge pull request #1 from skyride/update-default-server-types
Browse files Browse the repository at this point in the history
Update Default Server Types to reflect new pricing and server types
  • Loading branch information
skyride committed Jun 7, 2024
2 parents dbcf426 + 88b508f commit 046b669
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ Example nodepool configuration:
```tf
{
name = "egress",
server_type = "cpx11",
server_type = "cx22",
location = "fsn1",
labels = [
"node.kubernetes.io/role=egress"
Expand Down Expand Up @@ -947,7 +947,7 @@ easily map between your nodes and your kube.tf file.
agent_nodepools = [
{
name = "agent-large",
server_type = "cpx21",
server_type = "cx32",
location = "nbg1",
labels = [],
taints = [],
Expand All @@ -960,7 +960,7 @@ easily map between your nodes and your kube.tf file.
},
"1" : {
append_index_to_node_name = false,
server_type = "cpx31",
server_type = "cx42",
labels = ["my.extra.label=slightlybiggernode"]
placement_group = "agent-large-pg-2",
},
Expand Down
18 changes: 9 additions & 9 deletions kube.tf.example
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ module "kube-hetzner" {
# For instance, one is ok (non-HA), two is not ok, and three is ok (becomes HA). It does not matter if they are in the same nodepool or not! So they can be in different locations and of various types.

# Of course, you can choose any number of nodepools you want, with the location you want. The only constraint on the location is that you need to stay in the same network region, Europe, or the US.
# For the server type, the minimum instance supported is cpx11 (just a few cents more than cx11) but the cax11 is even cheaper and more powerful (arm64); see https://www.hetzner.com/cloud.
# For the server type, the minimum instance supported is cx22. The cax11 provides even better value for money if your applications are compatible with arm64; see https://www.hetzner.com/cloud.

# IMPORTANT: Before you create your cluster, you can do anything you want with the nodepools, but you need at least one of each, control plane and agent.
# Once the cluster is up and running, you can change nodepool count and even set it to 0 (in the case of the first control-plane nodepool, the minimum is 1).
Expand All @@ -121,7 +121,7 @@ module "kube-hetzner" {
control_plane_nodepools = [
{
name = "control-plane-fsn1",
server_type = "cpx11",
server_type = "cx22",
location = "fsn1",
labels = [],
taints = [],
Expand All @@ -138,7 +138,7 @@ module "kube-hetzner" {
},
{
name = "control-plane-nbg1",
server_type = "cpx11",
server_type = "cx22",
location = "nbg1",
labels = [],
taints = [],
Expand All @@ -152,7 +152,7 @@ module "kube-hetzner" {
},
{
name = "control-plane-hel1",
server_type = "cpx11",
server_type = "cx22",
location = "hel1",
labels = [],
taints = [],
Expand All @@ -169,7 +169,7 @@ module "kube-hetzner" {
agent_nodepools = [
{
name = "agent-small",
server_type = "cpx11",
server_type = "cx22",
location = "fsn1",
labels = [],
taints = [],
Expand All @@ -186,7 +186,7 @@ module "kube-hetzner" {
},
{
name = "agent-large",
server_type = "cpx21",
server_type = "cx32",
location = "nbg1",
labels = [],
taints = [],
Expand All @@ -200,7 +200,7 @@ module "kube-hetzner" {
},
{
name = "storage",
server_type = "cpx21",
server_type = "cx32",
location = "fsn1",
# Fully optional, just a demo.
labels = [
Expand All @@ -223,7 +223,7 @@ module "kube-hetzner" {
# See the https://github.com/kube-hetzner/terraform-hcloud-kube-hetzner#examples for an example use case.
{
name = "egress",
server_type = "cx21",
server_type = "cx22",
location = "fsn1",
labels = [
"node.kubernetes.io/role=egress"
Expand Down Expand Up @@ -323,7 +323,7 @@ module "kube-hetzner" {
# autoscaler_nodepools = [
# {
# name = "autoscaled-small"
# server_type = "cpx21"
# server_type = "cx32"
# location = "fsn1"
# min_nodes = 0
# max_nodes = 5
Expand Down
2 changes: 1 addition & 1 deletion packer-template/hcloud-microos-snapshots.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ source "hcloud" "microos-x86-snapshot" {
image = "ubuntu-22.04"
rescue = "linux64"
location = "fsn1"
server_type = "cpx11" # disk size of >= 40GiB is needed to install the MicroOS image
server_type = "cx22" # disk size of >= 40GiB is needed to install the MicroOS image
snapshot_labels = {
microos-snapshot = "yes"
creator = "kube-hetzner"
Expand Down

0 comments on commit 046b669

Please sign in to comment.