Skip to Main Content

Core Infrastructure

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IMDS does not include preemptible action state (but OKE termination handler does)

Jakub KoralewskiJan 21 2025

Description of OKE node termination handler contains reference to IMDS containing preemption event data, but checking myself on a running preemptible instance I don't see any tag that specifies whether the instance is being terminated.

Quote in question:

> OKE automatically deploys an OCI node termination handler to each preemptible instance in your cluster, so you don’t have to build automation and deploy yourself. The termination handler runs as a daemonset on each preemptible instance and polls the Instance Metadata service (IMDS) every two seconds to detect a preemption event on the preemptible node. If a preemption event is detected, the node is terminated in two minutes from the time the preemption event was created.

https://blogs.oracle.com/cloud-infrastructure/post/reduce-your-kubernetes-costs-preemptible-nodes

Metadata docs don't contain any reference to preemptible action events: https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/gettingmetadata.htm#metadata-keys__instance

Preemptible instance docs only say that you can use Events: https://docs.oracle.com/en-us/iaas/Content/Compute/Concepts/preemptible.htm#howitworks__events

AWS supports both EventBridge and instance approach (plus you say OKE uses this metadata already + ChatGPT hallucinates as if you already have this) so either it's something I'm not seeing in the instance metadata or it's a hidden feature?

This post has been answered by Jakub Koralewski on Jan 23 2025
Jump to Answer
Comments
Post Details
Added on Jan 21 2025
2 comments
257 views