मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)48k · #5212

mirrord

यह क्या करती है

Mirrord आपको अपने लोकल प्रोग्राम्स को Kubernetes क्लस्टर में चल रहे कंटेनर (pod) के अंदर चलाने जैसा अनुभव देता है। यह pod का एनवायरनमेंट, नेटवर्क कनेक्शन और ट्रैफ़िक आपकी मशीन पर कॉपी करता है, जिससे टेस्टिंग आसान हो जाती है।

कब इस्तेमाल करें

  • ✓बिना डिप्लॉय किए, असली सर्विसेज़ के खिलाफ कोई बदलाव टेस्ट करना।
  • ✓स्टेजिंग एनवायरनमेंट के खिलाफ लोकली माइक्रोसर्विस को डीबग करना।
  • ✓पहली बार mirrord आज़माते समय।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mirrord/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं अपना नया API लोकली स्टेजिंग एनवायरनमेंट के खिलाफ टेस्ट करना चाहता हूँ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

Mirrord आपके Kubernetes क्लस्टर में एक छोटा प्रोग्राम (agent) इंस्टॉल करता है। यह एजेंट चुने हुए pod का एनवायरनमेंट और ट्रैफ़िक आपकी लोकल मशीन पर मिरर करता है। इस तरह आपका लोकल कोड क्लस्टर की असली सर्विसेज़ के साथ ऐसे काम करता है, जैसे वह उसी के अंदर हो।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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.

अक्सर पूछे जाने वाले सवाल

क्या मुझे अपने कंप्यूटर पर कुछ इंस्टॉल करना होगा?

हाँ, आपको अपने कंप्यूटर पर mirrord इंस्टॉल करना होगा। आधिकारिक गाइड में अलग-अलग ऑपरेटिंग सिस्टम के लिए तरीका बताया गया है।

'mirror traffic' और 'steal traffic' में क्या फ़र्क है?

Mirror का मतलब है कि pod का ट्रैफ़िक आपकी मशीन पर कॉपी होता है, लेकिन pod को अपना असली ट्रैफ़िक मिलता रहता है। Steal का मतलब है कि pod के लिए आने वाला सारा ट्रैफ़िक आपकी मशीन को मिल जाता है, जो सावधानी न बरतने पर दूसरे यूज़र्स को प्रभावित कर सकता है।

mirrord इस्तेमाल करने के लिए क्या चाहिए?

आपको Kubernetes क्लस्टर का एक्सेस चाहिए, जिसमें `kubectl` कॉन्फ़िगर हो, और आपकी मशीन पर एक नया Linux kernel होना चाहिए।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#5212
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills