Files
Pulse/docs/AI.md
rcourtman 2b48b0a459 feat: add --kube-include-all-deployments flag for Kubernetes agent
Adds IncludeAllDeployments option to show all deployments, not just
problem ones (where replicas don't match desired). This provides parity
with the existing --kube-include-all-pods flag.

- Add IncludeAllDeployments to kubernetesagent.Config
- Add --kube-include-all-deployments flag and PULSE_KUBE_INCLUDE_ALL_DEPLOYMENTS env var
- Update collectDeployments to respect the new flag
- Add test for IncludeAllDeployments functionality
- Update UNIFIED_AGENT.md documentation

Addresses feedback from PR #855
2025-12-18 20:58:30 +00:00

2.4 KiB

Pulse AI

Pulse AI adds an optional assistant for troubleshooting, summarization, and proactive monitoring. It is off by default and can be enabled per instance.

What Pulse AI Can Do

  • Interactive chat: Ask questions about current cluster state and recent health signals.
  • Patrol: Background checks that generate findings on a schedule.
  • Alert analysis: Optional analysis when alerts fire (token-efficient).
  • Command proposals and execution: When enabled, Pulse can propose commands and (optionally) execute them via connected agents.
  • Cost tracking: Tracks usage and supports a monthly budget target.

Configuration

Configure in the UI:

  • Settings → AI

AI settings are stored encrypted at rest in ai.enc under the Pulse config directory (/etc/pulse for systemd installs, /data for Docker/Kubernetes).

Supported Providers

Pulse supports multiple providers configured independently:

  • Anthropic (API key or OAuth)
  • OpenAI
  • DeepSeek
  • Google Gemini
  • Ollama (self-hosted)
  • OpenAI-compatible base URL (for providers that implement the OpenAI API shape)

Models

Pulse uses model identifiers in the form:

  • provider:model-name

You can set separate models for:

  • Chat (chat_model)
  • Patrol (patrol_model)
  • Auto-fix remediation (auto_fix_model)

Testing and Model Discovery

  • Test provider connectivity: POST /api/ai/test and POST /api/ai/test/{provider}
  • List available models (queried live from the provider): GET /api/ai/models

Safety Controls

Pulse includes settings that control how “active” AI features are:

  • Autonomous mode (autonomous_mode): when enabled, AI may execute actions without a separate approval step in the UI.
  • Patrol auto-fix (patrol_auto_fix): allows patrol findings to trigger remediation attempts.
  • Alert-triggered analysis (alert_triggered_analysis): limits AI to analyzing specific events when alerts occur.

If you enable execution features, ensure agent tokens and scopes are appropriately restricted and that audit logging is enabled.

Troubleshooting

  • AI not responding: verify provider credentials in Settings → AI and confirm GET /api/ai/models works.
  • OAuth issues (Anthropic): verify the OAuth flow is completing and that Pulse can reach the callback endpoint.
  • No execution capability: confirm at least one compatible agent is connected and that the instance has execution enabled.