شعار K8s Istio Troubleshooting

K8s Istio Troubleshooting

مؤسسة
k8s-servant
k8s-istio-troubleshooting

استخدم هذه المهارة عند تعذّر مرور حركة البيانات في شبكة خدمات Istio على Kubernetes: ظهور HTTP 403 "RBAC: access denied" بسبب AuthorizationPolicy، أو 503 "no healthy upstream" أو "upstream connect error or disconnect/reset before headers"، أو 404 بسبب عدم تطابق المسار، أو "Connection reset by peer" بعد ضبط PeerAuthentication على STRICT، أو عدم حقن sidecars، أو عدم تطبيق قواعد VirtualService أو DestinationRule أو Gateway أو ServiceEntry، أو حدوث مشكلات في istiod أو proxy. تقرأ سجل الوصول الخاص بـ Envoy وأعلام الاستجابة (UH، NR، UF، URX، filter_chain_not_found)، وتغطي وضعي sidecar وambient، وتقترح حلولًا. تفحص المشكلة باستخدام kubectl get وdescribe وevents والسجلات، وتطلب إذنك قبل قراءة API الإدارة في Envoy داخل proxy. تبدأ بالقراءة وتطلب إذنك قبل إجراء أي تغيير.

نظرة عامة

الناشرk8s-servant
المستودعk8s-skills
اسم المهارةk8s-istio-troubleshooting
النجوم
36
التفريعات
7
الملفات المرفقة
2
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 2

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها k8s-servant على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي K8s Istio Troubleshooting في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-istio-troubleshooting
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/k8s-servant/k8s-skills.git /tmp/k8s-skills
mkdir -p .claude/skills
cp -r /tmp/k8s-skills/skills/k8s-istio-troubleshooting .claude/skills/k8s-istio-troubleshooting
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل K8s Istio Troubleshooting في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة K8s Istio Troubleshooting تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط K8s Istio Troubleshooting بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Istio troubleshooting

Find out why requests fail or behave unexpectedly in an Istio mesh, and propose a fix. Read first, ask before changing. Run the investigation commands freely. Run a command under an "Ask first" line only after the user approves that exact command; if your credentials do not allow it, give it to the user to run. Never run a "Proposed fix"; hand it to the user.

In sidecar mode every meshed pod has an Envoy container, istio-proxy, injected when its namespace has istio-injection=enabled (or an istio.io/rev label). The client's sidecar routes by VirtualServices and DestinationRules (subsets, load balancing, TLS); the server's sidecar enforces PeerAuthentication (mTLS) and AuthorizationPolicies. Each sidecar writes an access log line per request with a response flag that says what Envoy did. In ambient mode the node's ztunnel handles L4 and mTLS and an optional waypoint proxy handles L7.

The commands use placeholders: my-namespace, my-app (the server and its Service), my-web (the client) and my-pod. Replace them with the real names. The built-in view role cannot read Istio's resources (Istio adds nothing to it, and its own reader role also grants Secrets); if they are forbidden, say so and ask the user for them. Never read Secrets: not certificates, not istio-ca-secret, not gateway TLS Secrets. For that reason do not run istioctl analyze against the cluster (it reads Secrets), do not use istioctl proxy-config secret, and do not fetch Envoy's full config_dump or /certs.

When to use

  • A request inside the mesh, or through an Istio gateway, returns 403, 404, 503 or a reset, while the app itself is fine.
  • Routing rules (weights, subsets, headers) or policies do not take effect.
  • A pod has no istio-proxy container although its namespace is in the mesh.
  • istiod is down, or proxies do not get configuration.

Hand-offs, by skill name. When the evidence points elsewhere, continue with that skill; if it is not installed, keep going with the steps here and tell the user which skill would help:

  • The Service has no endpoints, or the pods are not Ready: k8s-network-troubleshooting and k8s-workload-troubleshooting.
  • A Kubernetes Gateway API route that Istio does not accept: k8s-gateway-api-troubleshooting (the objects' status) and the reference here.
  • What an Envoy response flag, reset reason or cluster statistic means in general: k8s-envoy-troubleshooting (the proxy itself; Istio writes its config).

Investigate

Work through the steps in order. Stop when you have the cause and its evidence.

1. Check the mesh membership of the client and the server: the namespace labels, and whether each pod has an istio-proxy container.

bash
kubectl get namespace my-namespace --show-labels
kubectl get pods -n my-namespace -o jsonpath='{range .items[*]}{.metadata.name}{" "}{.spec.containers[*].name}{" "}{.spec.initContainers[*].name}{"\n"}{end}'
kubectl get pods -n istio-system

2. Read the client's error and both sidecars' access logs. The response flag after the status code says what went wrong.

bash
kubectl logs -n my-namespace deployment/my-web -c istio-proxy --tail=20
kubectl logs -n my-namespace deployment/my-app -c istio-proxy --tail=20

A log line reads "GET / HTTP/1.1" 503 UH no_healthy_upstream ... outbound|80|v2|my-app...: status, response flag, details, and the Envoy cluster (direction, port, subset, host). Access logs must be on (meshConfig.accessLogFile, or a Telemetry resource); if they are empty, say so.

3. Read the Istio resources for the host and the server.

bash
kubectl get virtualservices,destinationrules,gateways,serviceentries,sidecars -A
kubectl get authorizationpolicies,peerauthentications,requestauthentications -A
kubectl get virtualservice my-app -n my-namespace -o yaml
kubectl get destinationrule my-app -n my-namespace -o yaml
kubectl get pods -n my-namespace --show-labels

4. If the cause is still open, ask the proxy itself through its admin API, with GET only, on the pod that logs the error. This runs a program in the user's pod, so ask first:

Ask first: the agent runs this only after the user approves it.

bash
kubectl exec my-pod -n my-namespace -c istio-proxy -- pilot-agent request GET clusters
kubectl exec my-pod -n my-namespace -c istio-proxy -- pilot-agent request GET stats

clusters lists each Envoy cluster with its endpoints and their health. Never send any method other than GET, and never request config_dump without a resource filter or certs.

5. Open the matching reference and follow its steps:

What you seeReference
503 UH, UF, URX, 404 NR, upstream connect error, routing that does not apply, subsets, ServiceEntries, gatewaysreferences/routing.md
403 RBAC: access denied, Connection reset by peer, filter_chain_not_found, mTLS, injection, istiod, ambientreferences/security-and-injection.md

Read the results

What the common findings mean (Istio 1.31):

  • 403 with the body RBAC: access denied, and the server's sidecar logs 403 - rbac_access_denied_matched_policy[...]: an AuthorizationPolicy denies it. [none] means an ALLOW policy selects the workload and no rule matched this request (a principal, namespace, path or method that is not listed).
  • 503 UH no_healthy_upstream on the client's sidecar, with a subset in the cluster name (outbound|80|v2|...): the route points at a DestinationRule subset whose labels match no ready pod.
  • 404 NR (no route) on the client or a gateway: no VirtualService or route matches the host, path or port.
  • upstream connect error or disconnect/reset before headers. reset reason: ... (with UF or URX): Envoy could not connect to, or keep, the upstream: the app is down, the port is wrong, or the mTLS settings of client and server disagree.
  • The client gets Connection reset by peer, and the server's sidecar logs NR filter_chain_not_found: the server requires mTLS (PeerAuthentication STRICT) and the client sent plaintext, usually because it has no sidecar.

State the cause in one sentence, then the evidence you saw (the access log line and its flag, the resource and the field), then the proposed fix.

Proposed fix

Show each fix to the user before running it: what it changes and how to undo it. Istio resources change traffic for every client of a host, and policies change who may talk to whom: never create, change or delete them yourself; hand the change to the user as a proposed fix, in the source they are deployed from. Restarting a workload so it gets a sidecar is reversible, so it goes under "Ask first". Write each undo with the values you found.

Restart a workload after its namespace was added to the mesh, so its pods get a sidecar:

Ask first: the agent runs this only after the user approves it.

bash
kubectl rollout restart deployment/my-web -n my-namespace
# Undo: kubectl rollout undo deployment/my-web -n my-namespace

Sources

Checked against the Istio 1.31 documentation and source (1.31.3):

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي K8s Istio Troubleshooting؟

استخدم هذه المهارة عند تعذّر مرور حركة البيانات في شبكة خدمات Istio على Kubernetes: ظهور HTTP 403 "RBAC: access denied" بسبب AuthorizationPolicy، أو 503 "no healthy upstream" أو "upstream connect error or disconnect/reset before headers"، أو 404 بسبب عدم تطابق المسار، أو "Connection reset by peer" بعد ضبط PeerAuthentication على STRICT، أو عدم حقن sidecars، أو عدم تطبيق قواعد VirtualService أو DestinationRule أو Gateway أو ServiceEntry، أو حدوث مشكلات في istiod أو proxy. تقرأ سجل الوصول الخاص بـ Envoy وأعلام الاستجابة (UH، NR، UF، URX، filter_chain_not_found)، وتغطي وضعي sidecar وambient، وت...

لماذا تستخدم K8s Istio Troubleshooting على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة K8s Istio Troubleshooting عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت K8s Istio Troubleshooting في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/k8s-servant/k8s-skills/tree/main/skills/k8s-istio-troubleshooting. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام K8s Istio Troubleshooting؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع K8s Istio Troubleshooting؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام K8s Istio Troubleshooting معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي K8s Istio Troubleshooting مجانية؟

نعم. نشرها k8s-servant على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل
شعار affaan-m

Deployment Patterns

affaan-m
المجتمعشائع

سير عمل النشر، وأنماط مسارات CI/CD، واستخدام Docker في الحاويات، وفحوصات الصحة، واستراتيجيات التراجع، وقوائم التحقق من الجاهزية للإنتاج لتطبيقات الويب…

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Docker Patterns

affaan-m
المجتمعشائع

أنماط Docker وDocker Compose للتطوير المحلي، وأمان الحاويات، والشبكات، واستراتيجيات وحدات التخزين، وتنسيق الخدمات المتعددة.

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Architecture Decision Records

affaan-m
المجتمعشائع

سجّل قرارات البنية المعمارية أثناء جلسات البرمجة في سجلات ADR منظمة، مع اكتشاف لحظات اتخاذ القرار تلقائيًا وتوثيق السياق والبدائل التي جرى النظر فيها والمبررات. حافظ على سجل ADR يساعد المطورين مستقبلًا على فهم أسباب تشكيل قاعدة الشيفرة على نحوها الحالي.

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Automation Audit Ops

affaan-m
المجتمعشائع

سير عمل لإعداد جرد آلي قائم على الأدلة وتدقيق التداخلات لصالح ECC. استخدمه عندما يريد المستخدم معرفة المهام أو الخطافات أو الموصلات أو خوادم MCP أو الأغلفة النشطة أو المعطلة أو المكررة أو المفقودة قبل إجراء الإصلاحات.

39.1K
261.1K
التعليمات
عرض

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇