Hand-authoring multi-resource Kubernetes YAML files often pushes subtle wiring bugs all the way to deployment time. A string where an integer belongs, a Service selector that misses a pod template label by two characters, or a cluster-scoped resource rejected by RBAC can stall a rollout in staging. With the Meshery Playground and Kanvas Designer, you can assemble multi-tier architectures visually, inspect how different validation layers verify your design, and export clean manifests before running kubectl apply on your own clusters.
Why One Validation Check Is Not Enough
Not every Kubernetes configuration bug fails at the same layer. A YAML parser only checks syntax, JSON Schema checks individual fields, and Kubernetes server-side dry-run validates API compliance per resource rather than whether a Service actually matches any pods.
| Check Layer | Where It Runs in Meshery | What It Catches | What It Does Not Catch |
| --- | --- | --- | --- |
| Schema Validation (Actions > Validate) | Client RJSF forms and server Validator stage | Invalid field types, missing required properties, malformed component config | Cross-resource selector drift or cluster admission rules |
| Relationship & Policy Evaluation | Meshery policy engine (js/wasm and Meshery Server) | Missing edges or unlinked components when selectors, labels, or namespaces drift | Live pod startup failures or cluster API quota limits |
| Server-Side Dry Run (Actions > Dry Run) | Connected Kubernetes API server via ?dryRun=All | RBAC prohibitions, missing CRDs, invalid apiVersion fields, webhook rejections | Empty Service Endpoints from a mismatched selector or missing ConfigMap keys |
| Live Deployment (Actions > Deploy) | Target Kubernetes cluster in a Playground or local Environment | Runtime probe failures, CreateContainerConfigError, real Ingress traffic routing | Runs real workloads and requires a target cluster |
Target Architecture: A Two-Tier Storefront App
To keep the walkthrough realistic, we will model a two-tier web application inside the playground-sandbox namespace using all four core Kubernetes primitives:
- ConfigMap (
storefront-config): Supplies sharedAPP_ENV,API_BASE_URL, andLOG_LEVELsettings viaenvFrom. - Deployments (
web-frontendandcatalog-api): Run two replicas each, exposing ports80and8080and labeling pods withapp: web-frontendandapp: catalog-api. - Services (
web-frontend-svcandcatalog-api-svc): RouteClusterIPtraffic to matching pod labels. - Ingress (
storefront-ingress): Routes/toweb-frontend-svc:80and/apitocatalog-api-svc:8080.
Download both sample manifests to follow along in Meshery Playground:
-
Starter manifest with intentional schema and selector errors (
multi-tier-app-starter.yaml) -
Fixed and validated manifest (
multi-tier-app-validated.yaml)
Step 1: Assemble or Import the Design on the Canvas
Sign in to playground.meshery.io and open Kanvas in Design mode. You can build the topology from the bottom Kubernetes dock (File > New > Blank) or upload multi-tier-app-starter.yaml using File > Import... (Configuration > Designs > Import Design):
- Add
storefront-config(ConfigMap),catalog-api(Deployment),catalog-api-svc(Service),web-frontend(Deployment),web-frontend-svc(Service), andstorefront-ingress(Ingress) insideplayground-sandbox. - Open any component's configuration form in the side panel to edit fields visually rather than counting YAML spaces.
- Inspect the semantic edges Kanvas renders automatically upon import: a dotted
referenceedge fromstorefront-configtocatalog-apiand anetworkedge (catalog-api-svc/8080) fromstorefront-ingresstocatalog-api-svc. Notice thatcatalog-api-svcdoes not connect tocatalog-apiyet becausemulti-tier-app-starter.yamlcontains an intentional selector mismatch - the8080/TCPnetworkedge appears once its selector is corrected tocatalog-apiin Step 3 (shown in the connected topology below).

Explore how Kubernetes workloads, services, and relationships compose interactively in an embedded Meshery design below:
Step 2: Catch Schema Errors With Validate
In multi-tier-app-starter.yaml, catalog-api intentionally sets spec.replicas to the string "two" instead of an integer:
1apiVersion: apps/v12kind: Deployment3metadata:4 name: catalog-api5 namespace: playground-sandbox6spec:7 replicas: "two" # Invalid type: Kubernetes schema expects an integer
From the top-right toolbar, open Actions > Validate (or click Validate Design on the card in Configuration > Designs). Meshery evaluates each component against its registered Kubernetes JSON Schema (client-side via RJSF and server-side via the Validator stage) and flags the type mismatch on catalog-api before any cluster API call is made.
Change spec.replicas back to 2 in the configuration panel and re-run Actions > Validate. When every field matches its component schema, the Validate design modal confirms 0 errors and No validation errors.

Step 3: Catch Missing Selectors With Relationship Evaluation
Next, notice why Dry Run alone is never enough for Kubernetes wiring. In multi-tier-app-starter.yaml, catalog-api-svc selects app: catalog-api-v1 while the catalog-api pods carry app: catalog-api:
1spec:2 selector:3 app: catalog-api-v1 # Does not match pod template label app: catalog-api
Both resources are syntactically valid Kubernetes objects, so kubectl apply --dry-run=server accepts both without error - yet live traffic to /api drops silently because the Service creates zero Endpoints.
On the Meshery Playground canvas, Meshery's relationship engine evaluates matchLabels (sibling) and edge/network policies continuously as you edit:
- When
Service.spec.selectormatchesDeployment.spec.template.metadata.labels, Kanvas renders a dotted network edge (8080/TCP) and groups matching components visually. - When
selectordrifts tocatalog-api-v1, that visual edge disappears on the canvas so you spot the broken routing link before deploying.

Shared labels group matching Service and Deployment components visually via sibling matchLabels evaluation.
Fix catalog-api-svc by updating spec.selector.app to catalog-api so the network edge (8080/TCP) appears between catalog-api-svc and catalog-api, matching the connected topology shown in Step 1.
Schema checks catch malformed fields, relationship evaluation catches broken wiring on the canvas, and server-side dry-run verifies what the target Kubernetes API server will actually accept.
Step 4: Run a Server-Side Dry Run
With schema errors and broken selectors resolved, run a server-side dry-run against Playground's connected Kubernetes environment (playground-context):
- Make sure you are working inside your active Playground workspace (
My Workspace) with a connected Kubernetes cluster badge in the top bar. - Open Actions > Dry Run. Meshery sends each resource to the target API server with
?dryRun=Allwithout persisting objects to etcd. - Review the Dryrun design modal (Cross-Cluster Compatibility Analysis), toggling between Compatibility Matrix and List View to inspect per-cluster and per-resource status (
Succeeded,Warnings,Failed,Incomplete).

If any cluster check fails - such as a 403 Forbidden error from attempting to dry-run a cluster-scoped Namespace inside the playground-sandbox environment, or an admission error on an Ingress class - switch to List View to inspect the exact API server rejection message and jump back to the offending component.
Step 5: Export Clean Kubernetes YAML Manifests
Once validation and dry-run checks are verified, open the top-left File menu > Export... (or click Download from Configuration > Designs). The Export Design as... modal exposes five formats:
- Meshery Design (yaml): Exports the lossless design (
designs.meshery.ioschema) including visual canvas positions, annotations, and relationships so teammates can re-import it or publish it to the Kanvas Catalog. - Meshery Design (OCI image): Packages the design as an OCI artifact for container registries.
- Kubernetes Manifest (yaml): Strips Meshery canvas metadata and outputs plain multi-document Kubernetes YAML (
multi-tier-app-validated.yaml) ready forkubectl apply -for a GitOps repository. - Helm Chart (tar.gz): Packages the design as a deployable Helm chart archive.
- Embed Design: Generates a self-contained embed bundle for blogs, docs, or internal developer portals.

You can also import or export designs from the command line with mesheryctl:
1mesheryctl design import -f multi-tier-app-validated.yaml -n storefront-app2mesheryctl design export storefront-app --type current -o ./exports
For full Kubernetes manifest export or cluster-targeted dry-run and deploy wizards, use the Meshery UI.

Questions about Meshery designs, relationships, or Playground environments? Join the Layer5 community in Slack (the #meshery or #blog-kitchen channels) and share your designs in the Kanvas Catalog.
Team

