Skip to content

Commit

Permalink
redeploy with g4 flavors/ovs (#434)
Browse files Browse the repository at this point in the history
* vars.tf: update server flavor to g4

This will schedule future clusters on ovs hosts
rather than linuxbridge.

Bug: T326373

* vars.tf: update server flavor to g4

This will schedule future clusters on ovs hosts
rather than linuxbridge.

Bug: T326373

* Update resource names

---------

Co-authored-by: Andrew Bogott <[email protected]>
  • Loading branch information
andrewbogott and Andrew Bogott authored Jun 18, 2024
1 parent 7ce6f70 commit d75a91b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions tofu/126_1.tf → tofu/127.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
resource "openstack_containerinfra_cluster_v1" "k8s_126_1" {
name = "paws${var.name[var.datacenter]}-126-1"
cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_126_1.id
resource "openstack_containerinfra_cluster_v1" "k8s_127" {
name = "paws${var.name[var.datacenter]}-127"
cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_127.id
master_count = 1
node_count = var.workers[var.datacenter]
}

resource "local_file" "kube_config" {
content = resource.openstack_containerinfra_cluster_v1.k8s_126_1.kubeconfig.raw_config
content = resource.openstack_containerinfra_cluster_v1.k8s_127.kubeconfig.raw_config
filename = "kube.config"
}

resource "openstack_containerinfra_clustertemplate_v1" "template_126_1" {
name = "paws${var.name[var.datacenter]}-126-1"
resource "openstack_containerinfra_clustertemplate_v1" "template_127" {
name = "paws${var.name[var.datacenter]}-127"
coe = "kubernetes"
dns_nameserver = "8.8.8.8"
docker_storage_driver = "overlay2"
Expand Down
8 changes: 4 additions & 4 deletions tofu/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ variable "application_credential_id" {
variable "worker_flavor" {
type = map(any)
default = {
"codfw1dev" = "g3.cores1.ram2.disk20"
"eqiad1" = "g3.cores8.ram32.disk20"
"codfw1dev" = "g4.cores1.ram2.disk20"
"eqiad1" = "g4.cores8.ram32.disk20"
}
}
variable "control_flavor" {
type = map(any)
default = {
"codfw1dev" = "g3.cores1.ram2.disk20"
"eqiad1" = "g3.cores2.ram4.disk20"
"codfw1dev" = "g4.cores1.ram2.disk20"
"eqiad1" = "g4.cores2.ram4.disk20"
}
}
variable "volume_size" {
Expand Down

0 comments on commit d75a91b

Please sign in to comment.