tencent cloud

Tencent Kubernetes Engine

NVIDIA GPU Overview

Unduh
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-11-13 21:02:45
Diterjemahkan oleh AI

Introduction

Component Description

This component helps run containers that require GPU resources by automatically discovering NVIDIA GPUs (nvidia.com/gpu) on nodes as schedulable resources. It also supports automatic deployment of monitoring exporters, providing GPU monitoring at the card, Pod, and container levels.

Kubernetes Objects Deployed in a Cluster

Kubernetes Object Name
Type
Default Resource Usage
Associated Namespaces
nvidia-device-plugin-daemonset
DaemonSet
0.1-core CPU, 100 MB memory
kube-system
nvidia-gpu-exporter
DaemonSet
0.1-core CPU, 100 MB memory
kube-system
nvidia-gpu-exporter
ServiceAccount
-
kube-system
nvidia-gpu-exporter
ClusterRole
-
-
nvidia-gpu-exporter
ClusterRoleBinding
-
-
nvidia-gpu-exporter
Service
-
kube-system

Limits

Supports clusters running Kubernetes 1.16 or later.

Component Permissions

Permission Description

The permissions of this component are the minimum permission dependencies required for the current feature implementation.

Permission Scenarios

Function
Involved Object
Operation Permission Involved
Track and obtain node information to determine the video memory unit.
Nodes
get, list, watch
Track and obtain Pod information to determine the GPU Pod information for which metrics need to be collected.
Pods
get, list, watch

Permission Definition

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: nvidia-gpu-exporter
rules:
- apiGroups:
- ""
resources:
- pods
- nodes
verbs:
- get
- list
- watch

Usage

Installation

If you have created GPU nodes in the cluster and have not enabled the qgpu feature, the platform will automatically install this component. You can then go to the Component Management page of the cluster to manage it.
If your cluster already has GPU nodes and you want to collect basic GPU monitoring data, follow these steps to install it:
1.1 Log in to the TKE console and select Clusters in the left sidebar.
1.2 In the cluster list, click the target cluster ID to go to the cluster details page.
1.3 In the left sidebar, choose Component Management. On the displayed page, click Create.
1.4 On the Create Component page, select nvidia-gpu.
1.5 Click Complete.
Attention:
When you install this component for the first time in a cluster that already has GPU nodes, check whether the DaemonSet nvidia-device-plugin-daemonset already exists in the cluster. If it does, delete the DaemonSet before installing the nvidia-gpu component. Deleting the DaemonSet does not affect existing running GPU business Pods, and GPU Pods created during installation will run automatically after the installation is complete.

Viewing Monitoring Data

You can view GPU monitoring data related to cards/Pods/containers through the basic monitoring provided by the console. For details, see Viewing Monitoring Data.
Attention:
Component version limit: To view GPU monitoring, you need to upgrade the monitor-agent component to version 1.3.11 or later. For component details, see tke-monitor-agent description.

Monitoring Metric

GPU Card Metrics

The metrics for a GPU card are as follows:
gpu_core_usage{card="0",node="10.0.66.4"} 0
Note:
"card" indicates the GPU sequence number, and "node" indicates the node where the GPU resides.
gpu_xxx
GPU Metrics
gpu_count
Number of GPU cards.
gpu_mem_per_card
Memory size of a single GPU card (in MiB). Note that the memory size of the first GPU card is used here. In most cases, the memory size of each card is the same when multiple cards are used. However, if ECC is not enabled on some cards, the memory size may be inconsistent. It is recommended that ECC be enabled on all cards.
gpu_core_usage
GPU compute power actually used (unit: 1%; the value is 100 when all compute power is used).
gpu_mem_usage
GPU memory actually used (in MiB).
gpu_core_utilization_percentage
GPU compute utilization.
gpu_mem_utilization_percentage
GPU memory utilization.
gpu_mem_unit_mb
Memory size per qgpu-memory unit (in MiB), typically 1024 or 128.
gpu_enc_utilization_percentage
GPU encoding resource utilization.
gpu_dec_utilization_percentage
GPU decoding resource utilization.

Pod Metrics

The metrics for a Pod are as follows:
pod_core_usage{namespace="default",node="10.0.66.4",pod="7a2fa737-eef1-4801-8937-493d7efb16b7"} 0
Note:
"namespace" indicates the namespace where the Pod resides, "node" indicates the node where the Pod resides, and "pod" indicates the name of the Pod.
pod_xxx
pod Metric
pod_core_usage
Compute power actually used by the pod (unit: 1%; the value is 100 when all compute power is used).
pod_mem_usage
GPU memory actually used by the pod (in MiB).
pod_core_utilization_percentage
Percentage of requested compute power actually used by the pod.
pod_mem_utilization_percentage
Percentage of requested GPU memory actually used by the pod.
pod_core_occupy_node_percentage
Percentage of node compute power actually used by the pod.
pod_mem_occupy_node_percentage
Percentage of node GPU memory actually used by the pod.
pod_core_request
Compute power requested by the pod (unit: 1%).
pod_mem_request
GPU memory requested by the pod (in MiB).
pod_enc_utilization_percentage
pod GPU encoding resource utilization.
pod_dec_utilization_percentage
pod GPU decoding resource utilization.

Container Metrics

The metrics for a container are as follows:
container_gpu_utilization{container="cuda",namespace="default",node="10.0.66.4",pod="cuda"} 0
Note:
"container" indicates the container name, "namespace" indicates the namespace where the container resides, "node" indicates the node where the container resides, and "pod" indicates the name of the Pod where the container resides.
container_xxx
Container Metric
container_gpu_utilization
Compute power actually used by the container (unit: 1%).
container_gpu_memory_total
GPU memory actually used by the container (in MiB).
container_core_utilization_percentage
Percentage of requested compute power actually used by the container.
container_mem_utilization_percentage
Percentage of requested GPU memory actually used by the container.
container_request_gpu_memory
GPU memory requested by the container (in MiB).
container_request_gpu_utilization
Compute power requested by the container (unit: 1%).
container_enc_utilization_percentagek8s_container_enc_util
Container GPU encoding resource utilization.
container_dec_utilization_percentagek8s_container_dec_util
Container GPU decoding resource utilization.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan