Zum Inhalt springen
Skillpedia
Deployment & Cloud (DevOps)48k · #5212

mirrord

Was er macht

Mit mirrord kannst du deine lokalen Programme so ausführen, als würden sie in einem Container (Pod) in einem Kubernetes-Cluster laufen. Dabei werden die Umgebung des Pods, seine Netzwerkverbindungen und sein Traffic auf deinen Rechner kopiert. So wird das Testen deutlich einfacher.

Wann du ihn nutzt

  • ✓Wenn du eine Änderung gegen echte Dienste testen willst, ohne sie zu deployen.
  • ✓Wenn du einen Microservice lokal gegen eine Staging-Umgebung debuggen willst.
  • ✓Wenn du mirrord zum ersten Mal ausprobierst.

Link zum Skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mirrord/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mirrord/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Ich möchte meine neue API lokal gegen die Staging-Umgebung testen.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

mirrord installiert ein kleines Programm (Agent) in deinem Kubernetes-Cluster. Dieser Agent spiegelt die Umgebung und den Traffic des gewählten Pods auf deinen lokalen Rechner. So kommuniziert dein lokaler Code mit den echten Diensten des Clusters, als würde er selbst dort laufen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

mirrord

Overview

mirrord runs a local process as if it were inside a Kubernetes pod: it gets the pod's environment variables, DNS, outgoing network access and file reads, and can receive the pod's incoming traffic. An agent can verify a change against the real services, databases and queues in a staging cluster without building or deploying an image.

When to Use This Skill

  • Use when a change needs to be tested against real cluster dependencies instead of mocks
  • Use when the user asks to debug a microservice locally against staging
  • Use when the user wants to try mirrord for the first time

How It Works

Step 1: Check cluster access

kubectl cluster-info
kubectl get pods -A | head -5

If this fails, help the user configure kubectl first.

Step 2: Install mirrord

Point the user to the official installation guide (https://metalbear.com/mirrord/docs/overview/quick-start/) for Homebrew, package managers, or pinned release binaries. Do not pipe a remote download into a shell. Verify with:

mirrord --version

Step 3: Pick a target and run

mirrord ls
mirrord exec --target deployment/<name> -- <command>

Incoming traffic is mirrored by default. To take over the target's traffic instead, set "feature": {"network": {"incoming": "steal"}} in .mirrord/mirrord.json, and confirm with the user first, since it affects a shared environment.

Step 4: Verify

# Verify an explicitly selected non-secret variable or service identity without printing the pod environment.

Confirm the exact target and mode through sanitized configuration/status, then an approved synthetic read. Never dump environment credentials.

Examples

Example 1: Run tests against staging

mirrord exec --target deployment/orders -- npm test

Example 2: Debug a Python service

mirrord exec --target deployment/api -- python main.py

Best Practices

  • ✅ Ask which cluster, namespace and target before running
  • ✅ Prefer mirror mode on shared clusters
  • ✅ Use the official skills at https://github.com/metalbear-co/skills for config, CI, database branching, queue splitting and preview environments
  • ❌ Don't steal traffic from a shared target without the user's agreement
  • ❌ Don't run cluster-modifying commands without explicit approval

Limitations

  • Needs kubectl access to the target cluster and a Linux node kernel 4.20+
  • Team features (concurrent steal on one target, database branching, queue splitting, preview environments) need the mirrord Operator. On a cluster without a license, an agent can offer the user a trial; see https://metalbear.com/agents.md and ask before starting it.

Running locally can still modify shared databases, send messages, consume queues or incur provider charges through mirrored network/environment access. Confirm a staging context/namespace and isolated data, inspect the actual mirrord mode/version, and disable unneeded filesystem/environment/network capabilities. Mirror mode is not an automatic read-only sandbox; stealing traffic or trial/license activation needs specific authorization. Reconcile side effects before retries.

Häufige Fragen

Muss ich etwas auf meinem Rechner installieren?

Ja, mirrord muss auf deinem Rechner installiert werden. In der offiziellen Anleitung findest du, wie das für die verschiedenen Betriebssysteme funktioniert.

Was ist der Unterschied zwischen „Traffic spiegeln“ und „Traffic stehlen“?

Beim Spiegeln wird der Traffic des Pods auf deinen Rechner kopiert, der Pod empfängt aber weiterhin seinen ursprünglichen Traffic. Beim Stehlen empfängt dein Rechner den gesamten Traffic, der für den Pod bestimmt ist. Das kann andere Nutzer beeinträchtigen, wenn man nicht vorsichtig ist.

Was brauche ich, um mirrord zu nutzen?

Du brauchst Zugriff auf den Kubernetes-Cluster mit konfiguriertem `kubectl` und einen aktuellen Linux-Kernel auf deinem Rechner.

Details

Originalbeschreibung des Autors

Run a local process inside a live Kubernetes cluster's network, env and traffic with mirrord, so changes are tested against real services without deploying.

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#5212
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills