public void scaleByNum(final int replicaCount) {
        try {
            V1Scale scale = new V1Scale();
            Objects.requireNonNull(scale.getSpec()).setReplicas(replicaCount);

            appsV1Api.replaceNamespacedDeploymentScale(
                    deploymentProperties.getName(),
                    deploymentProperties.getNamespace(),
                    scale,
                    // pretty
                    null,
                    // dryRun
                    null,
                    // fieldManager
                    null,
                    // fieldValidation
                    null
            );

        } catch (ApiException e) {
            LOG.error("Failed to scale deployment. Cause: {}", e.getMessage());
        }
    }
scale by number.

@param replicaCount replicaCount
shenyu-admin/src/main/java/org/apache/shenyu/admin/scale/scaler/KubernetesScaler.java