Skip to content

Commit

Permalink
Move quarry deployment to ovs (via g4 flavors) (#60)
Browse files Browse the repository at this point in the history
* Update openstack app cred ID

In theory this uses the same secret as before.

* Update instance flavors from g3 to g4

This will cause the next deployment to land on OVS.

* auto update of  tag

---------

Co-authored-by: Andrew Bogott <[email protected]>
Co-authored-by: Github Action <[email protected]>
  • Loading branch information
3 people authored Jun 18, 2024
1 parent 5edc4f3 commit 95f364a
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
4 changes: 2 additions & 2 deletions helm-quarry/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
web:
repository: 'quay.io/wikimedia-quarry/quarry'
tag: pr-58 # web tag managed by github actions
tag: pr-60 # web tag managed by github actions

worker:
repository: 'quay.io/wikimedia-quarry/quarry'
tag: pr-58 # worker tag managed by github actions
tag: pr-60 # worker tag managed by github actions
5 changes: 0 additions & 5 deletions tofu/123.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ resource "openstack_containerinfra_cluster_v1" "k8s_123_2" {
node_count = 2
}

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

resource "openstack_containerinfra_clustertemplate_v1" "template_123_2" {
name = "quarry-123-2"
coe = "kubernetes"
Expand Down
33 changes: 33 additions & 0 deletions tofu/124.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
resource "openstack_containerinfra_cluster_v1" "k8s_124" {
name = "quarry-124"
cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_124.id
master_count = 1
node_count = 2
}

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

resource "openstack_containerinfra_clustertemplate_v1" "template_124" {
name = "quarry-124"
coe = "kubernetes"
dns_nameserver = "8.8.8.8"
docker_storage_driver = "overlay2"
docker_volume_size = 20
external_network_id = "wan-transport-eqiad"
fixed_subnet = "cloud-instances2-b-eqiad"
fixed_network = "lan-flat-cloudinstances2b"
flavor = "g4.cores4.ram8.disk20"
floating_ip_enabled = "false"
image = "Fedora-CoreOS-38"
master_flavor = "g4.cores2.ram4.disk20"
network_driver = "flannel"

labels = {
kube_tag = "v1.23.15-rancher1-linux-amd64"
hyperkube_prefix = "docker.io/rancher/"
cloud_provider_enabled = "true"
}
}
2 changes: 1 addition & 1 deletion tofu/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ variable "tenant_id" {
}
variable "application_credential_id" {
type = string
default = "4917ce71b98e498e8a6c5814b095b28e"
default = "446ab9c3713b4a0b8c2da540021dd314"
}

0 comments on commit 95f364a

Please sign in to comment.