Skip to content

Commit 780f5ec

Browse files
committed
fixed metrics-server disable
1 parent c324464 commit 780f5ec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

init.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ resource "null_resource" "first_control_plane" {
1313
token = random_password.k3s_token.result
1414
cluster-init = true
1515
disable-cloud-controller = true
16-
disable = concat(["local-storage"], local.is_single_node_cluster ? [] : ["servicelb"], var.traefik_enabled ? [] : ["traefik"], var.metric_server_enabled ? [] : ["metric-server"])
16+
disable = concat(["local-storage"], local.is_single_node_cluster ? [] : ["servicelb"], var.traefik_enabled ? [] : ["traefik"], var.metrics_server_enabled ? [] : ["metrics-server"])
1717
flannel-iface = "eth1"
1818
kubelet-arg = "cloud-provider=external"
1919
node-ip = module.control_planes[0].private_ipv4_address

terraform.tfvars.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ load_balancer_type = "lb11"
6262
# traefik_enabled = false
6363

6464
# If you want to disable the metric server, you can! By defaults it is enabled.
65-
# metric_server_enabled = false
65+
# metrics_server_enabled = false
6666

6767
# If you want to allow non-control-plane workloads to run on the control-plane nodes set "true" below. The default is "false".
6868
# Also good for single node clusters.

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ variable "allow_scheduling_on_control_plane" {
9393
description = "Whether to allow non-control-plane workloads to run on the control-plane nodes"
9494
}
9595

96-
variable "metric_server_enabled" {
96+
variable "metrics_server_enabled" {
9797
type = bool
9898
default = true
9999
description = "Whether to enable or disbale k3s mertric server"

0 commit comments

Comments
 (0)