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 shared APP_ENV, API_BASE_URL, and LOG_LEVEL settings via envFrom.
  • Deployments (web-frontend and catalog-api): Run two replicas each, exposing ports 80 and 8080 and labeling pods with app: web-frontend and app: catalog-api.
  • Services (web-frontend-svc and catalog-api-svc): Route ClusterIP traffic to matching pod labels.
  • Ingress (storefront-ingress): Routes / to web-frontend-svc:80 and /api to catalog-api-svc:8080.

Download both sample manifests to follow along in Meshery Playground:

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):

  1. Add storefront-config (ConfigMap), catalog-api (Deployment), catalog-api-svc (Service), web-frontend (Deployment), web-frontend-svc (Service), and storefront-ingress (Ingress) inside playground-sandbox.
  2. Open any component's configuration form in the side panel to edit fields visually rather than counting YAML spaces.
  3. Inspect the semantic edges Kanvas renders automatically upon import: a dotted reference edge from storefront-config to catalog-api and a network edge (catalog-api-svc/8080) from storefront-ingress to catalog-api-svc. Notice that catalog-api-svc does not connect to catalog-api yet because multi-tier-app-starter.yaml contains an intentional selector mismatch - the 8080/TCP network edge appears once its selector is corrected to catalog-api in Step 3 (shown in the connected topology below).
Meshery Playground Kanvas canvas showing the post-correction topology with ConfigMap reference edge and connected Service and Ingress network edges inside playground-sandbox

Explore how Kubernetes workloads, services, and relationships compose interactively in an embedded Meshery design below:

Meshery Logo

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/v1
2kind: Deployment
3metadata:
4 name: catalog-api
5 namespace: playground-sandbox
6spec:
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.

Validate design modal in Meshery Playground reporting 6 components, 0 annotations, and 0 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.selector matches Deployment.spec.template.metadata.labels, Kanvas renders a dotted network edge (8080/TCP) and groups matching components visually.
  • When selector drifts to catalog-api-v1, that visual edge disappears on the canvas so you spot the broken routing link before deploying.
Kanvas canvas grouping a Kubernetes Service and Deployment by shared selector labels

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):

  1. Make sure you are working inside your active Playground workspace (My Workspace) with a connected Kubernetes cluster badge in the top bar.
  2. Open Actions > Dry Run. Meshery sends each resource to the target API server with ?dryRun=All without persisting objects to etcd.
  3. 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).
Dryrun design modal showing Cross-Cluster Compatibility Analysis with Compatibility Matrix and List View in Meshery Playground

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.io schema) 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 for kubectl apply -f or 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.
Export Design as modal in Meshery Playground listing Meshery Design yaml, OCI image, Kubernetes Manifest yaml, Helm Chart, and Embed Design

You can also import or export designs from the command line with mesheryctl:

1mesheryctl design import -f multi-tier-app-validated.yaml -n storefront-app
2mesheryctl 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.

Meshery - The cloud native manager

Try Visual Validation in Meshery Playground

Import the starter storefront manifest, fix the schema and selector errors visually, and run a server-side dry-run in your browser.

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.

-

Layer5 Team

Related Blogs

Layer5 is the steward of Meshery and creator of Kanvas, the collaborative canvas for cloud-native infrastructure. We bridge the gap between design and operation, allowing engineers to create, configure, and deploy orchestratable diagrams in real time. Whether managing Kubernetes or multi-cloud environments, Layer5 provides the tooling needed to oversee modern infrastructure with confidence.