[ci skip] Remember to use cluster_healthcheck.sh for cluster status checks
This commit is contained in:
parent
5c7efbdb48
commit
32a7c04deb
1 changed files with 11 additions and 0 deletions
|
|
@ -157,6 +157,12 @@ When configuring services to use the mailserver:
|
|||
|
||||
## Useful Commands
|
||||
```bash
|
||||
# Cluster health check — ALWAYS use this to check cluster status
|
||||
bash scripts/cluster_healthcheck.sh # Full color report
|
||||
bash scripts/cluster_healthcheck.sh --quiet # Only WARN/FAIL
|
||||
bash scripts/cluster_healthcheck.sh --json # Machine-readable
|
||||
bash scripts/cluster_healthcheck.sh --fix # Auto-delete evicted pods
|
||||
|
||||
# ALWAYS use -target for terraform apply (speeds up execution)
|
||||
terraform apply -target=module.kubernetes_cluster.module.<service_name>
|
||||
terraform plan -target=module.kubernetes_cluster.module.<service_name>
|
||||
|
|
@ -164,6 +170,11 @@ terraform fmt -recursive
|
|||
kubectl get pods -A
|
||||
```
|
||||
|
||||
**Cluster Health Check** (`scripts/cluster_healthcheck.sh`):
|
||||
- **ALWAYS use this script** when the user asks about cluster status, health, or "what's broken"
|
||||
- Runs 14 checks: nodes, resources, conditions, pods, evicted, DaemonSets, deployments, PVCs, HPAs, CronJobs, CrowdSec, ingress, Prometheus alerts, Uptime Kuma
|
||||
- **When adding new healthchecks or monitoring**: Always update this script to validate the new component
|
||||
|
||||
**Terraform target examples:**
|
||||
- `terraform apply -target=module.kubernetes_cluster.module.monitoring` - Apply monitoring
|
||||
- `terraform apply -target=module.kubernetes_cluster.module.immich` - Apply immich
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue