/kubernetes-platform-skills:service-mesh-istiofrom kubernetes-platform-skills
Guides installing and operating Istio service mesh — configuring traffic management with VirtualService and DestinationRule, enforcing mutual TLS (mTLS), and setting up mesh observability (metrics, tracing, access logs). Useful when users ask about canary routing, sidecar debugging, or mTLS enforcement.
Ships in kubernetes-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Istio moves cross-cutting network concerns — mTLS, retries, timeouts,
traffic splitting, fine-grained observability — out of application code
and into a sidecar proxy (Envoy) that every service call passes through.
That power comes with real operational cost: sidecars add latency and
resource overhead, misconfigured VirtualService/DestinationRule
pairs silently blackhole traffic, and mTLS misconfiguration can either
leave traffic unencrypted or break all cross-namespace calls at once.
This skill covers installing Istio deliberately (not "install
everything") and configuring traffic management and mTLS in a way that
fails safely.
VirtualService weighted routing.503 UC/503 NR errors or unexpected
timeout behavior.istioctl matching (or within one minor version of) the control
plane version being installed.istio-init/CNI
plugin to set up pod-level iptables redirection, or Istio's CNI plugin
installed in place of the init-container approach (required on
clusters, like OpenShift, that restrict privileged init containers).Choose an install profile deliberately rather than defaulting to
default:
istioctl profile list
istioctl install --set profile=minimal -y # control plane only, no ingress/egress gateway
istioctl install --set profile=default -y # control plane + ingress gateway (most common start)
Use demo only for local learning/testing — it enables verbose
tracing and permissive settings not appropriate for production.
Verify the install before enabling injection anywhere:
istioctl verify-install
kubectl get pods -n istio-system
Enable sidecar injection per namespace, not cluster-wide, so rollout is deliberate and reversible per team/service:
kubectl label namespace payments istio-injection=enabled
Existing pods in that namespace need a rollout restart to actually pick up the sidecar — labeling alone doesn't inject into already- running pods:
kubectl rollout restart deployment -n payments
Configure traffic splitting with a DestinationRule (defines
subsets) and a VirtualService (routes traffic to them):
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata:
name: payments-api
spec:
host: payments-api.payments.svc.cluster.local
subsets:
- name: v1
labels: { version: v1 }
- name: v2
labels: { version: v2 }
---
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
name: payments-api
spec:
hosts: ["payments-api.payments.svc.cluster.local"]
http:
- route:
- destination: { host: payments-api.payments.svc.cluster.local, subset: v1 }
weight: 90
- destination: { host: payments-api.payments.svc.cluster.local, subset: v2 }
weight: 10
Shift weight incrementally (90/10 → 50/50 → 0/100) while watching
error rate and latency for the v2 subset before removing v1.
Add resilience policies (timeout, retries, outlier detection) on
the same VirtualService/DestinationRule pair:
spec:
hosts: ["payments-api.payments.svc.cluster.local"]
http:
- timeout: 3s
retries:
attempts: 2
perTryTimeout: 1s
retryOn: 5xx,reset,connect-failure
route:
- destination: { host: payments-api.payments.svc.cluster.local, subset: v1 }
# DestinationRule outlier detection (circuit breaking)
spec:
host: payments-api.payments.svc.cluster.local
trafficPolicy:
outlierDetection:
consecutive5xxErrors: 5
interval: 30s
baseEjectionTime: 30s
maxEjectionPercent: 50
Retries combined with a short per-try timeout can amplify load on an
already-struggling backend — cap attempts and maxEjectionPercent
deliberately rather than defaulting to aggressive retry settings.
Enable mTLS incrementally, starting permissive, so mixed mesh/non-mesh traffic doesn't break during rollout:
apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata:
name: default
namespace: payments
spec:
mtls:
mode: PERMISSIVE # accepts both plaintext and mTLS
Once all callers into the namespace are confirmed to be in-mesh
(check via istioctl x describe or mesh metrics for plaintext
connections), tighten to strict:
spec:
mtls:
mode: STRICT
Warning: flipping directly to
STRICTmesh-wide before every caller is sidecar-injected breaks any non-meshed client (a cron Job without injection, an external health checker hitting the pod IP directly) instantly and cluster-wide. Roll out namespace-by-namespace and confirm via traffic metrics first.
Enable observability: Istio emits Prometheus metrics
(istio_requests_total, istio_request_duration_milliseconds) and
propagates trace headers automatically once the app forwards
traceparent/x-b3-* headers on outbound calls it makes. Install
the observability addons (Prometheus, Grafana, Kiali, Jaeger/Tempo)
or point Istio's telemetry at existing infra via a Telemetry
resource rather than assuming a default sink exists:
apiVersion: telemetry.istio.io/v1
kind: Telemetry
metadata:
name: mesh-default
namespace: istio-system
spec:
tracing:
- randomSamplingPercentage: 5.0
Validate configuration before it reaches production:
istioctl analyze -n payments
istioctl proxy-config routes deploy/payments-api -n payments
istioctl analyze catches the most common misconfigurations
(a VirtualService referencing a DestinationRule subset that
doesn't exist, a host mismatch) before they cause a live 503.
minimal or default profile and add gateways/features
as a specific need arises — every enabled component is more attack
surface and more upgrade coordination.VirtualService hosts to the fully-qualified service name
(<svc>.<ns>.svc.cluster.local) to avoid ambiguity when multiple
namespaces have same-named services.trafficPolicy default in every DestinationRule
(connection pool limits, outlier detection) rather than relying on
Envoy's defaults, which are tuned for generic workloads, not yours.istioctl upgrade/control-plane version bumps as a change with
real blast radius — use istioctl x precheck and, for multi-revision
clusters, canary the control plane with revision tags before
migrating all namespaces.PeerAuthentication/AuthorizationPolicy
resources per namespace small and centrally reviewed — authorization
policy sprawl across many narrowly-scoped resources is hard to reason
about holistically and easy to leave a gap in.Symptom: Calls between two services return 503 UC (upstream
connection termination) intermittently after enabling the mesh.
Fix: Usually a DestinationRule connection-pool limit
(maxConnections/http1MaxPendingRequests) that's too low for actual
traffic, or outlier detection ejecting healthy instances too
aggressively. Check istioctl proxy-config cluster <pod> for the
effective connection-pool settings and outlier-detection state before
assuming it's an application bug.
Symptom: 503 NR ("no route") appears after applying a new
VirtualService.
Fix: The VirtualService host doesn't match any route Envoy
knows about — often a namespace-qualification mismatch, or the
DestinationRule subset referenced doesn't exist. Run istioctl analyze first; it catches this class of error before it reaches
traffic.
Symptom: After enabling PeerAuthentication in STRICT mode
cluster-wide, a batch Job or an external monitoring probe that talks
directly to pod IPs starts failing entirely.
Fix: Non-sidecar-injected clients cannot participate in mTLS.
Either inject sidecars into that workload too, exempt the specific
port via PeerAuthentication portLevelMtls, or route the probe
through a path that doesn't require mTLS — never flip to STRICT
mesh-wide without first inventorying every non-meshed caller.
Symptom: Sidecar injection was enabled on a namespace but existing
pods show no istio-proxy container.
Fix: The istio-injection=enabled label only affects new pod
admissions via the mutating webhook; existing pods must be recreated
(kubectl rollout restart deployment -n <ns>) to pick up the sidecar.
Symptom: Upgrading the Istio control plane breaks data-plane
compatibility for workloads not yet restarted.
Fix: Envoy sidecars from an old control-plane version can be
incompatible with a newer istiod's xDS config beyond a couple of
minor versions ("N-2" support window varies by release). Use revision
tags (istioctl install --set revision=1-24) to run old and new
control planes side by side, migrate namespaces gradually, and
restart workloads to pick up matching sidecar versions before
decommissioning the old revision.
Scenario: Canary a new version of payments-api (v2) behind mTLS,
starting at 10% traffic, with a 3s timeout and bounded retries, in the
payments namespace.
kubectl label namespace payments istio-injection=enabled
kubectl rollout restart deployment -n payments
apiVersion: security.istio.io/v1
kind: PeerAuthentication
metadata: { name: default, namespace: payments }
spec:
mtls: { mode: PERMISSIVE }
---
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata: { name: payments-api, namespace: payments }
spec:
host: payments-api.payments.svc.cluster.local
subsets:
- name: v1
labels: { version: v1 }
- name: v2
labels: { version: v2 }
trafficPolicy:
outlierDetection:
consecutive5xxErrors: 5
interval: 30s
baseEjectionTime: 30s
---
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata: { name: payments-api, namespace: payments }
spec:
hosts: ["payments-api.payments.svc.cluster.local"]
http:
- timeout: 3s
retries: { attempts: 2, perTryTimeout: 1s, retryOn: 5xx,connect-failure }
route:
- destination: { host: payments-api.payments.svc.cluster.local, subset: v1 }
weight: 90
- destination: { host: payments-api.payments.svc.cluster.local, subset: v2 }
weight: 10
istioctl analyze -n payments
kubectl apply -f canary.yaml
watch -n5 'kubectl exec deploy/payments-api-v2 -n payments -c istio-proxy -- pilot-agent request GET stats | grep 5xx'
Once v2 shows a healthy error rate at 10% for a soak period, shift to
50/50, then 0/100, before removing the v1 subset and (separately,
once no plaintext callers remain) tightening PeerAuthentication to
STRICT.
NetworkPolicy enforcement.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
35 skills in this plugin
/cert-manager-tls-automationGuides installing and configuring cert-manager for automated TLS certificate issuance and renewal — Issuers vs. ClusterIssuers, ACME/ Let's Encrypt HTTP-01 and DNS-01 challenges, private-CA issuance, and integration with Ingress-nginx and Istio gateways. Use when a user asks to "automate TLS certificates on Kubernetes," "set up cert-manager with Let's Encrypt," "fix a stuck Certificate that won't become Ready," "use DNS-01 for a wildcard cert," "rotate mTLS certs automatically," or "issue certs from an internal CA."
/cni-networking-calico-flannelGuides choosing and installing a Kubernetes CNI plugin — Calico vs. Flannel — including NetworkPolicy enforcement capability differences, BGP vs. VXLAN/overlay data paths, and IP address management (IPAM) tradeoffs. Use when a user asks to "choose a CNI plugin for Kubernetes," "enable NetworkPolicy enforcement," "set up Calico with BGP peering," "install Flannel," "debug pod-to-pod connectivity across nodes," or "migrate from Flannel to Calico."
/complete-kubernetes-deployment-on-aks-from-scratchSequences a complete, end-to-end AKS deployment from a bare Azure subscription to a production-ready cluster serving a first workload — Azure landing zone prerequisites, AKS cluster and node pool provisioning, Azure CNI (with the Calico/Cilium alternative noted), ingress (Application Gateway Ingress Controller vs. ingress-nginx), cert-manager with Azure DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on AKS from scratch," "set up a new AKS environment end to end," "build a production AKS cluster from a fresh Azure subscription," or "give me the full sequence to go from nothing to a working AKS cluster."
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin kubernetes-platform-skillsOther plugins' skills for the same job