AI teams increasingly run training and inference on Kubernetes, and the platform team is expected to make GPUs available safely and efficiently. The good news: it builds directly on skills you already have (scheduling, resources, node management). This guide covers the concepts at admin level; check your GPU vendor’s and Kubernetes’ documentation for exact versions and commands.

1. How GPUs reach a Pod

  • Drivers on the node: the GPU driver and container toolkit must be installed on GPU nodes (vendors offer operators that automate this).
  • Device plugin: a vendor device plugin runs on each GPU node and advertises GPUs to Kubernetes as an extended resource (for NVIDIA, nvidia.com/gpu).
  • Pods request them: a container asks for GPUs in its resources, for example limits: { nvidia.com/gpu: 1 }. Extended resources are whole units and aren’t overcommitted the way CPU can be.
  • Newer option: Kubernetes’ Dynamic Resource Allocation (DRA) API gives richer ways to request and share devices; check whether your cluster version and vendor support it.

Get Linux Foundation exam tips & real deals

Get new Linux Foundation exam guides and real LF promotions by email.

2. Scheduling GPU work sensibly

  • Keep CPU-only Pods off GPU nodes: taint GPU nodes (for example gpu=true:NoSchedule) and add tolerations only to GPU workloads.
  • Target the right hardware: label nodes by GPU type and use nodeSelector or node affinity.
  • Quotas per team: ResourceQuota can cap GPU requests per namespace so one team can’t take every GPU.
  • Batch queues: for training jobs, a queueing system (for example the Kubernetes-native Kueue project) lets jobs wait their turn instead of failing.

All of these are CKA-level skills (taints, tolerations, affinity, quotas) applied to expensive hardware. If you can do these practice tasks, you’re most of the way there.

3. Sharing GPUs

A whole GPU per small inference Pod is wasteful. Common approaches, depending on hardware and vendor support:

  • Time-slicing: several Pods share one GPU in turns (no memory isolation).
  • Hardware partitioning (for example NVIDIA MIG on supported GPUs): a GPU split into isolated slices.
  • DRA-based sharing where supported. Choose based on isolation needs: shared development notebooks tolerate time-slicing; production inference often needs partitions.

4. Serving models

  • Models are typically served as Deployments behind a Service, often through a model-serving framework (for example KServe in the CNCF ecosystem).
  • Use readiness probes (models can take minutes to load), resource limits, and autoscaling on request load.
  • Store model files on shared storage or pull them at start-up; plan for their size.

5. Operating it

  • Monitor GPU usage (vendor exporters feed Prometheus; see PCA) to catch idle, expensive GPUs.
  • Cost control: scale GPU node pools to zero when idle where your platform allows it.
  • Security: GPU workloads often handle sensitive data and models: least-privilege RBAC, network policies, image scanning (CKS territory).

What to practise

  1. On a cloud GPU instance or a lab machine with a GPU, install the vendor operator/device plugin and run a Pod that requests one GPU.
  2. Taint the GPU node, prove CPU Pods stay off it, and add a toleration to the GPU Pod.
  3. Add a namespace quota for GPUs and test it.
  4. Deploy a small model server with a readiness probe and autoscaling. No GPU available? Do steps 2–3 with a fake extended resource or a labelled node; the scheduling concepts are identical.
Check the current CKA price and bundles on the Linux Foundation site

Where this fits in your career

Running AI infrastructure is a Mastery-to-Leadership skill on the ITRise career path. Start from Kubernetes runs AI infrastructure, prove the fundamentals with CKA, then grow toward platform engineering.

Take Action Now

You've Read the Article. Now Take the Next Step.

Get new Linux Foundation exam guides and real LF promotions by email. Free, double opt-in, unsubscribe anytime.

New Linux Foundation exam guides
Study plans for LFCS / CKA / CKAD
Real LF promotions only
Career-stage tips

Proven strategies that land six-figure tech jobs. No spam, ever.