Skip to content

Improving tf code + docs#144

Open
newtondotcom wants to merge 2 commits intonce:mainfrom
newtondotcom:main
Open

Improving tf code + docs#144
newtondotcom wants to merge 2 commits intonce:mainfrom
newtondotcom:main

Conversation

@newtondotcom
Copy link

Hi,

I attempted to edit the documentation to make it clearer for new users without altering the essence of your project, as it was designed to meet your specific needs.

The Terraform (tf) code includes a minor adjustment for regions with fewer than three availability domains.

…ty_domains.ads.availability_domains`

fix an error for regions where there are not exactly 3 availability
domains
as a user with zero dependencies installed
@stunney
Copy link

stunney commented Oct 8, 2025

Thank you for the update to k8s.tf

Here in Canada, Toronto only has 1 availability domain. There are more regions with only 1 than there are with 2+. This is a great fix.

@stunney
Copy link

stunney commented Oct 8, 2025

@newtondotcom @nce

I'm running into an issue while tf applying /infra on Node initialization (2 nodes) in Toronto, Canada

Here is the output

oci_containerengine_cluster.k8s_cluster: Creation complete after 5m45s [id=ocid1.cluster.oc1.ca-toronto-1.aaaa...uknlra]
data.oci_containerengine_cluster_kube_config.k8s_cluster_kube_config: Reading...
oci_containerengine_node_pool.k8s_node_pool: Creating...
data.oci_containerengine_cluster_kube_config.k8s_cluster_kube_config: Read complete after 0s [id=ContainerengineClusterKubeConfigDataSource-3775857513]
oci_containerengine_node_pool.k8s_node_pool: Still creating... [00m10s elapsed]
oci_containerengine_node_pool.k8s_node_pool: Still creating... [00m19s elapsed]
oci_containerengine_node_pool.k8s_node_pool: Still creating... [00m29s elapsed]
oci_containerengine_node_pool.k8s_node_pool: Still creating... [00m39s elapsed]
oci_containerengine_node_pool.k8s_node_pool: Still creating... [00m48s elapsed]
oci_containerengine_node_pool.k8s_node_pool: Still creating... [00m58s elapsed]
oci_containerengine_node_pool.k8s_node_pool: Still creating... [01m08s elapsed]
oci_containerengine_node_pool.k8s_node_pool: Still creating... [01m17s elapsed]
╷
│ Error: Work Request error
│ Provider version: 7.19.0, released on 2025-09-17. This provider is 3 Update(s) behind to current.
│ Service: Containerengine Node Pool
│ Error Message: work request did not succeed, workId: ocid1.clustersworkrequest.oc1.ca-toronto-1.aaaa....mo2sq, entity: nodepool, action: CREATED. Message: 2 node(s) launch failure. Reason for failure on one of the nodes : Error returned by LaunchInstance operation in Compute service.(500, InternalError, false) Out of host capacity. (opc-request-id: 40EBCD4B9CBB41A3AD8D7A5E3853D9B3/289DA20FFA96A246A1DCE66859595AAC/2C0AD2A7698087BA735685B622902590)
│ Timestamp: 2025-10-08T21:50:26.292Z
│ Client version: Oracle-JavaSDK/2.86.0
│ Request Endpoint: https://iaas.ca-toronto-1.oraclecloud.com/20160918/instances
│ Troubleshooting Tips: See https://docs.oracle.com/en-us/iaas/Content/API/References/apierrors.htm#apierrors_500__500_internalerror for more information about resolving this error
│ Also see https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/LaunchInstance for details on this operation's requirements.
│ To get more info on the failing request, you can enable debug level logs as mentioned in `Using SLF4J for Logging section` in https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconfig.htm.
│ If you are unable to resolve this Compute issue, please contact Oracle support and provide them this full error message. Please see https://docs.oracle.com/en-us/iaas/Content/Compute/known-issues.htm#out-of-host-capacity-error-when-creating-compute-instances
│ Resource OCID: ocid1.nodepool.oc1.ca-toronto-1.aaaaaaaarw4nungl673kdv5zhoxzmye3psenrrc6l645dw5amncb5yrwi3ga
│ Suggestion: Please retry or contact support for help with service: Containerengine Node Pool
│
│
│   with oci_containerengine_node_pool.k8s_node_pool,
│   on k8s.tf line 53, in resource "oci_containerengine_node_pool" "k8s_node_pool":
│   53: resource "oci_containerengine_node_pool" "k8s_node_pool" {
│

If you have any insights, it would be appreciated!

@stunney
Copy link

stunney commented Oct 9, 2025

Turns out, Oracle really doesn't want to support people learning their platform :) Can't actually USE the Free tier.

You have to wait 48 hours according to technical support staff for all SKUs/slugs to become available after account creation. Seems like a way to punt the problem to the next tier 3 support person to me but I will wait and see.

They have $300 in credit for you to use but you have to watch your CC bill and go with the VM.Standard.A2.Flex shape and things get spun up pretty quickly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants