Core Track Guardrails-first chapter in core learning path.

Estimated Time

  • Reading: 20-25 min
  • Lab: 45-60 min
  • Quiz: 10-15 min

Prerequisites

Source Code References

  • clusterrole.yaml Members
  • deployment.yaml Members

Sign in to view source code.

What You Will Produce

A reproducible lab result plus quiz verification and incident-safe operating evidence.

Lab Scenarios

  1. Chaos Triage: Trigger a controlled chaos drill (from Chapter 12). Observe how the Guardian captures and normalizes the resulting alerts into a single incident record.
  2. Confidence Analysis: Analyze an incident where the Guardian has a low confidence score (< 0.7). Explain why the provided context was insufficient for a high-confidence hypothesis.
  3. Escalation Drill: Trigger the same failure three times within an hour. Verify that the Guardian correctly transitions the incident from Fresh to Recurring to Persistent.

Core Exercises (Required)

  1. View Incidents: Port-forward to the k8s-ai-monitor service and use curl to view the current list of active incidents.
  2. Audit Sanitization: Check the Guardian’s logs for “redacted” entries during a triage event. Identify which specific fields were removed.
  3. Acknowledge & Resolve: Use the Guardian’s API or CLI to acknowledge an incident, perform a manual fix, and then resolve the incident record.

Challenge Exercise (Optional)

Custom Alert Routing Rule: Configure a new alert routing rule in k8s-ai-monitor for a custom metric threshold. Verify that the guardian correctly normalizes, enriches, and routes the alert through the expected channel.

Done When

You have completed this chapter when:

  • The Guardian has captured and analyzed at least one controlled chaos scenario.
  • You can explain why the Guardian has a read-only RBAC boundary.
  • You have successfully acknowledged and resolved an incident via the API or CLI.
  • You can demonstrate an escalation scenario (Recurring or Persistent).
  • You understand the importance of redacting secrets before LLM analysis.

Knowledge Check

Before finishing this chapter, complete the Quiz to verify your understanding of the guardrail principles.