oracle-terraform-modules / terraform-oci-oke

The Terraform OKE Module Installer for Oracle Cloud Infrastructure provides a Terraform module that provisions the necessary resources for Oracle Container Engine.
https://oracle-terraform-modules.github.io/terraform-oci-oke/
Universal Permissive License v1.0
153 stars 206 forks source link

Document how to create a nood pool in a certain AD. #898

Open cwiggs opened 7 months ago

cwiggs commented 7 months ago

Community Note

Description

I don't see anywhere in the docs how you would place a node pool in a specific AD.

I found out if you put placement_ads = ["1"] in the node_pools.${node_name} config it will place the node in the first AD. So all together it would look like:

worker_pools =   np-ad1 = {                                                                                                 
    shape         = "VM.Standard.A1.Flex",
    placement_ads = ["1"]
    ocpus         = 2,
    memory        = 8,                                                                                                         
    size          = 3,
  } 

New or Affected Resource(s)

Potential Terraform Configuration

# Copy-paste any Terraform configurations for how the requested feature may be used. 

References

bkimbrough88 commented 5 months ago

I wish I had come and looked here first than spending over an hour trying to dive through the code of the module trying to figure this out and failing miserably.