tencent cloud

Tencent Kubernetes Engine

DCU Component Description

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-10-23 16:19:17
Diterjemahkan oleh AI

Introduction

Component Description

The Hygon DCU component (component identifier: dcu-gpu) is used to manage and schedule Hygon DCU (Deep Computing Unit) accelerator card resources in Tencent Cloud TKE clusters. The component supports full-card allocation and virtualized allocation, helping you utilize underlying domestic computing resources more efficiently, and provides standard Prometheus device monitoring metrics.

Kubernetes Objects Deployed in a Cluster

Object name
Type
Feature Description
Associated Namespaces
dcu-label-node
DaemonSet
Automatically detect and label nodes with Hygon DCU devices in the cluster.
kube-system
dcu-device-plugin
DaemonSet
A basic Device Plugin that registers and reports entire DCU card resources to kubelet. This takes effect only in full-card mode.
kube-system
dcu-device-plugin-hami
DaemonSet
A HAMi-based Device Plugin that handles resource partitioning and registration for vDCU virtual computing power. This takes effect only in vDCU mode.
kube-system
vdcu-admission-webhook
Deployment
An interceptor that automatically injects vDCU-related environment variables and resource configurations into business Pods.
kube-system
vdcu-scheduler-plugin
Deployment
A custom scheduler that supports resource scheduling at the vDCU node and card level through binpack or spread policies.
kube-system
dcu-exporter
DaemonSet
DCU device metrics collector that exposes monitoring metrics in standard Prometheus format.
kube-system

Scenarios

Based on different business requirements within the cluster, the DCU component supports the following operating modes and their corresponding use cases:
Full-card mode (full): Allocates an entire DCU card as an exclusive resource to a business container, and schedules it to all DCU nodes in the cluster by default. This mode is suitable for single-application scenarios that require extremely high computing power and do not need resource sharing.
Virtualization mode (vdcu): Implemented based on HAMi, virtualizes a single DCU card into multiple vDCUs and supports multiple containers sharing the computing power and memory of the same DCU card. This mode is suitable for scenarios that require fine-grained GPU resource allocation, such as inference services and lightweight training, to improve resource utilization.

Limits

Cluster version: Only clusters running Kubernetes 1.16 or later are supported.
Underlying environment dependencies: The component is deployed as a DaemonSet on nodes with DCU devices. Ensure that the Hygon DCU driver and HyHAL runtime environment have been installed on the relevant nodes in advance.
Node label restrictions for virtualization mode: When using virtualization mode (vdcu), make sure to label nodes correctly to distinguish the mode. If a node is labeled with dcu=on, the node will use vDCU mode. Nodes without labels may not be scheduled correctly.

Component Permission Description

Permission Description

The Hygon DCU component requires specific Kubernetes RBAC permissions to run within a cluster, enabling automatic labeling of node DCU devices, admission injection of vDCU resources, scheduling control, and device monitoring metric collection. The component grants the corresponding permissions to each submodule by automatically creating the associated ClusterRole and ClusterRoleBinding.

Permission Scenarios

Feature Module
Involved Object
Involved Operation Permissions
Automatic node labeling (dcu-label-node)
nodes
get,list,watch,update
Metric collection (dcu-exporter)
pods
* (Full permissions)
Admission control (vdcu-admission-webhook)
pods, deployments, daemonsets, nodes, and other workload resources; mutatingwebhookconfigurations, and others
* (Full workload permissions); get, list, create, update, delete, patch, watch, and others
Resource scheduling (vdcu-scheduler-plugin)
pods, nodes, endpoints, bindings, events, namespaces, and others
get, list, watch, update, patch, create, delete, and others

Permission Definition

The complete ClusterRole permission declarations for each core module of the Hygon DCU component are summarized as follows:
# 1. dcu-label-node Permissions
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cr-node-labeller
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["watch", "get", "list", "update"]
---
# 2. dcu-exporter Permissions
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: dcu-exporter
rules:
- apiGroups: ["", "storage.k8s.io"]
resources: ["pods"]
verbs: ["*"]
---
# 3. vdcu-admission-webhook Permissions (vdcu mode only)
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: admission-webhook-dcu-cr
rules:
- apiGroups: ["sugon.com"]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["", "apps", "autoscaling", "storage.k8s.io"]
resources: ["pods", "events", "deployments", "daemonsets", "replicasets", "statefulsets", "pvc", "persistentvolumes", "persistentvolumeclaims", "storageclasses", "nodes", "secrets"]
verbs: ["*"]
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["mutatingwebhookconfigurations"]
verbs: ["get", "list", "create", "delete", "update", "patch", "watch"]
---
# 4. vdcu-scheduler-plugin Permissions (vdcu mode only)
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: vdcu-scheduler-plugin
rules:
- apiGroups: [""]
resources: ["endpoints", "events", "nodes", "pods", "bindings", "pods/binding", "pods/status", "replicationcontrollers", "services", "persistentvolumeclaims", "persistentvolumes", "configmaps", "namespaces"]
verbs: ["create", "delete", "get", "list", "patch", "update", "watch"]
- apiGroups: ["apps", "extensions", "policy"]
resources: ["replicasets", "statefulsets", "poddisruptionbudgets"]
verbs: ["get", "list", "watch"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses", "csinodes", "csistoragecapacities", "csidrivers"]
verbs: ["get", "list", "watch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["create", "get", "list", "update"]
- apiGroups: ["events.k8s.io"]
resources: ["events"]
verbs: ["create", "patch", "update"]
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["mutatingwebhookconfigurations"]
verbs: ["delete", "get"]

Component Parameter Description

You can customize the component during installation or update by configuring component parameters or modifying the YAML file.

Component Parameter Options

Parameter Name
Default Value
Description
mode
full
Deployment mode. Optional values: full (full-card mode), vdcu (vDCU mode).
config.exporterPort
16080
Prometheus metrics collection port exposed by dcu-exporter.
config.logThreshold
INFO
Default level of component output logs.
vdcuScheduler.nodeSchedulerPolicy
binpack
Takes effect only in vdcu mode. Scheduling policy of vDCU at the node dimension (binpack centralized / spread distributed).
vdcuScheduler.gpuSchedulerPolicy
spread
Takes effect only in vdcu mode. vDCU scheduling policy across multiple cards on the same node.

Configuration Example

global:
image:
host: shadcccr.ccs.tencentyun.com
repo: tkeimages
# Specify the component operating mode, for example, vdcu (vDCU mode)
mode: "vdcu"

config:
exporterPort: "16080"
pulse: "30"
logThreshold: "INFO"
logVerbose: "2"
logOutput: "true"

vdcuScheduler:
nodeSchedulerPolicy: binpack
gpuSchedulerPolicy: spread
sleepTime: "0"


Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan