You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Expected Behavior
New nodes added by scaling would use the default capacity reservation.
Actual Behavior
The initial nodes that are created use the default capacity reservation, but when you scale the node pool, the new nodes are deployed as on-demand capacity instead of using the default capacity reservation. When you do everything from the console, the new nodes come from the default capacity reservation as expected.
If you explicitly add capacity_reservation_id to the pool config, it works. But This should not be needed with default capacity reservations.
Steps to Reproduce
Create a default capacity reservation for a shape in the console.
Deploy a node pool by using the shape you created the default reservation for. Don't add the capacity reservation ID to the pool block, because it's a default capacity reservation, all instances for that specific shape should be deployed from the reservation.
The initial nodes deployed in the pool will come from the default capacity reservation.
Add X more nodes by scaling the pool. The new nodes are deployed as on-demand capacity, instead of using the reservation.
module "oke" {
source = "oracle-terraform-modules/oke/oci"
version = "5.0.0-beta.6"
@OguzPastirmaci
The module behaviour is inline with the OCI console and terraform provider behaviour. The default capacity reservation is created in root compartment. The OCI Console requires you to select the capacity reservation id (even if it is default) by selecting the compartment and the default reservation id.
As per oci_containerengine_node_pool terraform documentation, the capacity_reservation id is required to be specified even if it is default. The terraform provider doesn;' provide any way to automatically fetch default capacity reservation id.
capacity_reservation_id - (Optional) (Updatable) The OCID of the compute capacity reservation in which to place the compute instance.
Community Note
Expected Behavior
New nodes added by scaling would use the default capacity reservation.
Actual Behavior
The initial nodes that are created use the default capacity reservation, but when you scale the node pool, the new nodes are deployed as on-demand capacity instead of using the default capacity reservation. When you do everything from the console, the new nodes come from the default capacity reservation as expected.
If you explicitly add
capacity_reservation_id
to the pool config, it works. But This should not be needed with default capacity reservations.Steps to Reproduce
The text was updated successfully, but these errors were encountered: