Skip to content

Commit 8433096

Browse files
authored
Merge pull request #1121 from kube-hetzner/staging
deploy
2 parents 18bdb7b + 557f246 commit 8433096

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/terraform.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
| <a name="input_additional_k3s_environment"></a> [additional\_k3s\_environment](#input\_additional\_k3s\_environment) | Additional environment variables for the k3s binary. See for example https://docs.k3s.io/advanced#configuring-an-http-proxy . | `map(any)` | `{}` | no |
9191
| <a name="input_additional_tls_sans"></a> [additional\_tls\_sans](#input\_additional\_tls\_sans) | Additional TLS SANs to allow connection to control-plane through it. | `list(string)` | `[]` | no |
9292
| <a name="input_address_for_connectivity_test"></a> [address\_for\_connectivity\_test](#input\_address\_for\_connectivity\_test) | Before installing k3s, we actually verify that there is internet connectivity. By default we ping 1.1.1.1, but if you use a proxy, you may simply want to ping that proxy instead (assuming that the proxy has its own checks for internet connectivity). | `string` | `"1.1.1.1"` | no |
93-
| <a name="input_agent_nodepools"></a> [agent\_nodepools](#input\_agent\_nodepools) | Number of agent nodes. | <pre>list(object({<br> name = string<br> server_type = string<br> location = string<br> backups = optional(bool)<br> floating_ip = optional(bool)<br> labels = list(string)<br> taints = list(string)<br> count = number<br> longhorn_volume_size = optional(number)<br> swap_size = optional(string, "")<br> zram_size = optional(string, "")<br> kubelet_args = optional(list(string), [])<br> }))</pre> | `[]` | no |
93+
| <a name="input_agent_nodepools"></a> [agent\_nodepools](#input\_agent\_nodepools) | Number of agent nodes. | <pre>list(object({<br> name = string<br> server_type = string<br> location = string<br> backups = optional(bool)<br> floating_ip = optional(bool)<br> labels = list(string)<br> taints = list(string)<br> count = number<br> longhorn_volume_size = optional(number)<br> swap_size = optional(string, "")<br> zram_size = optional(string, "")<br> kubelet_args = optional(list(string), ["kube-reserved=cpu=50m,memory=300Mi,ephemeral-storage=1Gi", "system-reserved=cpu=250m,memory=300Mi"])<br> }))</pre> | `[]` | no |
9494
| <a name="input_allow_scheduling_on_control_plane"></a> [allow\_scheduling\_on\_control\_plane](#input\_allow\_scheduling\_on\_control\_plane) | Whether to allow non-control-plane workloads to run on the control-plane nodes. | `bool` | `false` | no |
9595
| <a name="input_automatically_upgrade_k3s"></a> [automatically\_upgrade\_k3s](#input\_automatically\_upgrade\_k3s) | Whether to automatically upgrade k3s based on the selected channel. | `bool` | `true` | no |
9696
| <a name="input_automatically_upgrade_os"></a> [automatically\_upgrade\_os](#input\_automatically\_upgrade\_os) | Whether to enable or disable automatic os updates. Defaults to true. Should be disabled for single-node clusters | `bool` | `true` | no |
@@ -119,7 +119,7 @@
119119
| <a name="input_cni_plugin"></a> [cni\_plugin](#input\_cni\_plugin) | CNI plugin for k3s. | `string` | `"flannel"` | no |
120120
| <a name="input_control_plane_lb_enable_public_interface"></a> [control\_plane\_lb\_enable\_public\_interface](#input\_control\_plane\_lb\_enable\_public\_interface) | Enable or disable public interface for the control plane load balancer . Defaults to true. | `bool` | `true` | no |
121121
| <a name="input_control_plane_lb_type"></a> [control\_plane\_lb\_type](#input\_control\_plane\_lb\_type) | The type of load balancer to use for the control plane load balancer. Defaults to lb11, which is the cheapest one. | `string` | `"lb11"` | no |
122-
| <a name="input_control_plane_nodepools"></a> [control\_plane\_nodepools](#input\_control\_plane\_nodepools) | Number of control plane nodes. | <pre>list(object({<br> name = string<br> server_type = string<br> location = string<br> backups = optional(bool)<br> labels = list(string)<br> taints = list(string)<br> count = number<br> swap_size = optional(string, "")<br> zram_size = optional(string, "")<br> kubelet_args = optional(list(string), [])<br> }))</pre> | `[]` | no |
122+
| <a name="input_control_plane_nodepools"></a> [control\_plane\_nodepools](#input\_control\_plane\_nodepools) | Number of control plane nodes. | <pre>list(object({<br> name = string<br> server_type = string<br> location = string<br> backups = optional(bool)<br> labels = list(string)<br> taints = list(string)<br> count = number<br> swap_size = optional(string, "")<br> zram_size = optional(string, "")<br> kubelet_args = optional(list(string), ["kube-reserved=cpu=250m,memory=1500Mi,ephemeral-storage=1Gi", "system-reserved=cpu=250m,memory=300Mi"])<br> }))</pre> | `[]` | no |
123123
| <a name="input_control_planes_custom_config"></a> [control\_planes\_custom\_config](#input\_control\_planes\_custom\_config) | Custom control plane configuration e.g to allow etcd monitoring. | `any` | `{}` | no |
124124
| <a name="input_create_kubeconfig"></a> [create\_kubeconfig](#input\_create\_kubeconfig) | Create the kubeconfig as a local file resource. Should be disabled for automatic runs. | `bool` | `true` | no |
125125
| <a name="input_create_kustomization"></a> [create\_kustomization](#input\_create\_kustomization) | Create the kustomization backup as a local file resource. Should be disabled for automatic runs. | `bool` | `true` | no |

kube.tf.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ module "kube-hetzner" {
128128
count = 1
129129
# swap_size = "2G" # remember to add the suffix, examples: 512M, 1G
130130
# zram_size = "2G" # remember to add the suffix, examples: 512M, 1G
131-
# kubelet_args = ["kube-reserved=cpu=100m,memory=200Mi,ephemeral-storage=1Gi", "system-reserved=cpu=memory=200Mi"]
131+
# kubelet_args = ["kube-reserved=cpu=250m,memory=1500Mi,ephemeral-storage=1Gi", "system-reserved=cpu=250m,memory=300Mi"]
132132

133133
# Enable automatic backups via Hetzner (default: false)
134134
# backups = true
@@ -167,7 +167,7 @@ module "kube-hetzner" {
167167
count = 1
168168
# swap_size = "2G" # remember to add the suffix, examples: 512M, 1G
169169
# zram_size = "2G" # remember to add the suffix, examples: 512M, 1G
170-
# kubelet_args = ["kube-reserved=cpu=100m,memory=200Mi,ephemeral-storage=1Gi", "system-reserved=cpu=memory=200Mi"]
170+
# kubelet_args = ["kube-reserved=cpu=50m,memory=300Mi,ephemeral-storage=1Gi", "system-reserved=cpu=250m,memory=300Mi"]
171171

172172
# Enable automatic backups via Hetzner (default: false)
173173
# backups = true

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ variable "control_plane_nodepools" {
174174
count = number
175175
swap_size = optional(string, "")
176176
zram_size = optional(string, "")
177-
kubelet_args = optional(list(string), [])
177+
kubelet_args = optional(list(string), ["kube-reserved=cpu=250m,memory=1500Mi,ephemeral-storage=1Gi", "system-reserved=cpu=250m,memory=300Mi"])
178178
}))
179179
default = []
180180
validation {
@@ -203,7 +203,7 @@ variable "agent_nodepools" {
203203
longhorn_volume_size = optional(number)
204204
swap_size = optional(string, "")
205205
zram_size = optional(string, "")
206-
kubelet_args = optional(list(string), [])
206+
kubelet_args = optional(list(string), ["kube-reserved=cpu=50m,memory=300Mi,ephemeral-storage=1Gi", "system-reserved=cpu=250m,memory=300Mi"])
207207
}))
208208
default = []
209209
validation {

0 commit comments

Comments
 (0)