Format according to terraform fmt

This commit is contained in:
2024-04-13 18:40:09 +02:00
parent f45d0657c8
commit caa362b279
13 changed files with 43 additions and 43 deletions

View File

@@ -3,19 +3,19 @@ data "oci_identity_availability_domains" "ads" {
}
data "oci_core_images" "latest_image" {
compartment_id = var.compartment_ocid
operating_system = "Oracle Linux"
compartment_id = var.compartment_ocid
operating_system = "Oracle Linux"
operating_system_version = "8.8"
shape = "VM.Standard.A1.Flex"
shape = "VM.Standard.A1.Flex"
filter {
name = "display_name"
values = ["^.*aarch64-.*$"]
regex = true
regex = true
}
}
data "oci_containerengine_cluster_kube_config" "cluster_kube_config" {
#Required
cluster_id = oci_containerengine_cluster.k8s_cluster.id
token_version = "2.0.0"
#Required
cluster_id = oci_containerengine_cluster.k8s_cluster.id
token_version = "2.0.0"
}

View File

@@ -21,8 +21,8 @@ resource "oci_containerengine_node_pool" "k8s_node_pool" {
}
node_source_details {
image_id = var.node_image_ocid
source_type = "image"
image_id = var.node_image_ocid
source_type = "image"
boot_volume_size_in_gbs = 100
}

View File

@@ -7,6 +7,6 @@ output "public_endpoint" {
}
resource "local_file" "oke_kubeconfig" {
content = data.oci_containerengine_cluster_kube_config.cluster_kube_config.content
filename = "${path.module}/kubeconfig"
content = data.oci_containerengine_cluster_kube_config.cluster_kube_config.content
filename = "${path.module}/kubeconfig"
}

View File

@@ -16,7 +16,7 @@ variable "node_image_ocid" {
default = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaa3mctwlkbkaj76pnlrmdr7w6dd4frkrhuqrdadpq4g67kh5gqbn3q"
}
variable "node_availability_domains" {
type = list(string)
type = list(string)
}
variable "node_pool_size" {
type = number