virtual_node_pools
Creates, updates, deletes, gets or lists a virtual_node_pools resource.
Overview​
| Name | virtual_node_pools |
| Type | Resource |
| Id | oci.container_engine.virtual_node_pools |
Fields​
The following fields are returned by SELECT queries:
- get
- list
The virtual node pool.
| Name | Datatype | Description |
|---|---|---|
id | string | The OCID of the virtual node pool. (example: ocid1.virtualnodepool.oc1.iad.aaaaaaaanifpelnyzmkvnepohbz4ntswkpl35syzzsugdxceth3oihe8hcfq) |
clusterId | string | The cluster the virtual node pool is associated with. A virtual node pool can only be associated with one cluster. (example: ocid1.cluster.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgy4wgyldmy3dcmtcmmyw) |
compartmentId | string | Compartment of the virtual node pool. (example: ocid1.compartment.oc1..aaaaaaaafqm2df7ckwmmbtdsl2bgxsw4fcpvkoojytxrqst24yww2tdmtqcq) |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} |
displayName | string | Display name of the virtual node pool. This is a non-unique value. (example: My Virtual Node Pool) |
freeformTags | object | Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
initialVirtualNodeLabels | array | Initial labels that will be added to the Kubernetes Virtual Node object when it registers. This is the same as virtualNodePool resources. |
kubernetesVersion | string | The version of Kubernetes running on the nodes in the node pool. (example: v1.9.4) |
lifecycleDetails | string | Details about the state of the Virtual Node Pool. (example: updating.) |
lifecycleState | string | The state of the Virtual Node Pool. (CREATING, ACTIVE, UPDATING, DELETING, DELETED, FAILED, NEEDS_ATTENTION) (x-obmcs-top-level-enum: #/definitions/VirtualNodePoolLifecycleState) |
nsgIds | array | List of network security group id's applied to the Virtual Node VNIC. |
placementConfigurations | array | The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains. The size attribute determines how many we evenly spread across these placement configurations |
podConfiguration | object | The pod configuration for pods run on virtual nodes of this virtual node pool. |
size | integer (int32) | The number of Virtual Nodes that should be in the Virtual Node Pool. The placement configurations determine where these virtual nodes are placed. |
systemTags | object | Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}} |
taints | array | A taint is a collection of <key, value, effect>. These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling. |
timeCreated | string (date-time) | The time the virtual node pool was created. (example: 2017-07-21T16:11:29Z) |
timeUpdated | string (date-time) | The time the virtual node pool was updated. (example: 2017-07-21T16:11:29Z) |
virtualNodePoolCyclingDetails | object | Virtual Node Pool Cycling Details |
virtualNodeTags | object | The tags associated to the virtual nodes in this virtual node pool. |
The properties that define a virtual node pool summary.
| Name | Datatype | Description |
|---|---|---|
id | string | The OCID of the virtual node pool. (example: ocid1.nodepool.oc1.iad.aaaaaaaanifpelnyzmkvnepohbz4ntswkpl35syzzsugdxceth3oihe8hcfq) |
clusterId | string | The cluster the virtual node pool is associated with. A virtual node pool can only be associated with one cluster. (example: ocid1.cluster.oc1.iad.aaaaaaaaga3tombrmq3wgyrvmi3gcn3bmfsdizjwgy4wgyldmy3dcmtcmmyw) |
compartmentId | string | Compartment of the virtual node pool. (example: ocid1.compartment.oc1..aaaaaaaafqm2df7ckwmmbtdsl2bgxsw4fcpvkoojytxrqst24yww2tdmtqcq) |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} |
displayName | string | Display name of the virtual node pool. This is a non-unique value. (example: My Virtual Node Pool) |
freeformTags | object | Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
initialVirtualNodeLabels | array | Initial labels that will be added to the Kubernetes Virtual Node object when it registers. This is the same as virtualNodePool resources. |
kubernetesVersion | string | The version of Kubernetes running on the nodes in the node pool. (example: v1.9.4) |
lifecycleDetails | string | Details about the state of the Virtual Node Pool. (example: updating.) |
lifecycleState | string | The state of the Virtual Node Pool. (CREATING, ACTIVE, UPDATING, DELETING, DELETED, FAILED, NEEDS_ATTENTION) (x-obmcs-top-level-enum: #/definitions/VirtualNodePoolLifecycleState) |
nsgIds | array | List of network security group id's applied to the Virtual Node VNIC. |
placementConfigurations | array | The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains. The size attribute determines how many we evenly spread across these placement configurations |
podConfiguration | object | The pod configuration for pods run on virtual nodes of this virtual node pool. |
size | integer (int32) | The number of Virtual Nodes that should be in the Virtual Node Pool. The placement configurations determine where these virtual nodes are placed. |
systemTags | object | Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud": {"free-tier-retained": "true"}} |
taints | array | A taint is a collection of <key, value, effect>. These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling. |
timeCreated | string (date-time) | The time the virtual node pool was created. (example: 2017-07-21T16:11:29Z) |
timeUpdated | string (date-time) | The time the virtual node pool was updated. (example: 2017-07-21T16:11:29Z) |
virtualNodePoolCyclingDetails | object | Virtual Node Pool Cycling Details |
virtualNodeTags | object | The tags associated to the virtual nodes in this virtual node pool. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | virtualNodePoolId, region | opc-request-id | Get the details of a virtual node pool. |
list | select | compartmentId, region | opc-request-id, clusterId, name, limit, page, sortOrder, sortBy, lifecycleState | List all the virtual node pools in a compartment, and optionally filter by cluster. |
create | insert | region, compartmentId, clusterId, displayName, placementConfigurations, podConfiguration, size | opc-retry-token, opc-request-id | Create a new virtual node pool. |
update | update | virtualNodePoolId, region | if-match, opc-request-id | Update the details of a virtual node pool. |
delete | delete | virtualNodePoolId, region | if-match, opc-request-id, overrideEvictionGraceDurationVnp, isForceDeletionAfterOverrideGraceDurationVnp | Delete a virtual node pool. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
compartmentId | string | The OCID of the compartment. |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
virtualNodePoolId | string | The OCID of the virtual node pool. |
clusterId | string | The OCID of the cluster. |
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
isForceDeletionAfterOverrideGraceDurationVnp | boolean | If the underlying virtual node should be force deleted if all the pods are not evicted in the evictionGraceDuration. |
lifecycleState | array | A virtual node pool lifecycle state to filter on. Can have multiple parameters of this name. |
limit | integer | For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. 1 is the minimum, 1000 is the maximum. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
name | string | The name to filter on. |
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
opc-retry-token | string | A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours. |
overrideEvictionGraceDurationVnp | string (x-obmcs-duration) | Duration after which SKE will give up eviction of the pods on the node. PT0M will indicate you want to delete the virtual node without cordon and drain. Default PT60M, Min PT0M, Max: PT60M. Format ISO 8601 e.g PT30M |
page | string | For list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
sortBy | string | The optional field to sort the results by. |
sortOrder | string | The optional order in which to sort the results. |
SELECT examples​
- get
- list
Get the details of a virtual node pool.
SELECT
id,
clusterId,
compartmentId,
definedTags,
displayName,
freeformTags,
initialVirtualNodeLabels,
kubernetesVersion,
lifecycleDetails,
lifecycleState,
nsgIds,
placementConfigurations,
podConfiguration,
size,
systemTags,
taints,
timeCreated,
timeUpdated,
virtualNodePoolCyclingDetails,
virtualNodeTags
FROM oci.container_engine.virtual_node_pools
WHERE virtualNodePoolId = '{{ virtualNodePoolId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;
List all the virtual node pools in a compartment, and optionally filter by cluster.
SELECT
id,
clusterId,
compartmentId,
definedTags,
displayName,
freeformTags,
initialVirtualNodeLabels,
kubernetesVersion,
lifecycleDetails,
lifecycleState,
nsgIds,
placementConfigurations,
podConfiguration,
size,
systemTags,
taints,
timeCreated,
timeUpdated,
virtualNodePoolCyclingDetails,
virtualNodeTags
FROM oci.container_engine.virtual_node_pools
WHERE compartmentId = '{{ compartmentId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND clusterId = '{{ clusterId }}'
AND name = '{{ name }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND sortOrder = '{{ sortOrder }}'
AND sortBy = '{{ sortBy }}'
AND lifecycleState = '{{ lifecycleState }}'
;
INSERT examples​
- create
- Manifest
Create a new virtual node pool.
INSERT INTO oci.container_engine.virtual_node_pools (
clusterId,
compartmentId,
definedTags,
displayName,
freeformTags,
initialVirtualNodeLabels,
nsgIds,
placementConfigurations,
podConfiguration,
size,
taints,
virtualNodePoolCyclingDetails,
virtualNodeTags,
region,
opc-retry-token,
opc-request-id
)
SELECT
'{{ clusterId }}' /* required */,
'{{ compartmentId }}' /* required */,
'{{ definedTags }}',
'{{ displayName }}' /* required */,
'{{ freeformTags }}',
'{{ initialVirtualNodeLabels }}',
'{{ nsgIds }}',
'{{ placementConfigurations }}' /* required */,
'{{ podConfiguration }}' /* required */,
{{ size }} /* required */,
'{{ taints }}',
'{{ virtualNodePoolCyclingDetails }}',
'{{ virtualNodeTags }}',
'{{ region }}',
'{{ opc-retry-token }}',
'{{ opc-request-id }}'
;
# Description fields are for documentation purposes
- name: virtual_node_pools
props:
- name: region
value: "{{ region }}"
description: Required parameter for the virtual_node_pools resource.
- name: clusterId
value: "{{ clusterId }}"
description: |
The cluster the virtual node pool is associated with. A virtual node pool can only be associated with one cluster.
- name: compartmentId
value: "{{ compartmentId }}"
description: |
Compartment of the virtual node pool.
- name: definedTags
value: "{{ definedTags }}"
description: |
Defined tags for this resource. Each key is predefined and scoped to a namespace.
For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
Example: `{"Operations": {"CostCenter": "42"}}`
- name: displayName
value: "{{ displayName }}"
description: |
Display name of the virtual node pool. This is a non-unique value.
- name: freeformTags
value: "{{ freeformTags }}"
description: |
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
Example: `{"Department": "Finance"}`
- name: initialVirtualNodeLabels
description: |
Initial labels that will be added to the Kubernetes Virtual Node object when it registers.
value:
- key: "{{ key }}"
value: "{{ value }}"
- name: nsgIds
value:
- "{{ nsgIds }}"
description: |
List of network security group id's applied to the Virtual Node VNIC.
- name: placementConfigurations
description: |
The list of placement configurations which determines where Virtual Nodes will be provisioned across as it relates to the subnet and availability domains. The size attribute determines how many we evenly spread across these placement configurations
value:
- availabilityDomain: "{{ availabilityDomain }}"
faultDomain: "{{ faultDomain }}"
subnetId: "{{ subnetId }}"
- name: podConfiguration
description: |
The pod configuration for pods run on virtual nodes of this virtual node pool.
value:
nsgIds:
- "{{ nsgIds }}"
shape: "{{ shape }}"
subnetId: "{{ subnetId }}"
- name: size
value: {{ size }}
description: |
The number of Virtual Nodes that should be in the Virtual Node Pool. The placement configurations determine where these virtual nodes are placed.
- name: taints
description: |
A taint is a collection of <key, value, effect>. These taints will be applied to the Virtual Nodes of this Virtual Node Pool for Kubernetes scheduling.
value:
- effect: "{{ effect }}"
key: "{{ key }}"
value: "{{ value }}"
- name: virtualNodePoolCyclingDetails
description: |
Virtual Node Pool Cycling Details
value:
isVirtualNodeCyclingEnabled: {{ isVirtualNodeCyclingEnabled }}
maximumSurge: "{{ maximumSurge }}"
maximumUnavailable: "{{ maximumUnavailable }}"
- name: virtualNodeTags
description: |
The tags associated to the virtual nodes in this virtual node pool.
value:
definedTags: "{{ definedTags }}"
freeformTags: "{{ freeformTags }}"
- name: opc-retry-token
value: "{{ opc-retry-token }}"
description: A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.
description: A token you supply to uniquely identify the request and provide idempotency if the request is retried. Idempotency tokens expire after 24 hours.
- name: opc-request-id
value: "{{ opc-request-id }}"
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
UPDATE examples​
- update
Update the details of a virtual node pool.
UPDATE oci.container_engine.virtual_node_pools
SET
definedTags = '{{ definedTags }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}',
initialVirtualNodeLabels = '{{ initialVirtualNodeLabels }}',
nsgIds = '{{ nsgIds }}',
placementConfigurations = '{{ placementConfigurations }}',
podConfiguration = '{{ podConfiguration }}',
size = {{ size }},
taints = '{{ taints }}',
virtualNodePoolCyclingDetails = '{{ virtualNodePoolCyclingDetails }}',
virtualNodeTags = '{{ virtualNodeTags }}'
WHERE
virtualNodePoolId = '{{ virtualNodePoolId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match}}'
AND opc-request-id = '{{ opc-request-id}}';
DELETE examples​
- delete
Delete a virtual node pool.
DELETE FROM oci.container_engine.virtual_node_pools
WHERE virtualNodePoolId = '{{ virtualNodePoolId }}' --required
AND region = '{{ region }}' --required
AND if-match = '{{ if-match }}'
AND opc-request-id = '{{ opc-request-id }}'
AND overrideEvictionGraceDurationVnp = '{{ overrideEvictionGraceDurationVnp }}'
AND isForceDeletionAfterOverrideGraceDurationVnp = '{{ isForceDeletionAfterOverrideGraceDurationVnp }}'
;