oci_containerengine_virtual_node_pool

This resource provides the Virtual Node Pool resource in Oracle Cloud Infrastructure Container Engine service.

Create a new virtual node pool.

Example Usage

resource "oci_containerengine_virtual_node_pool" "test_virtual_node_pool" {
	#Required
	cluster_id = oci_containerengine_cluster.test_cluster.id
	compartment_id = var.compartment_id
	display_name = var.virtual_node_pool_display_name
	placement_configurations {

		#Required
		availability_domain = var.virtual_node_pool_placement_configurations_availability_domain
		fault_domain = var.virtual_node_pool_placement_configurations_fault_domain
		subnet_id = oci_core_subnet.test_subnet.id
	}

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	freeform_tags = {"Department"= "Finance"}
	initial_virtual_node_labels {

		#Optional
		key = var.virtual_node_pool_initial_virtual_node_labels_key
		value = var.virtual_node_pool_initial_virtual_node_labels_value
	}
	nsg_ids = var.virtual_node_pool_nsg_ids
	#Required
	pod_configuration {
		#Required
		shape = var.virtual_node_pool_pod_configuration_shape
		subnet_id = oci_core_subnet.test_subnet.id

		#Optional
		nsg_ids = var.virtual_node_pool_pod_configuration_nsg_ids
	}
	size = var.virtual_node_pool_size
	#Optional
	taints {

		#Optional
		effect = var.virtual_node_pool_taints_effect
		key = var.virtual_node_pool_taints_key
		value = var.virtual_node_pool_taints_value
	}
	virtual_node_tags {

		#Optional
		defined_tags = {"Operations.CostCenter"= "42"}
		freeform_tags = {"Department"= "Finance"}
	}
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Virtual Node Pool * update - (Defaults to 20 minutes), when updating the Virtual Node Pool * delete - (Defaults to 20 minutes), when destroying the Virtual Node Pool

Import

VirtualNodePools can be imported using the id, e.g.

$ terraform import oci_containerengine_virtual_node_pool.test_virtual_node_pool "id"