Skip to content

Commit

Permalink
k8s 1.27
Browse files Browse the repository at this point in the history
  • Loading branch information
vivian-rook committed Aug 26, 2024
1 parent 2f8c92c commit aba9cbc
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions tofu/126a.tf → tofu/127a.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
resource "openstack_containerinfra_cluster_v1" "k8s_126a" {
name = "quarry-126a"
cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_126a.id
resource "openstack_containerinfra_cluster_v1" "k8s_127a" {
name = "quarry-127a"
cluster_template_id = resource.openstack_containerinfra_clustertemplate_v1.template_127a.id
master_count = 1
node_count = 2
}

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

resource "openstack_containerinfra_clustertemplate_v1" "template_126a" {
name = "quarry-126a"
resource "openstack_containerinfra_clustertemplate_v1" "template_127a" {
name = "quarry-127a"
coe = "kubernetes"
dns_nameserver = "8.8.8.8"
docker_storage_driver = "overlay2"
Expand All @@ -23,14 +23,18 @@ resource "openstack_containerinfra_clustertemplate_v1" "template_126a" {
floating_ip_enabled = "false"
image = "Fedora-CoreOS-38"
master_flavor = "g4.cores2.ram4.disk20"
network_driver = "flannel"
network_driver = "calico"

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"
kube_tag = "v1.27.8-rancher2"
container_runtime = "containerd"
containerd_version = "1.6.28"
containerd_tarball_sha256 = "f70736e52d61e5ad225f4fd21643b5ca1220013ab8b6c380434caeefb572da9b"
cloud_provider_tag = "v1.27.3"
cinder_csi_plugin_tag = "v1.27.3"
k8s_keystone_auth_tag = "v1.27.3"
magnum_auto_healer_tag = "v1.27.3"
octavia_ingress_controller_tag = "v1.27.3"
calico_tag = "v3.26.4"
}
}

0 comments on commit aba9cbc

Please sign in to comment.