Managing Autoscaling
Learn how to validate, monitor, scale, and remove autoscaling nodes.
Control-Plane Scheduling When Static Workers Are Disabled
Autoscaling is supported on OpenShift Container Platform 4.22 and later. Use an RHCOS worker image that matches the OpenShift Container Platform minor version of the cluster.
When a cluster is installed with autoscaling enabled and no static workers, control-plane nodes can receive the worker role and remain schedulable. Workloads scheduled on control-plane nodes can satisfy pending demand and prevent autoscaler scale-up. After dedicated autoscaled workers are ready, follow Red Hat solution 4564851 to remove the worker role from control-plane nodes.
Validating Autoscaling
From the Console, use the following commands to validate that your autoscaling nodes are operating:
oc get ns oci-openshift-autoscaling-operator
oc get pods -n oci-openshift-autoscaling-operatorMonitoring Autoscaling
To investigate or monitor the instance provisioning process:
These are the most common failure signals:
# No new Machine:
oc logs -n ${STACK_NAMESPACE} deployment/oci-cluster-autoscaler --tail=500
# Machine exists, but OCIMachine has no providerID:
oc describe ocimachine.infrastructure.cluster.x-k8s.io -n ${STACK_NAMESPACE} ${OCI_MACHINE_NAME}
oc logs -n ${STACK_NAMESPACE} deployment/capoci-controller-manager --tail=500
# OCI instance exists, but no OpenShift node joined:
oc get csr
oc get nodes
oc get mcp
oc get co machine-configIf an instance is provisioned but not able to join the cluster, in the OCI Console, select OS Management and check the Console History. Here you can review OS-level error messages.
Scaling Up or Down
Use the following commands to monitor the scaling up and down of your autoscaling resources:
oc get machinedeployments.cluster.x-k8s.io -n oci-openshift-autoscaling-operator
oc get machinesets.cluster.x-k8s.io -n oci-openshift-autoscaling-operator
oc get machines.cluster.x-k8s.io -n oci-openshift-autoscaling-operator -o wide
oc get nodesTo modify the minimum and/or maximum number of nodes in your autoscaling instance:
Removing Resources
You can remove existing autoscaling instances by using clean-up scripts provided at https://github.com/oracle-quickstart/oci-openshift/blob/main/docs/AUTOSCALER.md.