/kubernetes-platform-skills:metallb-configuration-validationfrom kubernetes-platform-skills
Validates MetalLB IP pool allocation, BGP peering health, and external reachability of LoadBalancer Services before production use.
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.
MetalLB reporting a LoadBalancer Service's EXTERNAL-IP as assigned
only means the controller successfully allocated an address from a
pool — it says nothing about whether that address is actually reachable
from outside the cluster, which depends on a second, independent layer
(ARP/NDP announcement in Layer2 mode, or an Established BGP session in
BGP mode) that can fail silently relative to the allocation itself. This
gap — "Kubernetes says it's assigned" vs. "the network actually routes
to it" — is the most common source of confusing MetalLB incidents, and
is structurally the same class of problem as trusting a CephCluster
CRD's Ready status over ceph status in
rook-ceph-configuration-validation.
This skill covers the validation checks — pool capacity, BGP peer state,
and true external reachability — that should run before depending on a
MetalLB configuration built per
metallb-bare-metal-load-balancer-configuration
in production.
LoadBalancer Service.LoadBalancer Service shows an EXTERNAL-IP but is unreachable
from clients outside the cluster.IPAddressPool has enough headroom before onboarding
more Services, to avoid a future allocation failure.BGPPeer resource
exists) after initial setup or after any network-side router
reconfiguration.kubectl access to the metallb-system namespace.CephCluster CRD's status shouldn't be trusted alone in
rook-ceph-configuration-validation.metallb CLI or direct kubectl access to MetalLB CRDs
(IPAddressPool, BGPPeer, BGPAdvertisement,
L2Advertisement) and the speaker pods' logs.Check pool allocation state before it becomes a blocker — don't wait for a Service to fail to get an IP to notice a pool is nearly exhausted:
kubectl -n metallb-system get ipaddresspools -o yaml
kubectl get svc -A -o jsonpath='{range .items[?(@.spec.type=="LoadBalancer")]}{.metadata.namespace}/{.metadata.name}: {.status.loadBalancer.ip}{"\n"}{end}'
Compare the pool's configured range size against the count of currently-allocated Services; if headroom is within a handful of addresses of the pool's total capacity, treat that as an action item (expand the pool, or move some Services to another pool) before it blocks a future rollout.
Confirm every LoadBalancer Service actually has a real, non-empty
EXTERNAL-IP, not just a status field that looks populated:
kubectl get svc -A -o wide | grep LoadBalancer
A Service stuck showing <pending> after a reasonable time (more
than a few seconds past creation) means allocation itself failed —
check the metallb-controller pod logs for the specific reason
(pool exhausted, no pool matches the Service's
metallb.io/address-pool annotation, autoAssign: false on every
candidate pool with no explicit pool referenced):
kubectl -n metallb-system logs -l app=metallb,component=controller --tail=100
For Layer2 mode, confirm which node is currently announcing each service IP, and that it's a genuinely healthy node:
kubectl -n metallb-system logs -l app=metallb,component=speaker --tail=200 | grep <service-ip>
MetalLB's speaker logs identify which node currently holds the
"leader" role for each address; cross-check that node is Ready and
not under memory/CPU pressure — an address being announced from an
unhealthy node is a leading indicator of an impending, harder-to-
diagnose outage when that node eventually fails completely.
For BGP mode, check MetalLB's own view of peer state first, but don't stop there:
kubectl -n metallb-system logs -l app=metallb,component=speaker --tail=200 | grep -i bgp
Recent MetalLB versions expose peer session state directly; a peer
stuck anywhere other than Established (Active, Connect,
OpenSent, OpenConfirm) means the session never actually formed,
and every IP MetalLB "assigned" for that peer is unreachable from
the network side despite Kubernetes reporting the Service as having
an EXTERNAL-IP.
Cross-check against the router's own BGP neighbor table — this is the step most teams skip, and the one that actually confirms reachability rather than just MetalLB's self-reported state:
# On the router (syntax varies by vendor)
show bgp neighbors 10.0.0.1
Confirm the neighbor state is Established on the router's side
too, and that routes for the MetalLB-advertised prefixes
(aggregationLength: 32 means individual /32 routes per Service
IP) are actually present in the router's routing table
(show ip route 10.0.100.20) — a session that's Established on
MetalLB's side but where the router hasn't installed the
corresponding route is still a broken path.
Validate true end-to-end external reachability, from a vantage point genuinely outside the cluster's own node network, not just from another pod or another cluster node:
curl -sS -o /dev/null -w '%{http_code}\n' --max-time 5 https://<external-ip>:<port>/healthz
Run this from a client machine on a different subnet/VLAN than the cluster nodes when possible — a reachability test run from inside the same L2 segment as the cluster can succeed even when a routing or BGP misconfiguration would prevent access from anywhere else.
Simulate a node failure in a non-production validation exercise to confirm failover actually works before trusting it in an incident:
kubectl cordon <node-currently-announcing-ip>
# for a real test: power off or kubectl drain --delete-emptydir-data --force the node in a staging cluster
For Layer2 mode, confirm a different node picks up the announcement within an acceptable time window (watch the speaker logs); for BGP mode, confirm the router's ECMP/failover reroutes traffic to a surviving node's advertised path. Never perform this test by powering off a node in a live production cluster without an explicit, planned maintenance window.
Re-run pool/peering checks after any change to the underlying network (a router firmware upgrade, a VLAN change, a new switch in the path) — MetalLB's configuration itself may be unchanged while the network beneath it silently stops cooperating, and only a validation pass (not just "no one changed the MetalLB YAML") catches that.
Symptom: kubectl get svc shows a real EXTERNAL-IP, but the
Service is unreachable from outside the cluster.
Fix: An allocated IP is not the same as a reachable one — check
Layer2 speaker logs for which node (if any) is actually announcing
that address, or BGP peer state for Established vs. stuck in an
earlier negotiation phase. Kubernetes-level Service status reflects
successful allocation from the pool, not network-level reachability.
Symptom: A new Service fails to get any EXTERNAL-IP at all,
staying <pending> indefinitely, even though existing Services
using the same pool work fine.
Fix: Check pool utilization (step 1) — the pool is very likely
exhausted, and MetalLB has no fallback behavior beyond leaving the
Service unassigned. Expand the pool's address range or free up
addresses from decommissioned Services rather than assuming a
MetalLB bug.
Symptom: A BGPPeer resource exists and MetalLB's logs show no
errors, but the router's neighbor table never shows the session
established.
Fix: Check for an ASN or peer-address mismatch between the
BGPPeer CRD's myASN/peerASN/peerAddress and what's actually
configured on the router — this is the single most common BGP
peering failure, and it's invisible from the Kubernetes side alone
since MetalLB may just show the session stuck in an early state
without a descriptive error pointing at "your ASN doesn't match."
Symptom: Reachability works fine from a test machine on the same subnet as the cluster nodes, but fails from a genuinely external client (a different VLAN, or over the internet through an edge router). Fix: The earlier test wasn't actually exercising the network path that matters — a same-subnet test can succeed via ARP/local routing even when the BGP-advertised route (or a firewall rule along the real external path) is broken. Always include at least one test from a vantage point outside the cluster's local L2 segment before declaring a Service production-ready.
Symptom: Someone runs a node-failure test by hard-powering-off a production node "just to check failover," causing a real, unplanned outage for Services whose only healthy replica/announcement was on that node. Fix: This is a destructive validation action performed against the wrong environment — failover/failure-injection tests belong in a staging/non-production cluster with a planned maintenance window and stakeholder notice, following the same discipline as chaos-engineering practice in chaos-engineering-and-resilience-testing, not as an ad hoc test against production.
Scenario: payments-api's LoadBalancer Service (configured per
metallb-bare-metal-load-balancer-configuration's
worked example) shows EXTERNAL-IP: 10.0.0.210, but a customer reports
intermittent timeouts reaching it.
Confirm the Service's own status looks fine (allocation succeeded):
kubectl get svc payments-api -n payments
# EXTERNAL-IP: 10.0.0.210 PORT(S): 443:31820/TCP
Check which node is currently announcing that IP in Layer2 mode:
kubectl -n metallb-system logs -l app=metallb,component=speaker --tail=500 | grep 10.0.0.210
Shows worker-2 announcing the address. Check worker-2's health:
kubectl describe node worker-2 | grep -A5 Conditions
MemoryPressure: True — the node is under memory pressure, which
can cause the speaker pod itself to be slow to respond to ARP
requests or occasionally get OOM-adjacent scheduling delays,
producing exactly the intermittent (not total) timeout pattern
reported.
Validate from a genuinely external vantage point to confirm the scope of impact:
curl -sS -o /dev/null -w '%{http_code} %{time_total}\n' --max-time 5 https://10.0.0.210/healthz
Run repeatedly over a few minutes — intermittent failures/timeouts
correlate with the memory-pressure windows on worker-2.
Remediate the underlying node pressure (reschedule workloads,
investigate the memory-hungry pod) rather than treating this as a
MetalLB configuration problem — MetalLB itself is configured
correctly; the node it happened to be announcing from was
unhealthy. Confirm resolution by re-running the external curl test
and checking worker-2's conditions return to normal.
calicoctl node status), for pod-network BGP rather than MetalLB's service-IP BGP.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin kubernetes-platform-skills35 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."
Other plugins' skills for the same job