Cloud Native 11 min read

Unlock Elastic Scaling: Connect Your IDC Kubernetes to Alibaba Cloud ACK One Registration Cluster

This guide explains how enterprises can overcome IDC data‑center capacity limits by registering on‑premises Kubernetes clusters to Alibaba Cloud ACK One, detailing architecture, resource‑elastic benefits, step‑by‑step integration, node‑pool creation, GPU script setup, virtual node deployment, and multi‑level scheduling with concrete commands.

Alibaba Cloud Native
Alibaba Cloud Native
Alibaba Cloud Native
Unlock Elastic Scaling: Connect Your IDC Kubernetes to Alibaba Cloud ACK One Registration Cluster

Background and Challenge

Traditional IDC data‑center Kubernetes clusters are limited by physical capacity, making dynamic scaling difficult. ACK One registration clusters provide a cloud‑native way to extend resources on‑demand.

Advantages

Resource elasticity: Integrate on‑premises workloads with Alibaba Cloud resources for on‑demand compute expansion.

Cost optimization: Pay‑as‑you‑go pricing avoids sunk IDC costs.

Architecture Overview

ACK One registration cluster architecture diagram
ACK One registration cluster architecture diagram

The architecture connects an on‑premises Kubernetes cluster to an ACK One registration cluster, enabling unified management and cloud‑side elasticity.

Integration Steps

Create a registration cluster via console or CLI (see Alibaba Cloud documentation).

Deploy ack-cluster-agent on the IDC Kubernetes cluster.

Verify the agent is running:

kubectl -n kube-system get pod | grep ack-cluster-agent

Expected output shows the pod in Running state.

Creating a Cloud Node Pool

The node pool supports Elastic Container Instance (ECI), Elastic Compute Service (ECS), and GPU instances.

Prepare a custom script for GPU detection and driver installation:

#!/bin/bash
if ! which lspci &>/dev/null; then
  yum -y install pciutils
fi
if lspci | grep -i nvidia &>/dev/null; then
  echo "This node is a GPU node, install drivers."
fi

Configure the script in the registration cluster’s node‑pool settings.

Create the node pool and trigger scaling.

Verify new cloud nodes: kubectl get no Nodes named <RegionID>.<IP> are cloud‑provisioned ECS instances.

Deploying Pods to the Cloud Node Pool

Example deployment using a node selector:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment-cloud
  namespace: default
spec:
  replicas: 2
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      nodeSelector:
        alibabacloud.com/nodepool-id: np6d13af2bb56546128***
      containers:
      - name: nginx
        image: registry.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.14.2
        ports:
        - containerPort: 80
        resources:
          limits:
            cpu: 500m

Scenario II – ACK Virtual Node (ECI)

Virtual nodes run Pods directly on Elastic Container Instances without managing ECS nodes.

Install the ack-virtual-node component via console or CLI.

Check deployment status: kubectl get no Virtual nodes appear with names like virtual-kubelet-....

Schedule a Pod to ECI by adding label alibabacloud.com/eci=true:

kubectl run nginx --image=registry.cn-hangzhou.aliyuncs.com/eci_open/nginx:1.14.2 -l alibabacloud.com/eci=true

Scenario III – ack‑co‑scheduler for Multi‑Level Elastic Scheduling

The ack-co-scheduler enables hierarchical scheduling: IDC resources first, then cloud node pool, then ECI.

Install ack-co-scheduler via console or CLI.

Create a ResourcePolicy to prefer IDC, then ECS node pool:

apiVersion: scheduling.alibabacloud.com/v1alpha1
kind: ResourcePolicy
metadata:
  name: scheduled-to-node-pool
spec:
  selector:
    app: nginx
  strategy: prefer
  units:
  - resource: idc
  - resource: ecs
    nodeSelector:
      alibabacloud.com/nodepool-id: np6d13af2bb...

Create a second ResourcePolicy to fall back to ECI:

apiVersion: scheduling.alibabacloud.com/v1alpha1
kind: ResourcePolicy
metadata:
  name: scheduled-to-eci
spec:
  selector:
    app: nginx
  strategy: prefer
  units:
  - resource: idc
  - resource: eci

Conclusion

ACK One registration clusters, cloud node pools, virtual nodes, and the ack‑co‑scheduler enable hybrid‑cloud Kubernetes deployments with elastic scaling, cost‑effective resource utilization, and automated multi‑level scheduling.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

KubernetesAlibaba CloudVirtual NodeACK OneMulti-level SchedulingNode Pool
Alibaba Cloud Native
Written by

Alibaba Cloud Native

We publish cloud-native tech news, curate in-depth content, host regular events and live streams, and share Alibaba product and user case studies. Join us to explore and share the cloud-native insights you need.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.