Kubernetes operational triage dashboard. Surfaces CrashLoops, security gaps, orphaned resources, and cost waste — tells you what to fix first. Read-only, no agents, no cloud credentials.
Go
15
268 commits
updated Sep 24, 2026
Kubectl shows resources. Lens shows state. OpsCart shows what deserves your attention.
Read-only · No agents · Credential-free core · Deploy in 30 seconds
kubectl → shows resources
Grafana → shows metrics
Lens → shows cluster state
OpsCart → shows what deserves attention first



OpsCart has two operational paths:
opscart-scan triage is invoked.For the dashboard, Kubernetes state is maintained in local informer caches, published through ClusterState as immutable cluster snapshots, and analyzed after coalesced resource changes.
During healthy steady-state operation, the dashboard does not perform an application-level recurring full Kubernetes LIST cycle. Initial synchronization and watch recovery are handled by client-go, while recurring analysis runs against cached cluster state.
A clock-driven analysis trigger also re-evaluates the latest snapshot for time-dependent behavior such as incident resolution, resource age, and pricing-cache expiry. This reevaluation does not re-query Kubernetes.
Interactive Investigation remains intentionally separate from the recurring analysis path and may perform targeted Kubernetes API reads when an operator requests deeper evidence.
The CLI and dashboard still have separate execution environments and presentation paths, but they share common classification, models, and storage contracts where appropriate.
A healthy dashboard does not always mean a healthy cluster.
Metrics show whether services are meeting their SLOs. OpsCart surfaces operational conditions that can remain hidden or fragmented across dashboards—crash-looping workloads, image pull failures, privileged containers, missing NetworkPolicies, unattached storage, and resource waste.
This is not another alert aggregator. OpsCart preserves operational memory over time: when an incident was first detected, whether it resolved and later reoccurred, how restart behavior changed, and which pod currently represents the incident. A replacement pod may be only five minutes old while the workload incident has existed for weeks. OpsCart keeps that workload-level history without presenting the new pod as the identity of the incident.
Instead of requiring operators to correlate several dashboards during triage, OpsCart presents a prioritized view of what deserves attention, the observed evidence behind it, and read-only investigation commands for the next step.
OpsCart is designed for platform engineers managing Kubernetes clusters who want faster operational triage without deploying node agents or modifying application workloads.
An optional, manual, read-only AI analysis feature can generate an evidence-bound hypothesis for a selected issue — disabled by default; see the chart README for setup.
helm install opscart-watcher ./helm/opscart-watcher \
--namespace opscart-system \
--create-namespace
kubectl port-forward -n opscart-system svc/opscart-watcher 8080:80
open http://localhost:8080
Incident history persists on a PVC by default — see the chart README for storage options and minikube-specific notes. The raw manifest below is a quickstart; the Helm chart is canonical.
Official container images support both linux/amd64 and linux/arm64.
kubectl apply -f https://raw.githubusercontent.com/opscart/opscart-k8s-watcher/main/deploy/dashboard.yaml
kubectl port-forward -n opscart-system svc/opscart-watcher 8080:80
open http://localhost:8080
git clone https://github.com/opscart/opscart-k8s-watcher.git
cd opscart-k8s-watcher
go build -o opscart-dashboard ./cmd/opscart-dashboard
./opscart-dashboard --cluster my-cluster --port 8080
OpsCart requires authentication by default. When auth.existingSecret is
empty, Helm creates a release-managed Secret and preserves its generated
credentials across pod restarts and chart upgrades.
kubectl get secret -n opscart-system opscart-watcher-auth \
-o jsonpath='{.data.username}' | base64 --decode
echo
kubectl get secret -n opscart-system opscart-watcher-auth \
-o jsonpath='{.data.password}' | base64 --decode
echo
To supply credentials yourself, create a Secret with username and password
keys and set auth.existingSecret:
kubectl create secret generic opscart-auth \
--from-literal=username=admin \
--from-literal=password=<your-password> \
-n opscart-system
auth:
existingSecret: "opscart-auth"
Standalone execution without configured credentials still generates and logs a random password at startup; that password changes when the process restarts.
For team deployments, authenticate at the ingress layer instead with oauth2-proxy — supports Azure AD, Google, GitHub, and generic OIDC. See Security for the full pattern and threat model.
Want to evaluate OpsCart without breaking workloads manually? The repository includes a self-contained Kubernetes failure lab with intentionally unhealthy and healthy workloads distributed across eight namespaces.
The lab exercises:
Warning: The lab intentionally creates failing workloads, invalid image pulls, a privileged container, and unused storage claims. Run it only in a disposable or non-production Kubernetes cluster.
./examples/failure-lab/scripts/setup.sh
# Allow 30–60 seconds for failures and Kubernetes events to develop
opscart-scan triage \
--cluster "$(kubectl config current-context)" \
--next-steps
# Remove every lab-owned namespace and workload
./examples/failure-lab/scripts/cleanup.sh
See the OpsCart Kubernetes Failure Lab for the complete scenario inventory, setup instructions, validation commands, and cleanup procedure.
The entry point isn't a KPI grid — it's a written assessment. Situation Briefing states what's actually wrong in plain sentences ("fraud-detection has been crash-looping for 7 days and its restart rate is accelerating"), not a wall of gauges. Below it:
No competitor in this space — Grafana, Lens, k9s — can produce any of this, because none of them preserve this operational history over time.
Incident Score — A single 0–100 score derived from crash loops, image-pull failures, unhealthy node conditions, security posture, waste, and NetworkPolicy coverage gaps. Trend arrows and a 7-point sparkline show whether the cluster is getting better or worse.
War Room — Active workload and node incidents in one prioritized view. Workload findings include crash loops, image pull failures, probe failures, and privileged containers. Kubernetes node conditions are also eligible for ranking: Ready=False/Unknown is CRITICAL, while DiskPressure, MemoryPressure, PIDPressure, and NetworkUnavailable are HIGH.
Colocated workload count is shown as operational context and does not increase node-condition severity. Each card provides evidence and a read-only investigation path.
Node Health & Workload Placement — Detects Kubernetes-reported node conditions including Ready=False/Unknown, DiskPressure, MemoryPressure, PIDPressure, and NetworkUnavailable. OpsCart correlates workloads currently scheduled to an unhealthy node using Kubernetes node placement, helping distinguish several workload symptoms from a shared infrastructure condition.
Placement correlation is evidence of co-location only — it is not a
claim of causation. Unscheduled pods without spec.nodeName are not
correlated.
Investigation — One click from detection to investigation. Every pod-level incident includes:
OPSCART_LOGS_ENABLED=false or Helm logs.enabled=false to disable it.Namespace-level findings (unprotected namespaces, idle namespaces) get their own dedicated view — a sample NetworkPolicy and namespace-scoped remediation steps, not a pod investigation that doesn't apply.
Node Investigation — Node-condition incidents have a dedicated investigation view showing node identity, node pool, Kubernetes-reported condition status/reason/message, workload-placement correlation, and the incident timeline.
When a condition resolves, OpsCart preserves the last retained condition and placement evidence while clearly distinguishing it from the current node state. Node investigations provide read-only commands such as kubectl describe node and do not expose application Container Logs.
Node/workload relationships are labeled correlated by node placement — not a claim of causation.
Incidents — The full system of record: every incident this cluster has seen, active and resolved. Search by name, namespace, or issue type; filter by severity and status; sorted and paginated. Resolved incidents stay visible with recovery time, so you can see what was broken last week — not just what's broken now.
Security Posture — CIS Kubernetes Benchmark scoring, workload-security findings, and per-pod NetworkPolicy selector coverage. NetworkPolicy analysis distinguishes ingress and egress coverage, detects directional default-deny policies, reports partially covered namespaces, and surfaces incomplete API checks rather than presenting an uncertain audit as a pass.
Waste & Drift — Age-gated review candidates such as orphaned PVCs, zero-replica workloads, and abandoned namespaces. Currently active Ingress routing and HPA autoscaling failures are labeled separately as operational failures rather than financial waste. Failed pods are tracked through operational incidents instead of being presented as waste.
Cost Intelligence — Provider-aware worker-node estimates with namespace allocation, embedded Azure pricing with Azure Retail Prices API fallback, and optional AWS public pricing. See Cost Intelligence.
Azure Billing — Optional, disabled-by-default real Azure Cost Management billing for an AKS cluster's resource group and node resource group, shown alongside (never in place of) the public/list-price estimate above. See Azure Billing.
Operational Memory — OpsCart remembers what happened. A lightweight local database tracks cluster snapshots, incident lifecycle (detected → milestones → resolved → reopened) as an append-only event journal, and analysis metadata. Powers trend arrows, sparklines, incident age, and the per-incident timeline. Backed by SQLite, persisted on a PVC that survives pod restarts and helm uninstall. Configurable retention (90 days by default) keeps the database from growing unbounded.
Authentication — Basic auth on by default with no disable path: environment variables, a Kubernetes Secret, or an auto-generated password logged at startup. For teams, front it with oauth2-proxy for Azure AD / Google / GitHub / OIDC — see First Login above.
Helm Chart — Full Helm chart with configurable values, PVC-backed persistence, read-only RBAC, and non-root security context. See the chart README for persistence options, minikube notes, and all values.
| Property | Detail |
|---|---|
| Base image | scratch — no OS, no shell, no package manager |
| User | Non-root (UID 65534) |
| Binary | CGO_ENABLED=0, statically compiled, -trimpath |
| CVE scan | 0 vulnerabilities (Trivy) |
| Cluster permissions | Read-only ClusterRole (get, list); includes get on pods/log by default and removes it when logs.enabled=false |
| Mutations | None — never modifies cluster state |
| External calls | No telemetry or phone-home. Azure pricing may query the public Azure Retail Prices API for SKUs absent from the embedded catalog; optional AWS pricing uses the AWS Price List API. |
| Authentication | Basic auth on by default, no disable path — env var, Secret, or auto-generated password |
# Audit it yourself
trivy image ghcr.io/opscart/opscart-dashboard:latest
kubectl describe clusterrole opscart-dashboard
See docs/05-Security.md for the full threat model and security philosophy.
| Tool | Primary Question |
|---|---|
| kubectl | What resources exist? |
| Lens / k9s | What is running right now? |
| Grafana | Are metrics within thresholds? |
| Kubecost | Where is money being spent? |
| OpsCart | What deserves attention first? |
OpsCart is not a replacement for these tools. It is the triage layer that tells you which questions to ask of your observability stack.
See helm/opscart-watcher/README.md for the full values reference, persistence configuration, and environment-specific notes (minikube, multi-node, local images).
go build -o opscart-scan ./cmd/opscart-scan
./opscart-scan triage --cluster prod # Prioritized operational triage from the terminal
./opscart-scan triage --cluster prod --next-steps # Include read-only kubectl inspection commands
./opscart-scan triage --cluster prod -n payments # Limit triage to one namespace
./opscart-scan security --cluster prod # Workload security posture
./opscart-scan waste --cluster prod # Waste and drift review
./opscart-scan cloud-costs --cluster prod # Provider-aware cost analysis
./opscart-scan network --cluster prod # NetworkPolicy gaps
./opscart-scan report --cluster prod # Generate an HTML report
Emergency triage also surfaces active Kubernetes node conditions with derived severity, Kubernetes-reported reason, compact workload/pod placement counts, and read-only kubectl describe node guidance. Healthy nodes do not add noise to the CLI output.
Awareness tool — not for formal compliance auditing. Use kube-bench for official CIS compliance. Cost figures are public-pricing estimates, not invoices; see Cost Intelligence.
Author: Shamsher Khan — opscart.com · IEEE Senior Member · DZone Core Member
License: MIT
Questions, feedback, or security concerns: info@opscart.com
268 commits
Go
91.2%
HTML
8.4%
Kubernetes operational triage dashboard. Surfaces CrashLoops, security gaps, orphaned resources, and cost waste — tells you what to fix first. Read-only, no agents, no cloud credentials.
Go
15
268 commits
updated Sep 24, 2026
Kubectl shows resources. Lens shows state. OpsCart shows what deserves your attention.
Read-only · No agents · Credential-free core · Deploy in 30 seconds
kubectl → shows resources
Grafana → shows metrics
Lens → shows cluster state
OpsCart → shows what deserves attention first



OpsCart has two operational paths:
opscart-scan triage is invoked.For the dashboard, Kubernetes state is maintained in local informer caches, published through ClusterState as immutable cluster snapshots, and analyzed after coalesced resource changes.
During healthy steady-state operation, the dashboard does not perform an application-level recurring full Kubernetes LIST cycle. Initial synchronization and watch recovery are handled by client-go, while recurring analysis runs against cached cluster state.
A clock-driven analysis trigger also re-evaluates the latest snapshot for time-dependent behavior such as incident resolution, resource age, and pricing-cache expiry. This reevaluation does not re-query Kubernetes.
Interactive Investigation remains intentionally separate from the recurring analysis path and may perform targeted Kubernetes API reads when an operator requests deeper evidence.
The CLI and dashboard still have separate execution environments and presentation paths, but they share common classification, models, and storage contracts where appropriate.
A healthy dashboard does not always mean a healthy cluster.
Metrics show whether services are meeting their SLOs. OpsCart surfaces operational conditions that can remain hidden or fragmented across dashboards—crash-looping workloads, image pull failures, privileged containers, missing NetworkPolicies, unattached storage, and resource waste.
This is not another alert aggregator. OpsCart preserves operational memory over time: when an incident was first detected, whether it resolved and later reoccurred, how restart behavior changed, and which pod currently represents the incident. A replacement pod may be only five minutes old while the workload incident has existed for weeks. OpsCart keeps that workload-level history without presenting the new pod as the identity of the incident.
Instead of requiring operators to correlate several dashboards during triage, OpsCart presents a prioritized view of what deserves attention, the observed evidence behind it, and read-only investigation commands for the next step.
OpsCart is designed for platform engineers managing Kubernetes clusters who want faster operational triage without deploying node agents or modifying application workloads.
An optional, manual, read-only AI analysis feature can generate an evidence-bound hypothesis for a selected issue — disabled by default; see the chart README for setup.
helm install opscart-watcher ./helm/opscart-watcher \
--namespace opscart-system \
--create-namespace
kubectl port-forward -n opscart-system svc/opscart-watcher 8080:80
open http://localhost:8080
Incident history persists on a PVC by default — see the chart README for storage options and minikube-specific notes. The raw manifest below is a quickstart; the Helm chart is canonical.
Official container images support both linux/amd64 and linux/arm64.
kubectl apply -f https://raw.githubusercontent.com/opscart/opscart-k8s-watcher/main/deploy/dashboard.yaml
kubectl port-forward -n opscart-system svc/opscart-watcher 8080:80
open http://localhost:8080
git clone https://github.com/opscart/opscart-k8s-watcher.git
cd opscart-k8s-watcher
go build -o opscart-dashboard ./cmd/opscart-dashboard
./opscart-dashboard --cluster my-cluster --port 8080
OpsCart requires authentication by default. When auth.existingSecret is
empty, Helm creates a release-managed Secret and preserves its generated
credentials across pod restarts and chart upgrades.
kubectl get secret -n opscart-system opscart-watcher-auth \
-o jsonpath='{.data.username}' | base64 --decode
echo
kubectl get secret -n opscart-system opscart-watcher-auth \
-o jsonpath='{.data.password}' | base64 --decode
echo
To supply credentials yourself, create a Secret with username and password
keys and set auth.existingSecret:
kubectl create secret generic opscart-auth \
--from-literal=username=admin \
--from-literal=password=<your-password> \
-n opscart-system
auth:
existingSecret: "opscart-auth"
Standalone execution without configured credentials still generates and logs a random password at startup; that password changes when the process restarts.
For team deployments, authenticate at the ingress layer instead with oauth2-proxy — supports Azure AD, Google, GitHub, and generic OIDC. See Security for the full pattern and threat model.
Want to evaluate OpsCart without breaking workloads manually? The repository includes a self-contained Kubernetes failure lab with intentionally unhealthy and healthy workloads distributed across eight namespaces.
The lab exercises:
Warning: The lab intentionally creates failing workloads, invalid image pulls, a privileged container, and unused storage claims. Run it only in a disposable or non-production Kubernetes cluster.
./examples/failure-lab/scripts/setup.sh
# Allow 30–60 seconds for failures and Kubernetes events to develop
opscart-scan triage \
--cluster "$(kubectl config current-context)" \
--next-steps
# Remove every lab-owned namespace and workload
./examples/failure-lab/scripts/cleanup.sh
See the OpsCart Kubernetes Failure Lab for the complete scenario inventory, setup instructions, validation commands, and cleanup procedure.
The entry point isn't a KPI grid — it's a written assessment. Situation Briefing states what's actually wrong in plain sentences ("fraud-detection has been crash-looping for 7 days and its restart rate is accelerating"), not a wall of gauges. Below it:
No competitor in this space — Grafana, Lens, k9s — can produce any of this, because none of them preserve this operational history over time.
Incident Score — A single 0–100 score derived from crash loops, image-pull failures, unhealthy node conditions, security posture, waste, and NetworkPolicy coverage gaps. Trend arrows and a 7-point sparkline show whether the cluster is getting better or worse.
War Room — Active workload and node incidents in one prioritized view. Workload findings include crash loops, image pull failures, probe failures, and privileged containers. Kubernetes node conditions are also eligible for ranking: Ready=False/Unknown is CRITICAL, while DiskPressure, MemoryPressure, PIDPressure, and NetworkUnavailable are HIGH.
Colocated workload count is shown as operational context and does not increase node-condition severity. Each card provides evidence and a read-only investigation path.
Node Health & Workload Placement — Detects Kubernetes-reported node conditions including Ready=False/Unknown, DiskPressure, MemoryPressure, PIDPressure, and NetworkUnavailable. OpsCart correlates workloads currently scheduled to an unhealthy node using Kubernetes node placement, helping distinguish several workload symptoms from a shared infrastructure condition.
Placement correlation is evidence of co-location only — it is not a
claim of causation. Unscheduled pods without spec.nodeName are not
correlated.
Investigation — One click from detection to investigation. Every pod-level incident includes:
OPSCART_LOGS_ENABLED=false or Helm logs.enabled=false to disable it.Namespace-level findings (unprotected namespaces, idle namespaces) get their own dedicated view — a sample NetworkPolicy and namespace-scoped remediation steps, not a pod investigation that doesn't apply.
Node Investigation — Node-condition incidents have a dedicated investigation view showing node identity, node pool, Kubernetes-reported condition status/reason/message, workload-placement correlation, and the incident timeline.
When a condition resolves, OpsCart preserves the last retained condition and placement evidence while clearly distinguishing it from the current node state. Node investigations provide read-only commands such as kubectl describe node and do not expose application Container Logs.
Node/workload relationships are labeled correlated by node placement — not a claim of causation.
Incidents — The full system of record: every incident this cluster has seen, active and resolved. Search by name, namespace, or issue type; filter by severity and status; sorted and paginated. Resolved incidents stay visible with recovery time, so you can see what was broken last week — not just what's broken now.
Security Posture — CIS Kubernetes Benchmark scoring, workload-security findings, and per-pod NetworkPolicy selector coverage. NetworkPolicy analysis distinguishes ingress and egress coverage, detects directional default-deny policies, reports partially covered namespaces, and surfaces incomplete API checks rather than presenting an uncertain audit as a pass.
Waste & Drift — Age-gated review candidates such as orphaned PVCs, zero-replica workloads, and abandoned namespaces. Currently active Ingress routing and HPA autoscaling failures are labeled separately as operational failures rather than financial waste. Failed pods are tracked through operational incidents instead of being presented as waste.
Cost Intelligence — Provider-aware worker-node estimates with namespace allocation, embedded Azure pricing with Azure Retail Prices API fallback, and optional AWS public pricing. See Cost Intelligence.
Azure Billing — Optional, disabled-by-default real Azure Cost Management billing for an AKS cluster's resource group and node resource group, shown alongside (never in place of) the public/list-price estimate above. See Azure Billing.
Operational Memory — OpsCart remembers what happened. A lightweight local database tracks cluster snapshots, incident lifecycle (detected → milestones → resolved → reopened) as an append-only event journal, and analysis metadata. Powers trend arrows, sparklines, incident age, and the per-incident timeline. Backed by SQLite, persisted on a PVC that survives pod restarts and helm uninstall. Configurable retention (90 days by default) keeps the database from growing unbounded.
Authentication — Basic auth on by default with no disable path: environment variables, a Kubernetes Secret, or an auto-generated password logged at startup. For teams, front it with oauth2-proxy for Azure AD / Google / GitHub / OIDC — see First Login above.
Helm Chart — Full Helm chart with configurable values, PVC-backed persistence, read-only RBAC, and non-root security context. See the chart README for persistence options, minikube notes, and all values.
| Property | Detail |
|---|---|
| Base image | scratch — no OS, no shell, no package manager |
| User | Non-root (UID 65534) |
| Binary | CGO_ENABLED=0, statically compiled, -trimpath |
| CVE scan | 0 vulnerabilities (Trivy) |
| Cluster permissions | Read-only ClusterRole (get, list); includes get on pods/log by default and removes it when logs.enabled=false |
| Mutations | None — never modifies cluster state |
| External calls | No telemetry or phone-home. Azure pricing may query the public Azure Retail Prices API for SKUs absent from the embedded catalog; optional AWS pricing uses the AWS Price List API. |
| Authentication | Basic auth on by default, no disable path — env var, Secret, or auto-generated password |
# Audit it yourself
trivy image ghcr.io/opscart/opscart-dashboard:latest
kubectl describe clusterrole opscart-dashboard
See docs/05-Security.md for the full threat model and security philosophy.
| Tool | Primary Question |
|---|---|
| kubectl | What resources exist? |
| Lens / k9s | What is running right now? |
| Grafana | Are metrics within thresholds? |
| Kubecost | Where is money being spent? |
| OpsCart | What deserves attention first? |
OpsCart is not a replacement for these tools. It is the triage layer that tells you which questions to ask of your observability stack.
See helm/opscart-watcher/README.md for the full values reference, persistence configuration, and environment-specific notes (minikube, multi-node, local images).
go build -o opscart-scan ./cmd/opscart-scan
./opscart-scan triage --cluster prod # Prioritized operational triage from the terminal
./opscart-scan triage --cluster prod --next-steps # Include read-only kubectl inspection commands
./opscart-scan triage --cluster prod -n payments # Limit triage to one namespace
./opscart-scan security --cluster prod # Workload security posture
./opscart-scan waste --cluster prod # Waste and drift review
./opscart-scan cloud-costs --cluster prod # Provider-aware cost analysis
./opscart-scan network --cluster prod # NetworkPolicy gaps
./opscart-scan report --cluster prod # Generate an HTML report
Emergency triage also surfaces active Kubernetes node conditions with derived severity, Kubernetes-reported reason, compact workload/pod placement counts, and read-only kubectl describe node guidance. Healthy nodes do not add noise to the CLI output.
Awareness tool — not for formal compliance auditing. Use kube-bench for official CIS compliance. Cost figures are public-pricing estimates, not invoices; see Cost Intelligence.
Author: Shamsher Khan — opscart.com · IEEE Senior Member · DZone Core Member
License: MIT
Questions, feedback, or security concerns: info@opscart.com
268 commits
Go
91.2%
HTML
8.4%