VISI

Kubernetes core concepts

Kubernetes (K8s) is the primary container orchestration system for AI workloads. NVIDIA exposes GPUs as extended resources via the Device Plugin.

Key objects:

ObjectDescription
PodSmallest deployable unit; one or more containers
DeploymentManages a ReplicaSet; desired state for pods
ServiceStable network endpoint for pods
NamespaceVirtual cluster for resource isolation
NodePhysical or virtual machine in the cluster
DaemonSetRuns one pod per node (used for GPU drivers)
JobRun-to-completion workload
CronJobScheduled Job
PersistentVolumeClaim (PVC)Pod's request for storage

GPU pod manifest:

apiVersion: v1
kind: Pod
metadata:
  name: gpu-pod
spec:
  containers:
  - name: cuda-container
    image: nvcr.io/nvidia/cuda:12.0-base
    resources:
      limits:
        nvidia.com/gpu: 1

Study tools

Mark this unit complete when you finish it.