Creating a Virtual Node Pool
Find out how to create a virtual node pool using Kubernetes Engine (OKE).
You can create virtual node pools when you create a new enhanced cluster using the Console (see Creating Kubernetes Clusters Using Console Workflows and Creating Virtual Nodes and Virtual Node Pools in a New Cluster).
You can also create new virtual node pools in an existing enhanced cluster to scale up the cluster (see Adding Node Pools to Scale Up Clusters).
You can create new virtual node pools using the Console, the CLI, and the API.
You can create virtual node pools using the Console:
- When you create a new enhanced cluster using one of the Console workflows (see Creating Kubernetes Clusters Using Console Workflows).
- When you want to scale up an existing enhanced cluster by adding additional node pools (see Adding Node Pools to Scale Up Clusters).
Use the oci ce virtual-node-pool create command and required parameters to scale up an enhanced cluster by adding a virtual node pool:
oci ce virtual-node-pool create \ --cluster-id <cluster-ocid> \ --compartment-id <compartment-ocid> \ --display-name <node-pool-name> \ --kubernetes-version <kubernetes-version> \ --placement-configurations "[{\"availabilityDomain\":\"<ad-name>\",\"faultDomain\":[\"FAULT-DOMAIN-<n>\"],\"subnetId\":\"<virtualnode-subnet-ocid>\"}]" \ --nsg-ids "[\"<virtual-node-nsg-ocid>\"]" \ --pod-configuration "{\"subnetId\":\"<pod-subnet-ocid>\",\"nsgIds\":[\"<pod-nsg-ocid>\"],\"shape\":\"<shape-name>\"}" \ --size <number-of-nodes>
where:<ad-name>
is the name of the availability domain in which to place virtual nodes. To find out the availability domain name to use, run:oci iam availability-domain list
<shape-name>
is one ofPod.Standard.E3.Flex
,Pod.Standard.E4.Flex
.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Run the CreateVirtualNodePool operation to scale up an enhanced cluster by adding a virtual node pool.