mirror of
https://github.com/optim-enterprises-bv/terraform-talos.git
synced 2025-10-29 01:22:29 +00:00
fix node labels
This commit is contained in:
@@ -46,6 +46,7 @@ create-controlplane-bootstrap: ## Bootstrap controlplane
|
||||
talosctl --talosconfig _cfgs/talosconfig config endpoint ${ENDPOINT}
|
||||
talosctl --talosconfig _cfgs/talosconfig --nodes ${CPFIRST} bootstrap
|
||||
|
||||
.PHONY: kubeconfig
|
||||
kubeconfig: ## Prepare kubeconfig
|
||||
rm -f kubeconfig
|
||||
talosctl --talosconfig _cfgs/talosconfig config endpoint ${ENDPOINT}
|
||||
|
||||
@@ -43,7 +43,7 @@ resource "proxmox_virtual_environment_file" "db_machineconfig" {
|
||||
source_raw {
|
||||
data = templatefile("${path.module}/templates/${lookup(var.instances[each.value.zone], "db_template", "worker.yaml.tpl")}",
|
||||
merge(local.kubernetes, try(var.instances["all"], {}), {
|
||||
labels = join(",", [local.web_labels, lookup(var.instances[each.value.zone], "db_labels", "")])
|
||||
labels = join(",", [local.db_labels, lookup(var.instances[each.value.zone], "db_labels", "")])
|
||||
nodeSubnets = [local.subnets[each.value.zone], var.vpc_main_cidr[1]]
|
||||
lbv4 = local.lbv4
|
||||
ipv4 = each.value.ipv4
|
||||
|
||||
@@ -39,7 +39,7 @@ resource "proxmox_virtual_environment_file" "worker_machineconfig" {
|
||||
source_raw {
|
||||
data = templatefile("${path.module}/templates/${lookup(var.instances[each.value.zone], "worker_template", "worker.yaml.tpl")}",
|
||||
merge(local.kubernetes, try(var.instances["all"], {}), {
|
||||
labels = join(",", [local.web_labels, lookup(var.instances[each.value.zone], "worker_labels", "")])
|
||||
labels = join(",", [local.worker_labels, lookup(var.instances[each.value.zone], "worker_labels", "")])
|
||||
nodeSubnets = [local.subnets[each.value.zone], var.vpc_main_cidr[1]]
|
||||
lbv4 = local.lbv4
|
||||
ipv4 = each.value.ipv4
|
||||
|
||||
@@ -13,6 +13,8 @@ system_sysctl:
|
||||
- { name: net.ipv6.conf.all.autoconf, value: 0 }
|
||||
- { name: net.ipv6.conf.all.accept_ra, value: 0 }
|
||||
|
||||
- { name: kernel.sched_autogroup_enabled, value: 0 }
|
||||
|
||||
#
|
||||
|
||||
dnsmasq_configs: ["proxmox"]
|
||||
|
||||
Reference in New Issue
Block a user