Skip to content
Lab 1 of 3

Deploy, Expose & Scale an App

Run your first workload on a real Kubernetes cluster: create a Deployment, expose it with a Service so traffic can reach the pods, and scale it out to multiple replicas with a single command.
  • Intermediate
  • 45 min
  • Kubernetes
  • kubectl
  • Deployments
  • DevOps

Overview

Kubernetes is the standard way to run containers in production, and it all starts with three objects: a Deployment (which keeps a set of identical pods running), a Service (a stable address that load-balances across them), and the replica count you scale up and down.

This lab gives you a genuine single-node cluster (k3s — kubectl get nodes shows it). You'll deploy an nginx app, watch Kubernetes schedule the pod, put a Service in front of it so it has stable networking, and scale to three replicas. By the end you've done the core loop every platform engineer runs a hundred times a week.

What you will learn

  • Confirm a running cluster with kubectl get nodes
  • Create a Deployment and watch Kubernetes schedule its pod
  • Expose a Deployment behind a Service with stable networking
  • Scale a Deployment to multiple replicas
  • Read object status with kubectl get and -o jsonpath

Before you start

  • You understand what a container is (the Docker track helps)
  • Comfortable in a Linux shell
  • No Kubernetes experience needed — the cluster is already running

Tasks

  1. 01Deploy nginx
  2. 02Expose it with a Service
  3. 03Scale out to three replicas

Next in this course