Skip to content

Commit e2d98f8

Browse files
committed
New deployment 127b replacing 127a
Needs full replacement as 127a is actually using the wrong credentials, and tofu can't update those without recreating the cluster. Signed-off-by: David Caro <dcaro@wikimedia.org>
1 parent e91166b commit e2d98f8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tofu/127a.tf renamed to tofu/127b.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
resource "openstack_containerinfra_cluster_v1" "k8s_127a" {
2-
name = "paws${var.name[var.datacenter]}-127a"
3-
cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_127a.id
1+
resource "openstack_containerinfra_cluster_v1" "k8s_127b" {
2+
name = "paws${var.name[var.datacenter]}-127b"
3+
cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_127b.id
44
master_count = 1
55
node_count = var.workers[var.datacenter]
66
}
77

88
resource "local_file" "kube_config" {
9-
content = resource.openstack_containerinfra_cluster_v1.k8s_127a.kubeconfig.raw_config
9+
content = resource.openstack_containerinfra_cluster_v1.k8s_127b.kubeconfig.raw_config
1010
filename = "kube.config"
1111
}
1212

13-
resource "openstack_containerinfra_clustertemplate_v1" "template_127a" {
14-
name = "paws${var.name[var.datacenter]}-127a"
13+
resource "openstack_containerinfra_clustertemplate_v1" "template_127b" {
14+
name = "paws${var.name[var.datacenter]}-127b"
1515
coe = "kubernetes"
1616
dns_nameserver = "8.8.8.8"
1717
docker_storage_driver = "overlay2"

0 commit comments

Comments
 (0)