Skip to content

Architecture

Platform Architecture Overview

Purpose

This repository is a local-first Kubernetes Internal Developer Platform reference implementation for demonstrating practical platform engineering. The completed core makes local platform validation, GitOps delivery, reusable workload packaging, self-service artifact generation, CI governance, and trusted image publication reviewable and repeatable.

The platform is local-first. A maintainer should be able to demonstrate the core platform on a workstation without mandatory cloud infrastructure. A future cloud reference deployment may be added, but cloud resources are not required for the primary demonstration path.

Audience

The platform serves two groups:

  • Application developers who need a supported path for creating, configuring, validating, and deploying services.
  • Platform maintainers who own Kubernetes infrastructure, delivery standards, policies, observability, reliability practices, and documentation.

Platform Goals

  • Provide a reproducible local Kubernetes environment.
  • Use Git as the source of truth for platform and application delivery.
  • Standardize application packaging through a reusable Helm golden path.
  • Offer developer self-service without hiding operational responsibilities.
  • Enforce baseline security and reliability expectations through validation and documented boundaries.
  • Make health and operational evidence visible for the implemented local workflows.
  • Keep each implementation stage reviewable and testable.

Platform Boundaries

The completed core owns cluster bootstrap, GitOps bootstrap, shared Kubernetes standards in the golden-path chart, platform validation, self-service repository artifacts, CI governance, trusted publication evidence, and reference workflows.

Policy engines, observability integration, multi-environment promotion, portal workflows, signing, cryptographic provenance, and registry-attached attestations are optional future expansion areas. They are not blockers for the current reference-platform core.

Application teams remain responsible for service behavior, application tests, service ownership metadata, runtime configuration choices, and responding to service-specific operational signals.

Current Repository State

The current repository includes the recovery and engineering baseline, a reproducible local Kubernetes foundation using Kind, a reproducible Argo CD GitOps control plane for local reconciliation, a reusable Helm golden-path chart for HTTP workloads, the completed Stage 5 developer self-service foundation, and completed Stage 6 supply-chain controls through trusted OCI publication. It contains documentation, governance files, validation scripts, directory contracts, Kind cluster configuration, local cluster lifecycle commands, Argo CD bootstrap configuration, minimal Git-managed platform bootstrap state, golden-path chart validation, a GitOps-deployed demo workload, platformctl support for PlatformService validation, read-only planning, safe repository generation, read-only drift verification, untrusted PR supply-chain evidence, and live-proven trusted publication with authoritative digest handoff.

It does not yet contain a Kyverno policy set, observability stack, environment promotion model, developer portal, automatic generated-service registration, signing, cryptographic provenance, or registry-attached attestations. Those areas remain optional future milestones rather than current completion blockers.

Target Architecture

The target architecture has four conceptual layers:

  • Repository control layer: branch strategy, pull requests, validation, ADRs, roadmap, and recovery controls.
  • Platform control plane: Kind for local Kubernetes and Argo CD for GitOps reconciliation, with Kyverno and observability components reserved for future expansion.
  • Workload plane: namespaces, quotas, network boundaries, service accounts, Deployments, Services, ingress or Gateway integration, probes, resources, and telemetry.
  • Developer experience layer: PlatformService intent, platform-owned policy, deterministic Helm values, deterministic Argo CD Applications, controlled repository artifacts, GitOps-ready representation, and documentation output.

Developer Responsibilities

Developers should use supported service templates, provide required metadata, write application tests, define service configuration, review generated output, and keep documentation accurate when behavior changes.

Platform Team Responsibilities

The platform owner maintains cluster bootstrap, GitOps structure, Helm standards, repository validation, security policy, observability defaults, runbooks, upgrade guidance, and roadmap sequencing.

Control Plane Concepts

Kind provides the local Kubernetes cluster. Argo CD reconciles platform bootstrap state and the golden-path demo workload from Git into the cluster. Helm defines the reusable application packaging contract. GitHub Actions validates repository changes before merge. Kyverno can enforce Kubernetes-native policies in a later optional stage.

Kind is implemented as the Stage 2 local Kubernetes foundation. Argo CD is implemented as the Stage 3 GitOps control plane using a pinned non-HA upstream manifest for local development. Helm golden-path packaging is implemented in Stage 4. Stage 5 self-service artifacts and Stage 6 trusted publication are implemented. Kyverno and later platform components remain optional future-stage work.

Workload Plane Concepts

Workloads are deployed through standardized Kubernetes manifests rendered by the golden-path Helm chart. Implemented workload standards include stable labels and selectors, HTTP health probes, resource requests and limits, restricted pod and container security contexts, service accounts, disruption handling, optional network policy, optional ingress, optional autoscaling, and scheduling controls. Telemetry integration remains later-stage work.

GitOps Operating Model

Git is the source of truth for platform bootstrap state and the Stage 4 golden-path demo application. Platform configuration is reviewed through pull requests, merged into main, and reconciled into the local cluster by Argo CD. CI tests the exact commit under review by temporarily rendering Argo CD Application target revisions to the immutable commit SHA. Promotion between environments remains a later-stage concern and will be modeled through explicit Git changes rather than manual cluster mutation.

Developer Golden Path

The golden-path Helm chart provides the reusable workload contract targeted by the Stage 5 self-service flow. A developer can author services/<service>/service.yaml, validate the PlatformService contract, preview deterministic Helm values and an Argo CD Application, safely generate services/<service>/generated/values.yaml and services/<service>/generated/application.yaml, and verify generated drift. Stage 5 ends at controlled repository artifacts; Git staging, commits, pushes, pull-request automation, automatic Argo registration, ApplicationSet/app-of-apps discovery, environment promotion, developer portal workflows, deployment automation, and observability remain later-stage work.

Environment Model

The current environment model is the local platform bootstrap and GitOps runtime proof. Development, staging, and production-style promotion boundaries are optional future expansion.

Security Model

Security is layered across repository validation, branch review, container and dependency checks, restricted GitOps projects, workload security defaults, namespace boundaries, digest-pinned images, vulnerability scanning, trusted publication evidence, and protected authoritative promotion.

Current controls include repository validation, protected pull-request workflow, pinned local Kubernetes tooling, pinned Helm validation tooling, pinned and checksum-verified Argo CD installation, restricted AppProjects, digest-pinned runtime images, schema validation, secure workload defaults, supply-chain PR verification, and live-proven trusted publication. Kyverno policy enforcement remains optional future-stage work.

Observability Model

The current repository proves health and reconciliation through Kubernetes, Argo CD, Helm, and service validation commands. A fuller observability model with metrics, logs, traces, dashboards, alerts, and service-level indicators remains optional future expansion.

Software Delivery Model

GitHub Actions provide repository validation, platform runtime proof workflows, untrusted supply-chain PR verification, and protected-main trusted publication. The trusted publication path verifies source, builds a representative OCI artifact, generates SBOM and vulnerability evidence, publishes only from trusted events, produces an immutable authoritative digest, and hands that digest to Stage 5. Signing, cryptographic provenance, and attestations remain future expansion.

See ../supply-chain-architecture.md for the Stage 6 supply-chain trust, artifact, evidence, publication, and handoff contracts.

Non-Goals

  • Do not require cloud infrastructure for the primary demonstration.
  • Do not merge stale historical branches wholesale.
  • Do not add platform components before their validation and operating model are defined.
  • Do not document features as complete before they can be executed and verified.
  • Do not increase repository size through empty directories or decorative files.