Software Engineering

Platform Engineering at Scale: Kubernetes as an Internal Platform

Kubernetes turned ten this month. For large organisations its most important role is no longer running containers, but serving as the API on which internal platforms are built. We look at the patterns for using Kubernetes as a platform at scale: fleets, multi-tenancy, platform APIs and policy.

By EthicalHat Research · · 3 min read
Infographic: Kubernetes as a platform for building platforms

Kubernetes celebrated its tenth birthday this month; the first commit landed on GitHub in June 2014. It has become the standard way to run containers, but for large organisations its most important role has shifted. As Kelsey Hightower and others have put it, Kubernetes is increasingly a platform for building platforms.

This article looks at what that means in practice, and at the patterns that let platform teams serve hundreds of developers on Kubernetes without every team becoming a Kubernetes expert.

Why Kubernetes works as a platform foundation

What makes Kubernetes valuable for platform engineering is not the scheduler. It is the API machinery:

  • A declarative API with consistent semantics for every resource.
  • Custom Resource Definitions (CRDs) that let you add your own resource types.
  • Controllers that reconcile desired state continuously.
  • Admission control to validate and mutate every request.
  • RBAC and namespaces for access control and isolation.
  • A huge ecosystem of tools that already speak this API.

Put together, these let a platform team define its own higher-level resources, such as Application, Database or Environment, and implement them with controllers, while developers interact with a small, stable interface.

Pattern 1: platform APIs, not raw infrastructure

Instead of asking developers to write Deployments, Services, Ingresses, IAM policies and Terraform, expose a simpler resource that captures intent. With Crossplane, for example, a developer can claim a database:

yaml
apiVersion: platform.example.com/v1alpha1
kind: PostgresInstance
metadata:
  name: invoices-db
  namespace: team-billing
spec:
  size: small            # platform maps this to instance class, storage and backups
  version: "16"
  highAvailability: false
  writeConnectionSecretToRef:
    name: invoices-db-conn

Behind the scenes, a Crossplane composition owned by the platform team turns that claim into a managed cloud database, network rules, backups, monitoring and a Kubernetes Secret with credentials. The platform team can change the implementation, such as switching instance types or adding encryption defaults, without any developer changing their YAML.

Pattern 2: fleets, not pets

At scale, organisations rarely run one cluster. They run many: per environment, per region, per business unit, sometimes per team. Managing them by hand does not scale.

flowchart TB
  G[(Git: fleet definitions)] --> M[Management cluster]
  M -->|Cluster API / cloud APIs| C1[Prod EU]
  M --> C2[Prod US]
  M --> C3[Staging]
  M --> C4[Team sandbox clusters]
  G --> A[GitOps controllers]
  A -->|same add-ons & policies| C1
  A --> C2
  A --> C3
  • Cluster API or managed Kubernetes APIs create and upgrade clusters declaratively from a management cluster.
  • GitOps (Argo CD ApplicationSets, Flux) installs the same baseline add-ons (ingress, observability, policy, security agents) on every cluster.
  • Upgrades become a pipeline: new versions roll through sandbox, staging and production clusters in waves.

Pattern 3: multi-tenancy by design

Most internal platforms share clusters between teams. Doing that safely requires deliberate tenancy controls:

  • Namespaces per team or application, created by the platform with standard labels.
  • ResourceQuotas and LimitRanges so one team cannot starve others.
  • RBAC scoped to the team's namespaces, synchronised from your identity provider groups.
  • Network policies isolating tenants by default.
  • Pod Security Admission at restricted for application namespaces.
  • For stronger isolation, virtual clusters (for example vcluster) or separate clusters for sensitive workloads.
yaml
apiVersion: v1
kind: ResourceQuota
metadata:
  name: team-billing-quota
  namespace: team-billing
spec:
  hard:
    requests.cpu: "40"
    requests.memory: 80Gi
    limits.memory: 120Gi
    persistentvolumeclaims: "20"

Pattern 4: policy as the guardrail

Admission policies let the platform enforce standards across every cluster, with clear messages for developers:

  • images only from approved registries, pinned by digest,
  • required labels for owner and cost centre,
  • no privileged pods, host paths or latest tags,
  • resource requests required.

Tools such as Kyverno and OPA Gatekeeper, and Kubernetes' built-in ValidatingAdmissionPolicy (beta in recent releases), apply these consistently. Running them in audit mode first avoids surprising teams.

Pattern 5: cost and ownership visibility

Shared platforms need shared accountability. Label every workload with owner and cost centre, allocate costs per namespace (for example with OpenCost), and publish them. Teams that see what their workloads cost make better decisions about requests, replicas and idle environments.

Pitfalls at scale

  • Too many CRDs, too little product thinking. Every custom resource is an API you must support and version.
  • Snowflake clusters. Any manual change to one cluster undermines fleet management.
  • Upgrade debt. Kubernetes supports roughly the three most recent minor versions. Falling behind makes every upgrade riskier.
  • Hidden complexity. Abstractions help until they fail. Give developers visibility into what their claims created, and good error messages.

The bottom line

A decade in, the most interesting thing about Kubernetes is not that it runs containers well. It is that its API model lets platform teams build self-service, policy-controlled platforms for the rest of the organisation. Used that way, Kubernetes fades into the background, which is exactly what developers want.

Our secure SDLC team builds Kubernetes-based internal platforms, and our Kubernetes security validates tenancy and policy controls at scale.

EthicalHat Research

The EthicalHat research team: penetration testers, SOC analysts and engineers writing about security, software engineering and AI.

Want an expert opinion on your own systems?

Email info@ethicalhat.com or call +1-844-838-4422. Our security engineers are happy to talk it through.