The Terraform OKE Module Installer for Oracle Cloud Infrastructure provides a Terraform module that provisions the necessary resources for Oracle Container Engine.
I have an existing OKE cluster. I am trying to use the workers submodule to create a node pool. After resolving many missing parameters this is what my terraform code looks like:
data.tf
data "oci_identity_availability_domains" "ads" {
compartment_id = "<my_compartment_id>"
}
locals.tf
locals {
ad_numbers_to_names = { for ad in data.oci_identity_availability_domains.ads.availability_domains: ad.name => ad.name }
}
╷
│ Error: Insufficient placement_configs blocks
│
│ on .terraform/modules/my_oke_nodepool/modules/workers/nodepools.tf line 17, in resource "oci_containerengine_node_pool" "workers":
│ 17: node_config_details {
│
│ At least 1 "placement_configs" blocks are required.
╵
I cannot find sufficient submodule docs to help me resolve this I have tried adding some parameters after reading the module code i.e. availability_domains, capacity_reservation_id, and subnet_id under my-nodepool but that doesn't seem to help. Could someone please provide any pointers?
I have an existing OKE cluster. I am trying to use the workers submodule to create a node pool. After resolving many missing parameters this is what my terraform code looks like:
data.tf
locals.tf
node-pool.tf
However I am currently stuck on this error:
I cannot find sufficient submodule docs to help me resolve this I have tried adding some parameters after reading the module code i.e.
availability_domains
,capacity_reservation_id
, andsubnet_id
undermy-nodepool
but that doesn't seem to help. Could someone please provide any pointers?