Skip to content

Details

In Session 1 you typed commands. Real teams do not. In this session you will describe what you want in a YAML file and let Kubernetes make it true, which is how production clusters are managed.

What we will do

Write a Deployment and Service as YAML and deploy them with kubectl apply

Preview changes with kubectl diff before they happen

Use labels and selectors to see how a Service finds its Pods

Cause drift on purpose and watch apply bring the cluster back to the file

No cloud account and no cost. Everything runs locally on your laptop (same kind cluster as Session 1).

What you will learn

Declarative vs imperative: the file is the source of truth

Labels and selectors: the glue between Deployments, Pods, and Services

A safe change workflow: edit, diff, apply, verify

How to prepare (10-20 minutes)

Setup guide: https://www.aanpatel.tech/community/k8s-setup/ (pick your OS tab).

Verify: docker ps, kubectl version --client, and kind version all run.

Cluster: reuse your Session 1 cluster, or run kind create cluster --name k8s-learning and check kubectl get nodes shows Ready.

Missed Session 1? You can still follow along.

During the session

Keep two terminals open

Join 10 minutes early for setup help

Questions go in the event chat

Who should attend
Developers, students, and engineers who have run a first Deployment (Session 1 or equivalent).

About the series
Weekly 1-hour sessions. Next up: rolling updates and rollbacks. Attend one or all.

Agenda

---

Speaker

Aan Patel

Please visit https://aanpatel.tech; for a complete bio

Hosted By

Aan Patel, GDG Organizer

Hi! 👋

I'm a full-stack software developer. In my free time, I enjoy playing with new technologies, building prototypes, and connecting with others on platforms such as this one to grow my skills and share knowledge.

Thanks for stopping by. Visit https://aanpatel.tech to learn more about me or to get in touch!

Tobenna Okunna, Organizer

Hi all, my name is Tobenna Okunna. I build apps, primarily aimed at addressing material needs and improving outcomes for under-served communities.

Im looking forward to collaborating and learning with the engineering community.

A little bit about me:

  • Originally from Nigeria
  • Graduated w/ a CS degree from the University of San Diego in 2020
  • Lead teams at multiple startup
  • I have tons of side projects
  • Played D1 football
  • I'm an avid weightlifter

Complete your event RSVP here: https://gdg.community.dev/events/details/google-gdg-chapel-hill-presents-kubernetes-learning-series-session-2-desired-state-as-yaml/.

You may also like