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.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 |
dcu=on, the node will use vDCU mode. Nodes without labels may not be scheduled correctly.ClusterRole and ClusterRoleBinding.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 |
ClusterRole permission declarations for each core module of the Hygon DCU component are summarized as follows:# 1. dcu-label-node PermissionsapiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:name: cr-node-labellerrules:- apiGroups: [""]resources: ["nodes"]verbs: ["watch", "get", "list", "update"]---# 2. dcu-exporter PermissionsapiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:name: dcu-exporterrules:- apiGroups: ["", "storage.k8s.io"]resources: ["pods"]verbs: ["*"]---# 3. vdcu-admission-webhook Permissions (vdcu mode only)apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:name: admission-webhook-dcu-crrules:- 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/v1kind: ClusterRolemetadata:name: vdcu-scheduler-pluginrules:- 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"]
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. |
global:image:host: shadcccr.ccs.tencentyun.comrepo: 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: binpackgpuSchedulerPolicy: spreadsleepTime: "0"
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários