Kubernetes Engine support for specifying the compartment in which load balancers and network load balancers are created
- Services: Kubernetes Engine
- Release Date: January 19, 2026
When Kubernetes Engine provisions an Oracle Cloud Infrastructure load balancer or network load balancer for a Kubernetes service of type LoadBalancer, you can now specify the compartment in which the load balancer or network load balancer is created.
By default, Kubernetes Engine creates the load balancer or network load balancer in the same compartment as the cluster. You can now use the oci.oraclecloud.com/compartment-id annotation to specify an alternative compartment in which to create it.
To create the load balancer or network load balancer in an alternative compartment, you must give the cluster permission to inspect, manage, and use other resources by specifying the appropriate IAM policy statements.
Note that Kubernetes Engine does not support the moving of a load balancer or network load balancer between compartments after it has been created.
For more information, see Specifying the Compartment for Load Balancers and Network Load Balancers.