diff --git a/tofu/126a.tf b/tofu/126a.tf index 7762914e..177e4121 100644 --- a/tofu/126a.tf +++ b/tofu/126a.tf @@ -5,11 +5,6 @@ resource "openstack_containerinfra_cluster_v1" "k8s_126a" { node_count = var.workers[var.datacenter] } -resource "local_file" "kube_config" { - content = resource.openstack_containerinfra_cluster_v1.k8s_126a.kubeconfig.raw_config - filename = "kube.config" -} - resource "openstack_containerinfra_clustertemplate_v1" "template_126a" { name = "paws${var.name[var.datacenter]}-126a" coe = "kubernetes" diff --git a/tofu/127a.tf b/tofu/127a.tf new file mode 100644 index 00000000..613437d0 --- /dev/null +++ b/tofu/127a.tf @@ -0,0 +1,40 @@ +resource "openstack_containerinfra_cluster_v1" "k8s_127a" { + name = "paws${var.name[var.datacenter]}-127a" + cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_127a.id + master_count = 1 + node_count = var.workers[var.datacenter] +} + +resource "local_file" "kube_config" { + content = resource.openstack_containerinfra_cluster_v1.k8s_127a.kubeconfig.raw_config + filename = "kube.config" +} + +resource "openstack_containerinfra_clustertemplate_v1" "template_127a" { + name = "paws${var.name[var.datacenter]}-127a" + coe = "kubernetes" + dns_nameserver = "8.8.8.8" + docker_storage_driver = "overlay2" + docker_volume_size = var.volume_size[var.datacenter] + external_network_id = var.external_network_id[var.datacenter] + fixed_subnet = var.fixed_subnet[var.datacenter] + fixed_network = var.fixed_network[var.datacenter] + flavor = var.worker_flavor[var.datacenter] + floating_ip_enabled = "false" + image = "Fedora-CoreOS-38" + master_flavor = var.control_flavor[var.datacenter] + network_driver = "calico" + + labels = { + kube_tag = "v1.27.8-rancher2" + container_runtime = "containerd" + containerd_version = "1.6.28" + containerd_tarball_sha256 = "f70736e52d61e5ad225f4fd21643b5ca1220013ab8b6c380434caeefb572da9b" + cloud_provider_tag = "v1.27.3" + cinder_csi_plugin_tag = "v1.27.3" + k8s_keystone_auth_tag = "v1.27.3" + magnum_auto_healer_tag = "v1.27.3" + octavia_ingress_controller_tag = "v1.27.3" + calico_tag = "v3.26.4" + } +}