This comprehensive guide covers all Kubernetes events generated by muster during CRD lifecycle operations, providing detailed explanations, troubleshooting steps, and operational best practices.
muster generates events for all major operations involving:
- MCPServers: Service lifecycle, tool discovery, health monitoring
- Workflows: Execution tracking, step monitoring, tool availability
These are the two resource types accepted by --resource-type (mcpserver,
workflow).
Event emission is always on. In Kubernetes mode events are written as native Kubernetes Events (visible via kubectl describe and kubectl get events); in filesystem mode they are recorded in muster's on-disk event log. Either way they are queryable through the core_events tool and the muster events command.
All muster events include:
- Timestamp: When the event occurred
- Resource: The object the event relates to (MCPServer (or Workflow))
- Reason: Short, machine-readable reason code
- Message: Human-readable description with context
- Type: Event severity (Normal or Warning)
- Source: Component that generated the event (
muster)
MCPServers are external MCP (Model Context Protocol) servers that provide tools to muster. Events track their lifecycle, health, and tool availability.
- Type: Normal
- Meaning: MCPServer CRD was successfully created in the cluster
- Message Example: "MCPServer 'github-server' successfully created"
- Triggered When: Running
muster create mcpserveror applying YAML - Next Steps: Check if server starts automatically if configured
- Type: Normal
- Meaning: MCPServer configuration was successfully updated
- Message Example: "MCPServer 'github-server' configuration updated"
- Triggered When: Modifying MCPServer spec (command, args, environment)
- Next Steps: Monitor for restart if changes affect running process
- Type: Normal
- Meaning: MCPServer CRD was successfully removed
- Message Example: "MCPServer 'github-server' successfully deleted"
- Triggered When: Running
muster delete mcpserveror deleting YAML - Next Steps: Verify associated service instances are handled gracefully
- Type: Normal
- Meaning: MCPServer service is beginning startup process
- Message Example: "MCPServer 'github-server' service beginning startup"
- Triggered When: Service start requested or automatic startup
- Next Steps: Watch for
MCPServerStartedorMCPServerFailedwithin reasonable time
- Type: Normal
- Meaning: MCPServer service started successfully and is available
- Message Example: "MCPServer 'github-server' service started successfully"
- Triggered When: Process starts and initial health checks pass
- Next Steps: Tools should become available; check with
muster list tools
- Type: Normal
- Meaning: MCPServer service was stopped cleanly
- Message Example: "MCPServer 'github-server' service stopped"
- Triggered When: Running
muster stop mcpserveror graceful shutdown - Next Steps: Tools from this server become unavailable
- Type: Normal
- Meaning: MCPServer service is being restarted (stop + start)
- Message Example: "MCPServer 'github-server' service restarting"
- Triggered When: Configuration changes require restart or manual restart
- Next Steps: Brief tool unavailability expected during restart
- Type: Warning
- Meaning: MCPServer operation failed (start, health check, or crash)
- Message Example: "MCPServer github-server operation failed: server unreachable after 4 consecutive failures (endpoint answered HTTP 504, next retry in 2m0s at 2026-09-05T15:57:34Z): failed to initialize streamable-http MCP client: request failed with status 504: Gateway Timeout"
- Triggered When: Process crashes, fails to start, or becomes unresponsive. For a remote server every failed connection attempt emits one event:
connection failure N of 3 before unreachable (...)for the first two,server unreachable after N consecutive failures (...)from the third on. The parenthesis names the HTTP status the endpoint answered with (endpoint answered HTTP 504;endpoint answered HTTP 404for a path not served yet, which is retried the same way) orno HTTP response(connection refused, DNS failure, timeout), and when the next attempt is scheduled. The wait doubles from 30 s per failure and is capped at 2 minutes (MUSTER_MCPSERVER_MAX_BACKOFF). For a server served per session through token exchange two more causes emit it:token exchange fails for every caller until the credentials Secret exists (credentials Secret unavailable, next retry in ...)when theclientCredentialsSecretRefSecret is missing or unreadable at start (retried on the same schedule, neverunreachable), andtoken exchange fails for every caller (TokenExchangeCredentials|TokenExchangeEndpoint|TokenExchangeConnector): ...when a caller's exchange failed in a way every caller shares --invalid_client, a token endpoint that does not answer, an unknown connector. ForTokenExchangeEndpointthe parenthesis also names the token endpoint's HTTP outcome and the scheduled probe (TokenExchangeEndpoint, token endpoint answered HTTP 503, next retry in ...); each probe that still gets no answer emitstoken exchange fails for every caller until the token endpoint answers (...), and the first answer returns the server toAwaiting Session.invalid_clientand an unknown connector schedule no retry: the server leavesFailedon the next successful exchange, a restart or a spec change. - Troubleshooting:
# Check server configuration muster get mcpserver github-server --output yaml # Verify command and arguments # Check if port is available # Review logs for startup errors # Test manual startup (filesystem mode) muster standalone
- Type: Normal
- Meaning: A server served per session with the caller's own identity (
auth.forwardToken,auth.tokenExchange) is reachable and has no session connected. muster holds no connection of its own to such a server, and there is no login to run: the caller's token is forwarded or exchanged when a session uses it. - Message Example: "MCPServer remote-mcp-kubernetes is reachable and connected per session with the caller's identity; no session is connected"
- Triggered When: The token-less probe reaches the endpoint (a 401, or an accepted anonymous initialize that muster discards) and the credentials Secret of a token exchange, if any, loads; the last session's connection to the server is lost; a token exchange that had put the server in
Failedsucceeds again - Next Steps: None. The server is
Connectedwhile a session holds a live connection. TheReadycondition on the MCPServer names the mechanism, the token endpoint and connector, and when the last exchange succeeded
- Type: Normal
- Meaning: A person signs in to the server through muster before it connects: it answered muster's token-less probe with 401, or it pins
auth.authorizationServerand muster discarded the probe it accepted anonymously - Message Example: "MCPServer github requires OAuth authentication to connect"
- Triggered When: The probe meets a 401 on a server without
forwardTokenortokenExchange; a server pinningauth.authorizationServer(withoutforwardTokenortokenExchange) accepts the token-less probe, as backends that list tools anonymously and refuse only the calls do; the last signed-in session's grant to such a server is lost - Next Steps:
muster auth login --server <name>,core_auth_login, or the Dev Portal's Sign in
- Type: Normal
- Meaning: Tools were successfully discovered from MCPServer
- Message Example: "MCPServer 'github-server' discovered 15 tools: github_create_issue, github_list_repos, ..."
- Triggered When: Server starts and advertises capabilities
- Next Steps: Tools are now available for Workflows
- Type: Warning
- Meaning: Tool discovery failed or previously available tools became unavailable
- Message Example: "MCPServer 'github-server' tools unavailable: server connection lost"
- Triggered When: Server crashes, network issues, or MCP protocol errors
- Troubleshooting:
# Check server status muster get mcpserver github-server # Verify server is responsive muster check mcpserver github-server # Test connection manually muster agent --repl # > list tools # Check if tools appear
- Type: Warning
- Meaning: Health checks are consistently failing for MCPServer
- Message Example: "MCPServer 'github-server' health check failed: timeout after 30s"
- Triggered When: Health check endpoint non-responsive or returns errors
- Troubleshooting:
# Check if server process is running # Verify health check endpoint configuration # Check server logs for errors # Test health endpoint manually if exposed
- Type: Normal
- Meaning: Automatic recovery process began for failed MCPServer
- Message Example: "MCPServer 'github-server' automatic recovery started"
- Triggered When: Health checks fail consistently and recovery is enabled
- Next Steps: Monitor for
MCPServerRecoverySucceeded,MCPServerRecoveryAwaitingAuthorMCPServerRecoveryFailed
- Type: Normal
- Meaning: Automatic recovery successfully restored MCPServer
- Message Example: "MCPServer 'github-server' automatic recovery succeeded"
- Triggered When: Recovery process successfully restarts server
- Next Steps: Monitor stability; investigate root cause of failure
- Type: Normal
- Meaning: Automatic recovery reached the MCPServer and it answered as configured without connecting; it waits in
Awaiting Session(a server served per session with the caller's identity) or inAuth Required(a server a person signs in to through muster) for a caller - Message Example: "MCPServer 'model-manager' automatic recovery reached the server; it waits for a signed-in caller"
- Triggered When: Recovery restarts a server whose callers bring their own credentials (
auth.forwardToken,auth.tokenExchange, or an OAuth login through muster) and the server answers the token-less probe with 401 -- typically the start-up race, when the server was not answering yet and its first answer is the expected 401 - Next Steps: None. The server connects on the first call that carries a token (or after
core_auth_login). A 401 from a machine identity (auth.type: sigv4) is aMCPServerRecoveryFailedinstead: there is no user to sign in, so the credential or the role is wrong
- Type: Warning
- Meaning: Automatic recovery failed to restore MCPServer
- Message Example: "MCPServer 'github-server' automatic recovery failed: max retries exceeded"
- Triggered When: Recovery attempts exceed limits or continue failing
- Troubleshooting:
# Manual intervention required # Check underlying issues (ports, permissions, resources) # Consider restarting manually muster stop mcpserver github-server muster start mcpserver github-server
Workflows define sequences of tool executions. Events track configuration, execution, and step-level progress.
- Type: Normal
- Meaning: Workflow CRD was successfully created
- Message Example: "Workflow 'deploy-app' successfully created"
- Triggered When: Creating workflow via CLI or YAML
- Next Steps: Check tool availability and test execution
- Type: Normal
- Meaning: Workflow configuration was updated
- Message Example: "Workflow 'deploy-app' configuration updated"
- Triggered When: Modifying workflow steps, tools, or parameters
- Next Steps: Tool availability may change; test updated workflow
- Type: Normal
- Meaning: Workflow was successfully removed
- Message Example: "Workflow 'deploy-app' successfully deleted"
- Triggered When: Deleting workflow via CLI or YAML removal
- Next Steps: Workflow tool is removed from aggregator
- Type: Warning
- Meaning: Workflow definition failed validation
- Message Example: "Workflow 'deploy-app' validation failed: step 2 references unknown tool 'invalid_tool'"
- Triggered When: Invalid workflow definition detected
- Troubleshooting:
# Check workflow definition muster get workflow deploy-app --output yaml # Validate manually muster check workflow deploy-app # Common issues: # - Invalid tool references # - Malformed step definitions # - Invalid parameter mappings
- Type: Normal
- Meaning: Workflow definition passed validation
- Message Example: "Workflow 'deploy-app' validation successful"
- Triggered When: Successful validation check
- Next Steps: Workflow is ready for execution
- Type: Normal
- Meaning: A run of the workflow began
- Message Example: "Workflow deploy-app run started (run: 0b5c3c4e-8d0a-4f43-9a52-3f1d3e5b7c21)"
- Triggered When: Workflow run via CLI or tool call
- Next Steps: Monitor step completion events
- Type: Normal
- Meaning: The run completed successfully
- Message Example: "Workflow deploy-app run completed successfully (run: 0b5c3c4e-...) (5 steps) in 2m30s"
- Triggered When: All steps complete successfully
- Next Steps: Check the run's result if needed
- Type: Warning
- Meaning: The run failed
- Message Example: "Workflow deploy-app run failed (run: 0b5c3c4e-...): step deploy failed: tool 'docker_run' returned error"
- Triggered When: A step fails and doesn't allow failure (an error, or an error result), its arguments do not validate, or its output template does not render
- Troubleshooting:
# Check the run and its steps muster get workflow-run 0b5c3c4e-8d0a-4f43-9a52-3f1d3e5b7c21 # Review failed step # Check tool availability # Verify step parameters # Test individual step if possible muster agent --repl # > call tool_name {"param": "value"} # Retry the run from the step that failed # > call core_workflow_run_retry {"run_id": "0b5c3c4e-..."}
- Type: Normal
- Meaning: The run was cancelled (
core_workflow_run_cancel) - Message Example: "Workflow deploy-app run cancelled (run: 0b5c3c4e-...)"
- Triggered When: A queued or waiting run is cancelled, or a running run stops before its next step
- Next Steps: None; a cancelled run runs no
onFailuresteps
- Type: Normal
- Meaning: Individual workflow step began execution
- Message Example: "Workflow 'deploy-app' step 'build-image' started using tool 'docker_build'"
- Triggered When: Each step begins execution
- Next Steps: Watch for step completion
- Type: Normal
- Meaning: Individual workflow step completed successfully
- Message Example: "Workflow 'deploy-app' step 'build-image' completed successfully"
- Triggered When: Step execution succeeds
- Next Steps: Next step will begin (if any)
- Type: Warning (unless allowFailure=true)
- Meaning: Individual workflow step failed
- Message Example: "Workflow 'deploy-app' step 'deploy-service' failed: service already exists (allowFailure: true)"
- Triggered When: Step execution fails
- Troubleshooting:
# Check if failure was expected (allowFailure) # Review step configuration # Test tool manually # Check step parameters and context
- Type: Normal
- Meaning: Step was skipped due to condition evaluation
- Message Example: "Workflow 'deploy-app' step 'rollback' skipped: condition 'deployment_failed' evaluated to false"
- Triggered When: Step condition evaluates to false
- Next Steps: Normal behavior for conditional steps
- Type: Normal
- Meaning: Step condition was evaluated
- Message Example: "Workflow 'deploy-app' step 'notify-slack' condition evaluated: true (continue execution)"
- Triggered When: Conditional step evaluation occurs
- Next Steps: Step will execute or be skipped based on result
- Type: Warning
- Meaning: Required tools became unavailable for workflow
- Message Example: "Workflow 'deploy-app' unavailable: 2 required tools missing"
- Triggered When: MCPServers providing required tools become unavailable
- Troubleshooting:
# Check workflow tool requirements muster check workflow deploy-app # Check MCPServer status muster list mcpserver
- Type: Normal
- Meaning: Workflow was registered as executable tool in aggregator
- Message Example: "Workflow 'deploy-app' registered as action_deploy-app tool"
- Triggered When: Workflow becomes available and is registered
- Next Steps: Workflow can be called as
action_deploy-apptool
- Type: Normal
- Meaning: Aggregator capabilities updated after workflow changes
- Message Example: "Workflow capabilities refreshed: 15 workflow tools available"
- Triggered When: Workflow registration/unregistration triggers capability update
- Next Steps: Updated capabilities available to MCP clients
# View all recent events
muster events
# Filter by resource type
muster events --resource-type mcpserver
muster events --resource-type workflow
# Filter by specific resource
muster events --resource-type mcpserver --resource-name github-server
muster events --resource-type workflow --resource-name deploy-app
# Filter by event type
muster events --type Warning
muster events --type Normal
# Time-based filtering
muster events --since 1h
muster events --since 2024-01-15T10:00:00Z --until 2024-01-15T18:00:00Z
# Combined filtering
muster events --resource-type mcpserver --type Warning --since 2h --limit 10
# Follow mode: print the matching events seen so far, then stream new ones as
# they occur via real server push (no client-side polling); press Ctrl+C to stop.
# The server sources the stream from a native Kubernetes watch (Kubernetes mode)
# or an fsnotify watch on the on-disk event log (filesystem mode).
muster events --follow
muster events --resource-type workflow --follow
# Follow honors the output format: --output json emits one JSON object per
# line (newline-delimited JSON), convenient for piping into jq.
muster events --follow --output jsonIn follow mode the resource/type filters (--resource-type, --resource-name,
--namespace, --type) apply to both the initial snapshot and the streamed
events. --limit bounds only the initial snapshot; the live stream is
unbounded. --since / --until apply only to the initial snapshot — a watch
only ever surfaces new events, so a time window does not constrain the stream.
# View all muster events
kubectl get events --field-selector source=muster
# Filter by object
kubectl get events --field-selector involvedObject.kind=MCPServer,involvedObject.name=github-server
# Filter by namespace
kubectl get events -n muster-system --field-selector source=muster
# Filter by reason
kubectl get events --field-selector reason=MCPServerFailed
# Watch events in real-time
kubectl get events --watch --field-selector source=muster# 1. Check recent events for the workflow
muster events --resource-type workflow --resource-name my-workflow --since 1h
# 2. Check MCPServer events for required tools
muster events --resource-type mcpserver --type Warning --since 1h# 1. Check workflow execution events
muster events --resource-type workflow --resource-name deploy-app --since 30m
# 2. Filter for execution-specific events
muster events --resource-type workflow | grep "execution"
# 3. Look for step failures
muster events --resource-type workflow --type Warning# 1. Check for health-related warnings
muster events --type Warning | grep -i health
# 2. Monitor recovery events
muster events | grep -i recovery
# 3. Check tool availability issues
muster events | grep -i "unavailable\|missing"Symptoms:
MCPServerFailedeventsMCPServerToolsUnavailableevents- Tools missing from aggregator
Investigation Steps:
# 1. Check recent MCPServer events
muster events --resource-type mcpserver --resource-name <server> --since 1h
# 2. Check server configuration
muster get mcpserver <server> --output yaml
# 3. Test server availability
muster check mcpserver <server>
# 4. Try manual start
muster start mcpserver <server>Common Causes:
- Port already in use
- Invalid command or arguments
- Missing dependencies
- Permission issues
- Network connectivity problems
Symptoms:
WorkflowRunFailedeventsWorkflowStepFailedevents- Incomplete workflow results
Investigation Steps:
# 1. Check workflow execution events
muster events --resource-type workflow --resource-name <workflow> --since 30m
# 2. Get the run with its steps
muster get workflow-run <run-id>
# 3. Test failed tool manually
muster agent --repl
# > call <failed-tool> {...}
# 4. Check tool availability
muster check workflow <workflow>Symptoms:
- Multiple
ToolsUnavailableevents - MCPServer tools become unavailable
- Workflows fail with tool errors
Investigation Steps:
# 1. Check which MCPServers are affected
muster events --type Warning | grep -i "tools.*unavailable"
# 2. Check MCPServer status
muster list mcpserver
# 3. Check for connectivity issues
muster agent --repl
# > list tools
# 4. Recover affected servers. muster reconciles MCP servers from their
# definitions and retries unreachable ones automatically. To force a
# reconnect, re-apply the definition (kubectl apply / muster create) or
# restart the aggregator. There is no `muster restart`.
muster get mcpserver <affected-server> -o yaml-
Regular Health Checks
# Set up regular monitoring muster events --type Warning --since 1h -
Resource-Specific Monitoring
# Monitor critical resources muster events --resource-type mcpserver --resource-name critical-server -
Automated Alerting
# Example: Alert on warnings if muster events --type Warning --since 5m | grep -q .; then echo "Warning events detected!" fi
- Timeline Analysis: Use
--sinceand--untilto understand event sequences - Correlation: Compare events across related resources (Workflow + MCPServer)
- Pattern Recognition: Look for recurring issues or patterns
- Warning Events: Always investigate Warning events promptly
- Recovery Events: Monitor recovery success rates
- Tool Availability: Track tool availability patterns for capacity planning
- Execution Monitoring: Monitor workflow execution success rates
- Events follow Kubernetes TTL policies (typically 1 hour)
- Use external logging solutions for long-term retention
- Consider event aggregation for monitoring
- Events persist in
events.logfile - Manual cleanup required
- Suitable for development and debugging
Events can be scraped and converted to metrics for dashboards and alerting.
Events can be forwarded to log aggregation systems for analysis and retention.
Event data can power operational dashboards showing system health and activity.
muster's event system provides comprehensive visibility into system operations. By understanding event types, their meanings, and troubleshooting approaches, operators can effectively monitor, diagnose, and maintain muster deployments.
Regular event monitoring, combined with proper alerting and response procedures, ensures reliable operation of muster-managed services and workflows.