/serverless-compute-skills:knative-eventing-configurationfrom serverless-compute-skills
Configures Knative Eventing Brokers, Triggers, and event Sources for CloudEvents-based pub/sub routing. Use when setting up event-driven communication, debugging Trigger delivery, or wiring Sources to Brokers.
Ships in serverless-compute-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.
Knative Eventing is a separate component from Knative Serving —
it's a CloudEvents-native publish/subscribe layer for routing events
between producers (Sources) and consumers (Services or other sinks)
through a Broker, with Triggers declaring filtered subscriptions,
rather than the request/response, scale-to-zero model covered in
knative-serverless-configuration.
Conflating the two is a common source of confusion: a Knative Service
still receiving events via a Trigger scales the same way as any other
Knative Service, but the routing, filtering, retry, and dead-lettering
semantics belong entirely to Eventing, not Serving. This skill covers
Brokers, Triggers, and Sources specifically.
kubectl get brokers.eventing.knative.dev -A -o wide and confirm the
backing implementation before assuming delivery guarantees).kubectl access to brokers.eventing.knative.dev,
triggers.eventing.knative.dev, and the specific Source CRDs in use.type,
source, subject, data), since Trigger filters match on these
attributes.Create a Broker as the central event routing point in a namespace, rather than wiring Sources directly to subscribers:
apiVersion: eventing.knative.dev/v1
kind: Broker
metadata:
name: orders-broker
namespace: prod
annotations:
eventing.knative.dev/broker.class: MTChannelBasedBroker
Direct Source-to-sink wiring works for a single, simple integration but doesn't scale to multiple consumers of the same event stream — a Broker lets multiple Triggers subscribe to the same event flow independently.
Wire an event Source to the Broker, not directly to a consumer:
apiVersion: sources.knative.dev/v1
kind: ApiServerSource
metadata:
name: order-pod-watcher
namespace: prod
spec:
serviceAccountName: order-pod-watcher-sa
mode: Resource
resources:
- apiVersion: v1
kind: Event
sink:
ref:
apiVersion: eventing.knative.dev/v1
kind: Broker
name: orders-broker
For a simple recurring test/heartbeat event, PingSource is the
built-in choice; for real business events, a custom Source (a small
adapter service that receives or polls upstream events and emits
CloudEvents to the Broker's ingress) or a maintained community Source
(Kafka, cloud-provider event sources) is more typical.
Declare Triggers with explicit CloudEvents attribute filters, not a Trigger with no filter subscribing a consumer to every event on the Broker:
apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
name: order-created-to-fulfillment
namespace: prod
spec:
broker: orders-broker
filter:
attributes:
type: com.example.order.created
subscriber:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: fulfillment-service
A Trigger with no filter (or an overly broad one) delivers every
event on the Broker to that subscriber, which both wastes the
subscriber's capacity and couples it to event types it was never
designed to handle.
Configure delivery retry and dead-lettering per Trigger so a subscriber outage or transient failure doesn't silently drop events:
apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
name: order-created-to-fulfillment
namespace: prod
spec:
broker: orders-broker
filter:
attributes:
type: com.example.order.created
subscriber:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: fulfillment-service
delivery:
retry: 5
backoffPolicy: exponential
backoffDelay: PT0.5S
deadLetterSink:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: order-events-dlq-handler
Without a deadLetterSink, an event that exhausts its retries is
dropped with no record — the same silent-data-loss risk as an async
Lambda invocation with no Dead Letter Queue configured.
Use multiple attribute filters (or filters with all/any, on
Eventing versions that support the newer filter expression syntax)
to narrow subscriptions precisely, rather than one broad Trigger
per consumer handling unrelated event types internally with an
if/else — check the installed Eventing version's supported filter
syntax (spec.filter.attributes is the long-standing form; newer
spec.filters array-based expressions add any/all/not/exists
matching where available) before assuming the newer syntax is
supported.
Validate Broker delivery guarantees match the workload's actual requirement. The in-memory channel-based Broker is simpler to operate but doesn't persist events beyond its backing channel's retention; a Kafka-backed Broker gives durable, replayable delivery at the cost of running and operating Kafka. Pick deliberately based on whether losing in-flight events during a Broker component restart is acceptable for this workload.
delivery.deadLetterSink on Triggers whose events
matter (order processing, billing, anything with a compliance or
financial impact) — an event silently dropped after exhausting
retries is a data-loss incident waiting to be discovered.Symptom: A Trigger's subscriber never receives any events, even
though the Source and Broker both show as Ready.
Fix: The Trigger's filter.attributes likely doesn't match the
actual CloudEvents attributes the Source emits (a mismatched type
string is the most common cause); inspect the raw event with
kubectl logs on the Broker's ingress or a debug subscriber with no
filter, confirm the exact attribute values, then correct the
Trigger's filter to match.
Symptom: One misbehaving Source floods the Broker with events, and every subscriber sees degraded performance, not just the intended consumer. Fix: All Triggers on a shared Broker receive from the same event stream; add specific filters so unrelated subscribers aren't invoked at all for irrelevant event types, and consider a separate Broker per logical domain if one producer's volume is disproportionate to others sharing the same Broker.
Symptom: Events related to a failed downstream call (subscriber
temporarily down) simply disappear with no record after some time.
Fix: No deadLetterSink was configured on the Trigger, so events
that exhaust retries are dropped; add a deadLetterSink pointing to
a handler (even a simple one that logs to durable storage) and
alarm on messages arriving there.
Symptom: A team assumes events sent to a Broker are durably persisted and can be replayed after an incident, but they're gone. Fix: The installed Broker implementation is the in-memory channel-based one, which doesn't guarantee durable replay across a channel component restart; if replay/durability is a real requirement, migrate to a Kafka-backed (or equivalent durable) Broker implementation rather than assuming all Broker classes behave the same.
Symptom: A new Trigger is added for a new consumer, and an unrelated, already-working consumer starts receiving unexpected events too. Fix: The new Trigger's filter was left too broad (or omitted), causing it to match events also delivered to the existing consumer's own Trigger if their filters overlap unintentionally; audit all Triggers on the shared Broker for filter overlap, not just the newly added one, when diagnosing unexpected delivery.
Scenario: An order-created event, published by the order service
directly to a Broker as a CloudEvent, needs to reach both a fulfillment
service and a separate analytics-ingestion service, with the
fulfillment path requiring reliable delivery (retry + dead-letter) and
the analytics path tolerating occasional drops.
Broker:
apiVersion: eventing.knative.dev/v1
kind: Broker
metadata:
name: orders-broker
namespace: prod
Trigger for fulfillment (reliable delivery):
apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
name: order-created-to-fulfillment
namespace: prod
spec:
broker: orders-broker
filter:
attributes:
type: com.example.order.created
subscriber:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: fulfillment-service
delivery:
retry: 5
backoffPolicy: exponential
backoffDelay: PT0.5S
deadLetterSink:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: order-events-dlq-handler
Trigger for analytics (best-effort, no dead-letter needed):
apiVersion: eventing.knative.dev/v1
kind: Trigger
metadata:
name: order-created-to-analytics
namespace: prod
spec:
broker: orders-broker
filter:
attributes:
type: com.example.order.created
subscriber:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: analytics-ingest
delivery:
retry: 2
Both Triggers subscribe to the same com.example.order.created event
type on the same Broker independently — the order service publishes
once to the Broker's ingress with no knowledge of either consumer, and
each Trigger's own delivery policy reflects that consumer's actual
reliability requirement rather than a one-size-fits-all setting shared
across every subscriber.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin serverless-compute-skills10 skills in this plugin
/aws-lambda-configuration-validationValidates an AWS Lambda function's configuration — reserved/provisioned concurrency budget, VPC networking config, environment variables, IAM execution role scope, and failure handling — before it deploys, catching problems that only otherwise surface as production throttling or an incident. Use when the user asks to "validate a Lambda function before deploy," "check Lambda reserved concurrency," "review a Lambda IAM role," "why is my Lambda throttling," or "add a pre-deploy check for Lambda config."
/aws-lambda-packaging-and-configurationPackages an AWS Lambda function as a zip deployment package or container image, tunes memory/timeout/ephemeral storage, mitigates cold starts, and scopes the function's IAM execution role to least privilege. Use when the user asks to "package a Lambda function," "build a container image for Lambda," "reduce Lambda cold start latency," "tune Lambda memory or timeout," "add a Lambda layer," or "scope down a Lambda execution role."
/azure-functions-configurationConfigures Azure Functions hosting plans (Consumption, Premium, Dedicated/App Service), triggers and bindings, and host.json/ application settings, with explicit cold-start tradeoffs between plans. Use when the user asks to "choose an Azure Functions hosting plan," "set up a Function App trigger or binding," "reduce Azure Functions cold start," "configure Premium plan pre-warmed instances," or "write host.json for a Function App."
/dapr-configuration-validationValidates Dapr component configurations — state store, pub/sub, and binding components — before deploy, catching missing scopes, inline secrets, unbounded retries, and resiliency gaps that `kubectl apply` won't reject. Use when the user asks to "validate a Dapr component before deploy," "check Dapr component scoping," "review a Dapr pub/sub config for secrets," "add a pre-deploy gate for Dapr components," or "why did my Dapr component apply but not work as expected."
/dapr-distributed-runtime-configurationConfigures Dapr's sidecar building blocks — state management, pub/sub, and service invocation — for polyglot microservices, including component YAML, sidecar annotations, and resiliency policies. Use when the user asks to "add a Dapr state store component," "set up Dapr pub/sub between services," "call another service via Dapr service invocation," "configure a Dapr sidecar for a Kubernetes deployment," or "add retry/circuit-breaker resiliency to a Dapr building block."
/google-cloud-functions-configurationConfigures Google Cloud Functions Gen1 vs. Gen2 (Cloud Run-backed) runtime differences, HTTP/event/CloudEvent triggers, and min/max instance scaling settings, including concurrency and cold-start tradeoffs unique to each generation. Use when the user asks to "choose Cloud Functions Gen1 or Gen2," "set min instances on a Cloud Function," "configure a Pub/Sub or Eventarc trigger," "reduce Cloud Functions cold start," "migrate a function from Gen1 to Gen2," or "why is my Cloud Function scaling past max instances."
Other plugins' skills for the same job