mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-13 22:39:06 +02:00
Format according to terraform fmt
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
|
||||
|
@@ -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"
|
||||
}
|
@@ -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
|
||||
|
Reference in New Issue
Block a user