Skip to content

Commit

Permalink
Try deploy to new cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
vivian-rook committed Aug 19, 2024
1 parent 841f073 commit 5fc0019
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
Binary file modified ansible/vars/secrets-eqiad1.yaml
Binary file not shown.
36 changes: 36 additions & 0 deletions tofu/126a.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
resource "openstack_containerinfra_cluster_v1" "k8s_126a" {
name = "superset${var.name[var.datacenter]}-126a"
cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_126a.id
master_count = 1
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 = "superset${var.name[var.datacenter]}-126a"
coe = "kubernetes"
dns_nameserver = "8.8.8.8"
docker_storage_driver = "overlay2"
docker_volume_size = "50"
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 = "flannel"

labels = {
kube_tag = "v1.26.8-rancher1"
container_runtime = "containerd"
containerd_version = "1.6.20"
containerd_tarball_sha256 = "1d86b534c7bba51b78a7eeb1b67dd2ac6c0edeb01c034cc5f590d5ccd824b416"
hyperkube_prefix = "docker.io/rancher/"
cloud_provider_enabled = "true"
}
}
5 changes: 0 additions & 5 deletions tofu/127.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ resource "openstack_containerinfra_cluster_v1" "k8s_127" {
node_count = var.workers[var.datacenter]
}

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

resource "openstack_containerinfra_clustertemplate_v1" "template_127" {
name = "superset${var.name[var.datacenter]}-127"
coe = "kubernetes"
Expand Down

0 comments on commit 5fc0019

Please sign in to comment.