Removed cilium - First working state, i.e. talosctl health is successful
This commit is contained in:
@@ -19,28 +19,28 @@ data "talos_client_configuration" "this" {
|
||||
endpoints = [for k, v in var.nodes : v.ip if v.machine_type == "controlplane"]
|
||||
}
|
||||
|
||||
resource "terraform_data" "cilium_bootstrap_inline_manifests" {
|
||||
input = [
|
||||
{
|
||||
name = "cilium-bootstrap"
|
||||
contents = file("${path.root}/${var.cluster.cilium.bootstrap_manifest_path}")
|
||||
},
|
||||
{
|
||||
name = "cilium-values"
|
||||
contents = yamlencode({
|
||||
apiVersion = "v1"
|
||||
kind = "ConfigMap"
|
||||
metadata = {
|
||||
name = "cilium-values"
|
||||
namespace = "kube-system"
|
||||
}
|
||||
data = {
|
||||
"values.yaml" = file("${path.root}/${var.cluster.cilium.values_file_path}")
|
||||
}
|
||||
})
|
||||
}
|
||||
]
|
||||
}
|
||||
# resource "terraform_data" "cilium_bootstrap_inline_manifests" {
|
||||
# input = [
|
||||
# {
|
||||
# name = "cilium-bootstrap"
|
||||
# contents = file("${path.root}/${var.cluster.cilium.bootstrap_manifest_path}")
|
||||
# },
|
||||
# {
|
||||
# name = "cilium-values"
|
||||
# contents = yamlencode({
|
||||
# apiVersion = "v1"
|
||||
# kind = "ConfigMap"
|
||||
# metadata = {
|
||||
# name = "cilium-values"
|
||||
# namespace = "kube-system"
|
||||
# }
|
||||
# data = {
|
||||
# "values.yaml" = file("${path.root}/${var.cluster.cilium.values_file_path}")
|
||||
# }
|
||||
# })
|
||||
# }
|
||||
# ]
|
||||
# }
|
||||
|
||||
data "talos_machine_configuration" "this" {
|
||||
for_each = var.nodes
|
||||
@@ -69,7 +69,7 @@ data "talos_machine_configuration" "this" {
|
||||
vip = var.cluster.vip
|
||||
extra_manifests = jsonencode(local.extra_manifests)
|
||||
api_server = var.cluster.api_server
|
||||
inline_manifests = jsonencode(terraform_data.cilium_bootstrap_inline_manifests.output)
|
||||
# inline_manifests = jsonencode(terraform_data.cilium_bootstrap_inline_manifests.output)
|
||||
}) :
|
||||
templatefile("${path.module}/machine-config/worker.yaml.tftpl", {
|
||||
mac_address = lower(each.value.mac_address)
|
||||
|
||||
@@ -11,7 +11,7 @@ machine:
|
||||
%{ endif }
|
||||
|
||||
cluster:
|
||||
allowSchedulingOnControlPlanes: true
|
||||
allowSchedulingOnControlPlanes: false
|
||||
%{if api_server != ""}
|
||||
apiServer:
|
||||
${indent(4, api_server)}
|
||||
@@ -25,15 +25,14 @@ cluster:
|
||||
scheduler:
|
||||
extraArgs:
|
||||
bind-address: 0.0.0.0
|
||||
network:
|
||||
cni:
|
||||
name: none
|
||||
proxy:
|
||||
disabled: true
|
||||
# Let's go with the default network
|
||||
# network:
|
||||
# cni:
|
||||
# name: none
|
||||
# proxy:
|
||||
# disabled: true
|
||||
discovery:
|
||||
enabled: true
|
||||
registries:
|
||||
service:
|
||||
disabled: false
|
||||
extraManifests: ${extra_manifests}
|
||||
inlineManifests: ${inline_manifests}
|
||||
disabled: false
|
||||
Reference in New Issue
Block a user