GKE Workload Deployment: Deploy, Expose, Scale, and Roll Out
Advanced · 30 minutes · 5 tasks, checked automatically · 100 points
In this advanced hands-on lab you will work entirely inside a local GCP emulator sandbox. You will create a GKE cluster, deploy a containerised workload using a Kubernetes Deployment, expose it via a Kubernetes Service, scale the Deployment up, and finally perform a rolling update to a new container image — all using `kubectl` and `gcloud` commands wired to the local emulator. No real cloud account or billing is involved.
What you’ll learn
- Create a GKE cluster using the local emulator and obtain cluster credentials
- Deploy a workload to the cluster using a Kubernetes Deployment manifest and expose it with a Service
- Scale the Deployment to multiple replicas and perform a rolling image update, then verify rollout status
How this lab works
- Start the lab: One click starts an emulated cloud on your computer, with the cloud’s own CLI ready: no account and no bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads the emulated cloud’s resources and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: An emulated cloud on your computer: no cloud account, no bill
- Cloud: GCP
- Services: GKE
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A GCP sandbox created in the Local Cloud Playground
Topics: gke, kubernetes, deployment, service, scaling, rolling-update, kubectl, gcp, containers
Create a free account to start this lab.
Keep going
- Deploy, Scale, and Roll Out a New Image on AKS
- Deploy, Scale, and Roll Out Updates on OKE
- Deploy and Rolling-Update a Workload on EKS
- Compose Multi-Stack CloudFormation with Exports, Imports and Nested Stacks
- Incident Response: Contain a Leaked IAM Access Key
- Provision S3 and DynamoDB from a Single CloudFormation Stack