İçeriğe Atla
Mustafa Erbay
Technology kubernetes-uretim-guvenlik · 9 min read · görüntülenme Türkçe oku
100%

Microservice Architecture with Kubernetes

A practical guide that addresses service boundaries, traffic management, SLOs, and platform responsibilities together when designing microservices on…

Microservice Architecture with Kubernetes — cover image

People often think of Kubernetes as “the microservice platform.” That’s true, but incomplete. Kubernetes hands you an orchestration plane; what actually makes a microservice succeed is service boundaries, traffic management, observability, and operational discipline.

In this post I’ll walk through the decision points that cause the most pain in the field when building a microservice architecture on Kubernetes: things like “where does a service end?”, “how do you define an SLO?”, “what should the platform team standardize?“.

1) Service boundary: not a deployment unit, but a domain boundary

The most common mistake: defining a microservice as “a separately deployable piece” and drawing the boundary along the technical layer.

A practical definition:

  • A microservice owns a single business capability
  • It manages its own data (or at least ownership is clear)
  • It is operated against its own SLO

2) Minimum platform components: without standardization, mess scales up

For a from-scratch setup, the “minimum platform” set:

  • Ingress/Gateway (L7 entry)
  • Config/Secret management
  • Observability (log/metric/trace)
  • CI/CD + artifact registry
  • Policy/guardrail (PSA + OPA/Kyverno)

If the platform team templates these, service teams stay focused on “the work.”

3) Traffic management: timeouts and retries decide each service’s fate

The most frequent root cause in distributed traffic: the wrong timeout/retry.

Minimum safe defaults:

  • Timeout on every call
  • Retry budget + backoff
  • Outlier detection / circuit breaker (at least at the edge)
  • Rate limit (public and critical internal services)

In the mesh vs no-mesh debate, what matters is the consistency of these policies.

4) SLO and error budget: the measurement that makes a microservice real

Saying “it’s working” really means “it’s within SLO”:

  • Availability
  • Latency (p95/p99)
  • Error rate

If the error budget is being burned, deploys slow down; if the budget is healthy, you speed up. Without that rhythm, microservices turn into “many parts, many problems.”

5) Kubernetes primitives: enforce the guardrails

My minimum template items:

  • Resource requests/limits
  • Liveness/readiness probe
  • PDB (on critical services)
  • HPA (with the right metric)
  • runAsNonRoot, readOnlyRootFilesystem, capabilities drop
  • Multi-AZ spread

Conclusion

Kubernetes makes microservices possible; but success comes from platform design. When you draw the service boundary along the domain and settle the traffic/SLO/guardrail standard, microservices truly scale.

Paylaş:

Bu yazı faydalı oldu mu?

Yükleniyor...

Bu yazı nasıldı?

ME

Mustafa Erbay

Sistem Mimarisi · Network Uzmanı · Altyapı, Güvenlik ve Yazılım

2006'dan bu yana sistem mimarisi, network, sunucu altyapıları, büyük yapıların kurulumu, yazılım ve sistem güvenliği ekseninde çalışıyorum. Bu blogda sahada karşılığı olan teknik deneyimlerimi paylaşıyorum.

Kişisel Notlar

Bu notlar sadece sizde saklanır. Tarayıcınızda yerel olarak tutulur.

Hazır 0 karakter

Comments

Server-side AI Moderation

Comments are AI-moderated server-side and stored permanently.

?
0/2000

Server-side AI moderation

✉️ Free · No spam · Unsubscribe anytime

Curated digest, hand-picked by me — not the AI

Once a week: the most important post of the week, behind-the-scenes notes, and a "what I actually used this week" section. Less noise, more signal.

  • 📌
    Best of the week Single most-worth-reading post
  • 🔧
    Toolbox notes Real tools I used this week
  • 🧠
    Behind-the-scenes Notes that don't make it to blog

We don't spam. Unsubscribe anytime. · Tracked only by Umami (self-hosted, no Google).

Your Reading Stats

0

Posts Read

0m

Reading Time

0

Day Streak

-

Favorite Category

Related Posts