Minimal objects to expose a stateless app
WHAT IT TESTS: mapping requirements to core objects. OUTLINE: a Deployment to run and self-heal replicas plus a Service to give a stable endpoint, exposed externally via type LoadBalancer or NodePort, or an Ingress.
WHAT IT TESTS: whether you can choose the minimal correct objects and justify them. ANSWER OUTLINE: a Deployment manages the stateless Pod replicas and recreates them on failure; a Service provides a stable virtual IP and load-balances across the Pods despite their changing IPs. To reach it from outside, use a Service of type LoadBalancer or NodePort, or front it with an Ingress for HTTP routing. RED FLAG: pointing clients at an individual Pod IP, or reaching for a StatefulSet when no state is involved.
Read the original → interview
- #kubernetes
- #deployment
- #service
- #networking
- #fundamentals
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.