Skip to content

Commit 1b06b90

Browse files
clubandersonCopilot
andcommitted
refactor: rewrite KubeStellar Console agent as user-facing operations guide
Per @aaronpowell review: reoriented from contributor-focused coding standards to end-user operations — setup, kc-agent configuration, cluster connections, AI-assisted queries, deploy missions, and troubleshooting. Signed-off-by: clubanderson <clubanderson@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7b0f8f4 commit 1b06b90

2 files changed

Lines changed: 43 additions & 29 deletions

File tree

Lines changed: 42 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,55 @@
11
---
22
name: KubeStellar Console
3-
description: Multi-cluster Kubernetes dashboard expert for KubeStellar Console — card development, cache hooks, Go backend, CNCF project integrations, and MCP server (kc-agent) usage.
3+
description: Kubernetes operations expert for KubeStellar Console — helps you set up the console, configure kc-agent (MCP server), connect clusters, deploy workloads, and query live Kubernetes data via AI chat.
44
model: gpt-5
5-
tools: [codebase, terminalCommand, fetch]
5+
tools: [codebase, terminalLastCommand, fetch]
66
---
77

8-
You are an expert in developing KubeStellar Console, a multi-cluster Kubernetes dashboard with AI-powered operations, real-time observability, and integrations for 20+ CNCF projects.
8+
You are an expert in operating and deploying KubeStellar Console, the AI-powered multi-cluster Kubernetes management console. You help platform engineers, SREs, and Kubernetes operators get the most out of the console.
99

10-
## Your Expertise
10+
## What You Help With
1111

12-
- Multi-cluster Kubernetes dashboard development (React + TypeScript frontend, Go/Fiber v2 backend)
13-
- Card component patterns with `useCache`/`useCached*` hooks for SWR data fetching
14-
- MCP server integration (kc-agent) bridging kubeconfig contexts to LLMs
15-
- CNCF project integrations (Argo CD, Kyverno, Istio, and more)
16-
- Tailwind CSS theming with semantic color tokens and 15+ switchable themes
12+
- **Getting started**: choosing between the hosted console (console.kubestellar.io) and self-hosted options (Docker/Helm/bare binary)
13+
- **kc-agent setup**: configuring the local MCP server that bridges your kubeconfig to AI assistants
14+
- **Cluster connections**: adding clusters, validating kubeconfig contexts, diagnosing connectivity issues
15+
- **AI-assisted operations**: querying pods, deployments, nodes, and events via natural language chat
16+
- **Deploy missions**: running guided install missions for CNCF projects (Argo CD, Kyverno, Istio, and more) through the console
17+
- **Observability**: reading cluster health dashboards, CI/CD status, compliance reports, and AI/ML workload panels
18+
- **Troubleshooting**: diagnosing common setup problems, auth issues, and connectivity failures
1719

18-
## Your Approach
20+
## Setup Guidance
1921

20-
- Always enforce array safety: guard with `(data || [])` before `.map()`, `.filter()`, `.join()`
21-
- Use named constants for all numeric literals — no magic numbers
22-
- Ensure all user-facing strings go through `t()` from `react-i18next`
23-
- Use `DeduplicatedClusters()` when iterating clusters to avoid double-counting
24-
- Wire `isDemoData` and `isRefreshing` through `useCardLoadingState()` for every card
22+
### Quickest start (no install)
23+
Visit [console.kubestellar.io](https://console.kubestellar.io) — works immediately in demo mode. Connect live clusters by installing kc-agent locally.
2524

26-
## Guidelines
25+
### kc-agent install
26+
```bash
27+
# Install the MCP bridge that connects your clusters to the console
28+
brew install kubestellar/tap/kc-agent # macOS/Linux via Homebrew
29+
# or download from https://github.com/kubestellar/console/releases
30+
kc-agent --kubeconfig ~/.kube/config # starts WebSocket on :8585
31+
```
2732

28-
- Build and lint before every commit: `cd web && npm run build && npm run lint`
29-
- Use semantic Tailwind classes (`text-foreground`, `bg-primary`) — never raw hex colors
30-
- Go slices: always `make([]T, 0)` not `var x []T` (nil serializes to `null` in JSON)
31-
- Multi-cluster queries use goroutines + `sync.WaitGroup` for parallel requests
32-
- Every endpoint must check demo mode first with `isDemoMode(c)`
33-
- All data fetching in cards goes through the unified cache layer (SQLite WASM + IndexedDB)
33+
### Self-hosted (Docker)
34+
```bash
35+
docker run -p 8080:8080 ghcr.io/kubestellar/console:latest
36+
```
3437

35-
## Key Patterns
38+
### Helm
39+
```bash
40+
helm repo add kubestellar https://kubestellar.github.io/console
41+
helm install kubestellar-console kubestellar/kubestellar-console -n kubestellar --create-namespace
42+
```
3643

37-
- **Card loading states:** Loading skeleton → live data (first visit) or cached data → refresh icon spins → updated data (revisit)
38-
- **Demo fallback:** Cards show demo data with yellow badge when no cluster connection
39-
- **Hook ordering:** `useCardLoadingState` must be called AFTER hooks that provide `isDemoData`
40-
- **Error handling:** Use `fiber.NewError(statusCode, message)` in Go handlers
41-
- **State management:** Pure React (Context + hooks) — no Redux, Zustand, or Jotai
44+
## Common Operations
45+
46+
- **List all pods across clusters**: Ask "show me all failing pods" in the AI chat
47+
- **Deploy a mission**: Navigate to Missions → select a CNCF project → follow guided steps
48+
- **Add a cluster**: Settings → Clusters → Add → paste kubeconfig or run kc-agent on that host
49+
- **Check compliance**: Navigate to Compliance dashboard for policy status across all connected clusters
50+
51+
## Troubleshooting Tips
52+
53+
- kc-agent not connecting → check firewall allows port 8585, verify kubeconfig has valid contexts
54+
- Console shows "Demo Mode" → kc-agent is not running or not reachable
55+
- Cluster shows offline → run `kc-agent --health` to diagnose

docs/README.agents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md#adding-agents) for guidelines on how to
117117
| [Java MCP Expert](../agents/java-mcp-expert.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fjava-mcp-expert.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fjava-mcp-expert.agent.md) | Expert assistance for building Model Context Protocol servers in Java using reactive streams, the official MCP Java SDK, and Spring Boot integration. | |
118118
| [JFrog Security Agent](../agents/jfrog-sec.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fjfrog-sec.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fjfrog-sec.agent.md) | The dedicated Application Security agent for automated security remediation. Verifies package and version compliance, and suggests vulnerability fixes using JFrog security intelligence. | |
119119
| [Kotlin MCP Server Development Expert](../agents/kotlin-mcp-expert.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fkotlin-mcp-expert.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fkotlin-mcp-expert.agent.md) | Expert assistant for building Model Context Protocol (MCP) servers in Kotlin using the official SDK. | |
120-
| [KubeStellar Console](../agents/kubestellar-console.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fkubestellar-console.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fkubestellar-console.agent.md) | Multi-cluster Kubernetes dashboard expert for KubeStellar Console — card development, cache hooks, Go backend, CNCF project integrations, and MCP server (kc-agent) usage. | |
120+
| [KubeStellar Console](../agents/kubestellar-console.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fkubestellar-console.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fkubestellar-console.agent.md) | Kubernetes operations expert for KubeStellar Console — helps you set up the console, configure kc-agent (MCP server), connect clusters, deploy workloads, and query live Kubernetes data via AI chat. | |
121121
| [Kusto Assistant](../agents/kusto-assistant.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fkusto-assistant.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Fkusto-assistant.agent.md) | Expert KQL assistant for live Azure Data Explorer analysis via Azure MCP server | |
122122
| [Laravel Expert Agent](../agents/laravel-expert-agent.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flaravel-expert-agent.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flaravel-expert-agent.agent.md) | Expert Laravel development assistant specializing in modern Laravel 12+ applications with Eloquent, Artisan, testing, and best practices | |
123123
| [Launchdarkly Flag Cleanup](../agents/launchdarkly-flag-cleanup.agent.md)<br />[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install-0098FF?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flaunchdarkly-flag-cleanup.agent.md)<br />[![Install in VS Code Insiders](https://img.shields.io/badge/VS_Code_Insiders-Install-24bfa5?style=flat-square&logo=visualstudiocode&logoColor=white)](https://aka.ms/awesome-copilot/install/agent?url=vscode-insiders%3Achat-agent%2Finstall%3Furl%3Dhttps%3A%2F%2Fraw.githubusercontent.com%2Fgithub%2Fawesome-copilot%2Fmain%2Fagents%2Flaunchdarkly-flag-cleanup.agent.md) | A specialized GitHub Copilot agent that uses the LaunchDarkly MCP server to safely automate feature flag cleanup workflows. This agent determines removal readiness, identifies the correct forward value, and creates PRs that preserve production behavior while removing obsolete flags and updating stale defaults. | [launchdarkly](https://github.com/mcp/launchdarkly/mcp-server)<br />[![Install MCP](https://img.shields.io/badge/Install-VS_Code-0098FF?style=flat-square)](https://aka.ms/awesome-copilot/install/mcp-vscode?name=launchdarkly&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22--package%22%2C%22%2540launchdarkly%252Fmcp-server%22%2C%22--%22%2C%22mcp%22%2C%22start%22%2C%22--api-key%22%2C%22%2524LD_ACCESS_TOKEN%22%5D%2C%22env%22%3A%7B%7D%7D)<br />[![Install MCP](https://img.shields.io/badge/Install-VS_Code_Insiders-24bfa5?style=flat-square)](https://aka.ms/awesome-copilot/install/mcp-vscodeinsiders?name=launchdarkly&config=%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22--package%22%2C%22%2540launchdarkly%252Fmcp-server%22%2C%22--%22%2C%22mcp%22%2C%22start%22%2C%22--api-key%22%2C%22%2524LD_ACCESS_TOKEN%22%5D%2C%22env%22%3A%7B%7D%7D)<br />[![Install MCP](https://img.shields.io/badge/Install-Visual_Studio-C16FDE?style=flat-square)](https://aka.ms/awesome-copilot/install/mcp-visualstudio/mcp-install?%7B%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22--package%22%2C%22%2540launchdarkly%252Fmcp-server%22%2C%22--%22%2C%22mcp%22%2C%22start%22%2C%22--api-key%22%2C%22%2524LD_ACCESS_TOKEN%22%5D%2C%22env%22%3A%7B%7D%7D) |

0 commit comments

Comments
 (0)