# Kubernetes Management

> We build, tune and run Kubernetes clusters on GKE, EKS and AKS, so you get production-grade Kubernetes without hiring a dedicated platform team.

Page: https://www.leafcompute.com/services/kubernetes-management

## The operational work Kubernetes brings

Kubernetes solves real problems: service discovery, rolling deployments, resource isolation and horizontal scaling. It also brings a lot of operational work that growth-stage companies often underestimate. Ingress controllers, monitoring, pod disruption budgets and a CI/CD pipeline that works all have to be set up and tuned, and that engineering time comes out of product work.

We help teams run Kubernetes without the full-time platform team it usually needs.

## Where Kubernetes money goes

Most cluster waste is capacity that is reserved but not used:

- **Requests set by guess.** On one GKE fleet, nodes were 97% reserved but 15% busy at the median over seven days. A single browser worker reserved a full vCPU and used 17 millicores at the 95th percentile.
- **The wrong machine family.** Moving that fleet from n2d to c3d Spot machines made each node 30.1% cheaper at list price.
- **Slow scale-down** after bursts, and node pools nobody uses any more.

After right-sizing, bin packing and the machine move, the average fleet went from about 1,000 to about 537 vCPU doing the same work. For the full Google Cloud picture, see [Google Cloud cost optimization](/services/google-cloud-cost-optimization).

## What we handle

### Cluster architecture

Every cluster we build starts from what your workload needs. A team running a set of microservices needs a very different cluster from a team running GPU-heavy ML training jobs, so we design around the workload you actually run.

Decisions we help teams make:

- **Managed or self-hosted:** EKS, GKE and AKS run the control plane for you. For most teams that is the right choice, and we'll tell you when it isn't.
- **Node pools:** instance types sized to the workload, workloads separated by resource profile, and Spot or preemptible nodes for fault-tolerant work to save cost.
- **Networking:** CNI choice, network policies and whether you need a service mesh (usually not yet).

### Deployment pipelines

We build pipelines with:

- **GitOps:** infrastructure state lives in Git, changes deploy through pull requests, and a rollback is a revert commit.
- **Progressive delivery:** canary deployments that roll back automatically when error rates rise, and blue-green deployments for zero-downtime database migrations.
- **Environment parity:** staging environments that mirror production.

### Observability

We set up:

- **Metrics:** Prometheus or the cloud provider's equivalent, with dashboards for pod resource usage, request latency and error rates.
- **Logging:** structured logs collected in a central store, with retention policies that balance cost against how far back you need to debug.
- **Alerting:** alerts that page on-call for real incidents and stay quiet for expected behavior. We go through the existing rules and remove the ones that only add noise.

### Security and compliance

For production clusters we set up:

- **RBAC:** role-based access on the principle of least privilege, in place of a single admin kubeconfig shared over Slack.
- **Pod security:** non-root containers, read-only filesystems where possible, and network policies that restrict east-west traffic.
- **Image scanning:** automated vulnerability scanning in CI, and admission controllers that block unscanned images from deploying.
- **Secrets management:** external secret stores (Vault, cloud KMS) instead of Kubernetes Secrets in plain base64.

## Ongoing operations

If you want us to keep running the clusters, ongoing work covers:

- **Kubernetes version upgrades:** tested in staging, rolled out with zero downtime and documented for your team.
- **Cost reviews:** a monthly review of resource requests against actual usage, with right-sizing recommendations and reserved instance planning.
- **Incident support:** someone on hand who has debugged Kubernetes networking issues before, for when something breaks.

## When Kubernetes is the wrong choice

We'll tell you if Kubernetes isn't the right answer. If you run a few services and a database, a container orchestrator adds complexity you don't need. A well-configured PaaS, or a couple of well-automated VMs, can do the job until you have enough services with real scaling needs for Kubernetes to save more work than it creates.

## Common questions

### Why is our cluster full when the nodes look idle?

Because the scheduler places pods by what they request, not what they use. If requests are set by guess, nodes fill up on paper while the CPUs sit idle. We reset requests from measured p95 and peak usage, then pack more pods per node.

### How much can right-sizing save?

It depends on how far requests are from real usage, and we measure that before estimating. On one GKE fleet, nodes were 97% reserved and 15% busy at the median, and the average fleet went from about 1,000 to about 537 vCPU after right-sizing and a cheaper machine family.

### Do you work on EKS and AKS too, or only GKE?

EKS, GKE and AKS. Our largest recent cost work was on GKE, including a Spot browser fleet that peaked at 703 nodes.

### Can we run production on Spot nodes?

For work that can retry, yes. It needs a fallback across machine families for when Spot capacity runs out, and workloads built to survive a reclaim. Stateful services and databases usually stay on standard nodes.

### Do we need a service mesh?

Usually not yet. A mesh adds cost and moving parts. We add one when you have a concrete need it solves, such as mutual TLS across many teams' services.

---
Leaf Compute: https://www.leafcompute.com · hello@leafcompute.com
