runtime-config-flagd

Inspect and toggle flagd feature flags in Kubernetes to control OTel Demo incident scenarios.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill runtime-config-flagd-erwinv2k-tkg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: runtime-config-flagd
Source: https://github.com/erwinv2k-TKG/AgentesVSC/tree/main/packs/incidentfox/sre-agent/.claude/skills/runtime-config-flagd
Command: npx skills add https://github.com/erwinv2k-TKG/AgentesVSC --skill runtime-config-flagd-erwinv2k-tkg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? When investigating incidents in the OpenTelemetry Demo environment, engineers need a safe, scriptable way to see which failure-injection feature flags are active and to disable them for remediation without manually editing Kubernetes ConfigMaps. ## Core Features & Use Cases - Scenario Discovery: List all incident scenarios (payment failures, CPU spikes, memory leaks, Kafka lag, LLM errors) with current status, affected service, detection PromQL, and remediation steps. - Flag Inspection: Read any flag's variants, current default variant, and state directly from the flagd ConfigMap. - Safe Remediation: Toggle flags with a mandatory dry-run preview before patching the ConfigMap, which flagd hot-reloads within seconds. - Use Case: During an active payment-failure incident, run list_scenarios.py --active-only to confirm the flag, dry-run set_flag.py paymentFailure off, then apply it and verify recovery in metrics. ## Quick Start Ask the agent to list the currently active incident scenarios and disable the paymentFailure flag after a dry run.

Frequently Asked Questions about runtime-config-flagd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I toggle feature flags in the OpenTelemetry Demo?

Use the set_flag.py script with the flag key and variant, for example set_flag.py paymentFailure off. Always run with --dry-run first to preview the change, then apply it; flagd hot-reloads the ConfigMap within seconds.

How do I list active incident scenarios in the OTel Demo?

Run list_scenarios.py --active-only to show only currently active failure-injection scenarios. The output includes the flag name, current variant, affected service, effect, and remediation steps, with a --json option for machine-readable output.

What incident scenarios can flagd inject in the OTel Demo?

Available scenarios include payment failure and unreachability, ad service high CPU and GC pressure, email memory leak, image latency spikes, Kafka consumer lag, cache and catalog failures, cart errors, load generator traffic floods, and LLM inaccuracy or rate limiting.

Does this work when running inside the Kubernetes cluster?

Yes. When a service account token is mounted, the client builds a temporary kubeconfig file instead of passing the token on the command line, avoiding exposure via /proc. Outside the cluster it uses the default kubectl configuration.

Why does the email memory leak persist after disabling the flag?

Setting emailMemoryLeak to off stops further leaking, but already-allocated memory is not reclaimed. You must also restart the email pod to fully remediate the OOM condition.