Skip to content

Commit

Permalink
Demo deploy of T343116
Browse files Browse the repository at this point in the history
Do not merge

Bug: T343307
  • Loading branch information
vivian-rook committed Aug 2, 2023
1 parent 9d3969d commit 8ff7dad
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
5 changes: 0 additions & 5 deletions terraform/123_5.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ resource "openstack_containerinfra_cluster_v1" "k8s_123_5" {
node_count = var.workers[var.datacenter]
}

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

resource "openstack_containerinfra_clustertemplate_v1" "template_123_5" {
name = "paws${var.name[var.datacenter]}-123-5"
coe = "kubernetes"
Expand Down
33 changes: 33 additions & 0 deletions terraform/123_demo.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
resource "openstack_containerinfra_cluster_v1" "k8s_123_demo" {
name = "paws${var.name[var.datacenter]}-123-demo"
cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_123_demo.id
master_count = 1
node_count = var.workers[var.datacenter]
}

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

resource "openstack_containerinfra_clustertemplate_v1" "template_123_demo" {
name = "paws${var.name[var.datacenter]}-123-demo"
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 = var.image_name[var.datacenter]
master_flavor = var.control_flavor[var.datacenter]
network_driver = "flannel"

labels = {
kube_tag = "v1.23.15-rancher1-linux-amd64"
hyperkube_prefix = "docker.io/rancher/"
cloud_provider_enabled = "true"
}
}

0 comments on commit 8ff7dad

Please sign in to comment.