Skip to content

“Support baseline_ocpu_utilization in oci_containerengine_node_pool.node_shape_config for Flex shapes (E3/E4)” #2445

@kunalb19

Description

@kunalb19

Issue Description

Currently, the Terraform oci_containerengine_node_pool resource does not support the baseline_ocpu_utilization argument inside the node_shape_config block.

This parameter is supported for Flex shapes (e.g. VM.Standard.E3.Flex, VM.Standard.E4.Flex) in Compute instances, but it appears missing for OKE node pools.

As a result, attempts to use it in Terraform fail with:

Error: Unsupported argument

│ on oke_cluster.tf line XX, in resource "oci_containerengine_node_pool" "oke_nodepool":
│ XX: baseline_ocpu_utilization = var.oke_node_shape.baseline_ocpu_utilization

│ An argument named "baseline_ocpu_utilization" is not expected here.

Expected Behavior

The node_shape_config block for oci_containerengine_node_pool should support the baseline_ocpu_utilization argument, just like oci_core_instance.shape_config.

Example:

resource "oci_containerengine_node_pool" "oke_nodepool" {
node_shape = "VM.Standard.E3.Flex"

node_shape_config {
ocpus = 2
memory_in_gbs = 16
baseline_ocpu_utilization = "BASELINE_1_2"
}
}

Current Behavior

Only ocpus and memory_in_gbs are accepted in the node_shape_config.
baseline_ocpu_utilization is rejected by the provider schema.

Use Case

Allows OKE users to deploy cost-optimized Flex nodes at 50% (BASELINE_1_2) or 12.5% (BASELINE_1_8) utilization instead of full baseline (BASELINE_1_1).

This provides better flexibility for dev/test clusters where lower sustained CPU is acceptable.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

New or Affected Resource(s)

Potential Terraform Configuration

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

References

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions