Skip to content
dk
← All projects

meshery-designs

v1.1.0

AI-native platform design for Meshery

Python10 forks0 open issues & PRsApache-2.0updated
Stars
1
Forks
0
Created
Sep 28, 2026
Last push
Oct 19, 2026
Last commit
Oct 19, 2026
Latest release
v1.1.0

README

dsk-dev-ai/meshery-designs

Meshery Designs — AI-Native Platform

CI License: Apache-2.0 Release

A research-grade, deterministic Meshery design that models an AI-native platform — fully specified, validated offline, and proven to deploy and run on a real Kubernetes cluster.

Why this repo?

  • Proven deployment: 40/40 components apply with zero failures on a real kind cluster. All four workload pods (meshery-control, otel-collector, sts-redis, sts-postgres) reach 1/1.
  • Deterministic by construction: regenerating from spec_data.py + gen.py yields a byte-identical generated/design.yml.
  • Reproducible validation: 28 structural checks + strict Draft-07 schema gate pass; CI re-fetches pinned Meshery models/schemas and re-verifies byte-identity.
  • Production-minded: real, publicly pullable workload images; minimal, admission-valid configuration. See ADR-015.
  • Upstream contribution: a new gateway-api model (Gateway API v1.6.3) was contributed to Meshery (meshery/meshery#22452). See ADR-016.

Design at a Glance

Metric Value Notes
Components (total) 66 40 native + 26 annotation
Relationships 113 61 semantic + 52 annotation
Selectors / Patches 226 / 166 generated deterministically
Namespace mutators 31 hierarchical ns_of edges
Models referenced 4 kubernetes, meshery-core, meshery-operator, kube-prometheus-stack
Namespaces 4 ns-ai-control, ns-ai-runtime, ns-ai-state, ns-ai-observability

The 40 native components (annotations describing intent omitted):

flowchart LR
  subgraph cluster["Cluster scope"]
    NSC["Namespaces<br/>control · runtime · state · observability"]
    PCCC["pc-ai-critical<br/>PriorityClass"]
    VAPC["vap-required-labels<br/>+ vapb-ai-runtime"]
    NETC["netpol-default-deny<br/>netpol-ai-allowlist"]
  end

  subgraph ctl["ns-ai-control"]
    ING["ingress-ai-platform"]
    SVC["svc-meshery-control"]
    DEP["deploy-meshery-control"]
    SEC1["sec-broker-endpoint<br/>sec-registry-creds"]
    RBAC1["sa / role / rb-ai-control"]
    OPS1["broker · meshsync"]
  end

  subgraph run["ns-ai-runtime"]
    CM["cm-agent-runtime<br/>cm-model-router"]
    QL["quota-ai-runtime<br/>limits-ai-runtime"]
  end

  subgraph st["ns-ai-state"]
    SVCS["svc-postgres · svc-redis"]
    STS["sts-postgres · sts-redis"]
    PVC["pvc-postgres · pvc-redis"]
    PDB["pdb-sts-postgres<br/>pdb-sts-redis"]
    SEC2["sec-state-creds<br/>sa / role / rb-ai-state"]
  end

  subgraph obs["ns-ai-observability"]
    OTEL["otel-collector"]
    PROM["prometheus"]
    RULE["promrule-platform-slo"]
    AM["alertmanager"]
    SM["sm-platform"]
  end

  ING --> SVC --> DEP
  CM --> DEP
  SEC1 --> DEP
  SVCS --> STS
  PVC --> STS
  PDB --> STS
  SEC2 --> STS
  PCCC --> STS
  PROM --> SM
  SM --> SVC
  SM --> SVCS
  PROM --> RULE
  PROM --> AM

Quickstart

Prerequisites: Python 3.10+, kubectl, docker, a local Meshery server (mesheryctl) or access to a Kubernetes cluster with Meshery context, and the design's native CRDs (kube-prometheus-stack, meshery-operator) installed.

1. Clone and inspect

git clone https://github.com/dsk-dev-ai/meshery-designs.git
cd meshery-designs
cat generated/design.yml | head -15

2. Regenerate (deterministic)

python3 validation/tools/gen.py generated/design.yml

3. Validate offline

export MESHER_MODELS_ROOT=/home/dsk/opensource_new_programs/meshery/models
export MESHER_SCHEMAS=/home/dsk/go/pkg/mod/github.com/meshery/schemas@v1.3.37/schemas/constructs
python3 validation/tools/verify.py generated/design.yml
python3 validation/tools/gate1.py  generated/design.yml /tmp/gate1
bash tests/run_all.sh

All three must be green.

4. Deploy to a live cluster (proven)

bash deploy.sh

deploy.sh regenerates, runs offline gates, deploys via a local Meshery server, and asserts 40/40 components apply with zero failures. On success, it prints the applied inventory. All workload pods reach 1/1. See GATE9-REPORT.md.

Repository Layout

generated/     Generated Meshery design artifact (do not edit by hand)
spec/          Architectural decisions, components, and spec data
validation/    Gates, tooling (gen.py, verify.py, gate1.py), reports
docs/          User-facing docs: QUICKSTART, ARCHITECTURE, VALIDATION, TROUBLESHOOTING, PLAYING_WITH_MESHERY
tests/         Reproducibility harness
reports/       Research/reconnaissance material
deploy.sh      End-to-end deploy + verification script

Documentation

CI, Artifacts, and Versioning

  • CI: .github/workflows/ci.yml runs an artifact-integrity job (no external deps) and a reproduce-from-pinned-catalog job (rebuilds from pinned models/schemas and asserts byte-identity). All jobs must pass.
  • Determinism: generated/design.yml md5 is stable. Any PR that changes it must include the regenerated output from the same spec.
  • Releases: Releases include generated/design.yml as an asset. Current: v1.1.0 (release notes).
  • Upstream: Gateway API model contributed to meshery/meshery#22452 (open as of v1.1.0).

Contributing

See CONTRIBUTING.md. Never edit generated/design.yml by hand — change spec/ or validation/tools/spec_data.py + gen.py, regenerate, and run all gates. DCO sign-off is required.

Meshery Community

Join the Meshery community to learn, contribute, and grow with cloud native practitioners.

License & Notices

Related projects

Turn any codebase into beautiful architecture diagrams — one command, no AI, no server, runs on any laptop. Zero dependencies, pure Python, agent-friendly (Cursor, Claude Code, Codex, OpenCode).

ai-agentsarchitecture-diagramcli
Pythonv1.0.0

381 merged pull requests across 30 repositories · data generated Dec 1, 2026