Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
Google Cloud Platform icon
Labs

Hands-On with the Kubernetes API

In this hands-on lab, you will go beyond kubectl to interact directly with the Kubernetes API server using raw HTTP requests. Starting with a running cluster, you will map the API's hierarchical structure to understand how resources are organized across Core and Named API groups. You will then manage the full lifecycle of Kubernetes resources through direct HTTP calls, applying advanced patching strategies and resolving concurrency conflicts. Finally, you will architect an event-driven interaction pattern using the API's watch mechanism to track cluster state changes in real time, handling disconnections and maintaining synchronization using bookmarks.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Mar 05, 2026
Duration
1h 15m

Contact sales

By clicking submit, you agree to our Privacy Policy and Terms of Use, and consent to receive marketing emails from Pluralsight.
Table of Contents
  1. Challenge

    Navigate the Kubernetes API Structure
    • Start kubectl proxy and query the API root to confirm unauthenticated local access to the control plane.
    • Query /api and /apis to distinguish Core resources from Named API groups and identify preferred versions.
    • Retrieve the OpenAPI v3 specification for the Pod and Container schemas to identify required fields and validation constraints.
  2. Challenge

    Manage Resource Lifecycle with Raw HTTP
    • Create a Pod by sending a POST request with a JSON manifest and verify its Running status with a GET request using the resource URI.
    • Apply a Strategic Merge Patch to add labels without removing existing ones, then apply a JSON Merge Patch to a Deployment to observe how it replaces entire lists and loses unspecified fields.
    • Trigger a 409 Conflict by attempting a PUT with a stale resourceVersion, then resolve it using the read-modify-write pattern with a fresh resourceVersion.
  3. Challenge

    Watch Cluster State in Real Time
    • Open a persistent watch connection and create, label, and delete a Pod to capture ADDED, MODIFIED, and DELETED events in the stream.
    • Compact etcd to purge watch history, attempt to resume from an old resourceVersion to trigger a 410 Gone, and recover using the list-then-watch pattern.
    • Enable watch bookmarks to receive BOOKMARK checkpoint events, then extract the last resourceVersion to demonstrate efficient watch resumption without a full re-list.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight