Materials by Shiva Swaroop N K

Explore tutorials, challenges, courses, and more published by this author.

Tutorials by Shiva Swaroop N K

See all →
Tutorial

How Kubernetes CRDs Work: Designing a Validated API From Scratch

Build a CustomResourceDefinition for a small Pet API one layer at a time, and see how much the API server does with it on its own. By the end, it rejects invalid Pets, fills in defaults, keeps status separate, and prints useful columns. No controller and no code needed.

How Kubernetes CRDs Work: Designing a Validated API From Scratch (cover image)
Tutorial

How Kubernetes Operators Work: Building a Controller From Scratch

Build a Kubernetes operator for a small Pet API, first as a 15-line bash loop and then as a Go controller with controller-runtime. Every Pet gets a Pod to live in, gets hungry as time passes, and runs away if nobody feeds it. Along the way, you'll see how the reconcile loop works.

How Kubernetes Operators Work: Building a Controller From Scratch (cover image)

Challenges by Shiva Swaroop N K

See all →
Challenge

Issue Per-Pod mTLS Certificates with PodCertificateRequest

Kubernetes 1.37 can hand every pod its own short-lived X.509 identity, no service mesh and no sidecar involved. The API is served out of the box, but it issues nothing without a signer, and a request nobody answers leaves the pod waiting forever. Get a stalled workload its certificates, give its client an identity of its own, and make the server actually enforce mutual TLS.

Challenge

CKA Practice: Recover a NotReady Node After a Kubelet Configuration Error

A worker node dropped to NotReady and part of the workload went with it. The container runtime is fine and the control plane is healthy; the trail leads from kubectl symptoms down into systemd and the kubelet configuration. Diagnose the node and bring it back.

Challenge

CKA Practice: Recover a Broken Static Control-Plane Pod

Every kubectl command against a kubeadm cluster fails, and the workload is still serving. With no API to query, the usual tools tell you nothing. Work from the node itself to find what broke and bring the control plane back.

Challenge

CKA Practice: Renew Expiring Control Plane Certificates

kubectl is dead: the kube-apiserver certificate expired and the control plane is down, while the workload quietly keeps serving. Diagnose the expiry offline, renew the certificates, bring the control plane back, and prove the cluster recovered.

Challenge

CKA Practice: Migrate an Ingress to Gateway API

An app in the web namespace is served over HTTPS by an ingress-nginx Ingress. Create a Gateway and HTTPRoute on a staging hostname, verify traffic, move the production hostname to the Gateway, and remove the Ingress without downtime.