B Connect to Oracle Kubernetes Engine
You can use the OCI command line interface (CLI) to access an Oracle Kubernetes Engine (OKE) cluster.
The following instructions assume that a
kubeconfig file is already available.
If kubectl returns a 401 or 403 error, verify that your identity and access management (IAM) policies allow you to use and manage a cluster family in the compartment, and that your
kubeconfig file was generated for the correct cluster and region.
To scale your OKE cluster, complete the following steps.
- In the OCI console, select your OKE cluster and then select Node pools.
- Select the node pool that you want to scale.
- From the Actions menu, select Edit. The Edit node pool page is displayed.
- Make changes as needed to the node count or node shape. To change the node shape (which affects the number of OCPUs and the amount of memory), select Change shape.
- Select Update to confirm your changes.
- From the Actions menu, select Cycle nodes to apply the updated configuration. The Cycle nodes page is displayed.
- Under Cycling options, select Replace nodes. Enter numbers for Maximum surge and Maximum unavailable, then select Cycle nodes. When the state of the node pool is updated to Active, the scaling is complete.
Alternately, if you installed by deploying a stack, you can click Destroy to delete your current stack in the OCI console. and then select to edit the stack definition to change the node count or node shape as needed. Select Run apply and Save changes to create a stack that uses the new parameters.