feat(task): enhance watch-cluster-memory to display node resource usage
This commit is contained in:
3 files changed
+10
-22
No files matched your search
@@ -69,12 +69,12 @@ nextcloud:
|
||||
resources:
|
||||
## @param nextcloud.resources.requests.memory Memory request for the container
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
memory: "1Gi"
|
||||
## @param nextcloud.resources.requests.cpu CPU request for the container
|
||||
cpu: "250m"
|
||||
limits:
|
||||
## @param nextcloud.resources.limits.memory Memory limit for the container
|
||||
memory: "512Mi"
|
||||
memory: "2Gi"
|
||||
|
||||
## @section Redis parameters
|
||||
redis:
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
---
|
||||
title: "Install metrics server"
|
||||
title: "Montior memory consumption"
|
||||
author: "Janik von Rotz <login@janikvonrotz.ch>"
|
||||
state: completed
|
||||
state: review
|
||||
date_completed: 2026-10-13
|
||||
harness: pi
|
||||
model: moonshotai/Kimi-K2.6
|
||||
input_tokens: 68059
|
||||
output_tokens: 30511
|
||||
input_tokens: 5027
|
||||
output_tokens: 2023
|
||||
---
|
||||
|
||||
# Install metrics server
|
||||
# Montior memory consumption
|
||||
|
||||
Note: @Clanker refers to the "ai agent" (you) who is working on this prompt file.
|
||||
|
||||
@@ -25,24 +25,12 @@ Note: @Clanker refers to the "ai agent" (you) who is working on this prompt file
|
||||
|
||||
## Task
|
||||
|
||||
Similar to `install-traefik` I want a task function `install-metrics-server` which installs https://github.com/kubernetes-sigs/metrics-server on my cluster.
|
||||
|
||||
Update the `add-repos` command to install the helm repo.
|
||||
|
||||
Update the `docs/Infomaniak.md` to install metrics server (other clusters have it preinstalled).
|
||||
|
||||
Do not run `install-chart metrics-server`. I will do this myself and let you know if the commands work.
|
||||
I have the command `watch-cluster-memory`. But it should also show status of worker node ok?
|
||||
|
||||
@Clanker When task is completed set frontmatter state to review. Prompt the author to verify the results.
|
||||
|
||||
## Worklog
|
||||
|
||||
- Added `metrics-server` to `list-external-charts()` in the task script.
|
||||
- Added `install-metrics-server()` function to install the official `metrics-server/metrics-server` Helm chart into the `metrics-server` namespace, with `--kubelet-insecure-tls` set by default (required for managed Kubernetes like Infomaniak).
|
||||
- Added the `metrics-server` Helm repo (`https://kubernetes-sigs.github.io/metrics-server`) to the `add-repos` command.
|
||||
- Updated `docs/Infomaniak.md` with a new "Setup metrics server" section.
|
||||
- Added cluster verification to `install-chart` and `upgrade-release`: when a values file in `values/` is used, the active cluster must match the cluster derived from the file path.
|
||||
- Updated `uninstall-release` to pass `--namespace` for known external charts (cert-manager, cnpg, k8up, metrics-server, traefik) so `task uninstall-release metrics-server` works correctly.
|
||||
- Did not run the install command as requested.
|
||||
Updated `watch-cluster-memory` in `task` to display node memory/CPU usage via `kubectl top nodes` above the existing pod memory table. This allows monitoring both worker node resource status and pod-level memory consumption in the same watch view.
|
||||
|
||||
@Clanker If author confirms results set frontmatter state to completed, otherwise to aborted. Update date, harness and model. If you have access to session info also add token count.
|
||||
@@ -801,7 +801,7 @@ watch-cluster-memory() {
|
||||
return 1
|
||||
fi
|
||||
|
||||
watch -n 2 'kubectl top pods --all-namespaces | { read -r header; echo "$header"; sort -k4 -n -r; }'
|
||||
watch -n 2 'echo "=== Nodes ==="; kubectl top nodes; echo; echo "=== Pods ==="; kubectl top pods --all-namespaces | { read -r header; echo "$header"; sort -k4 -n -r; }'
|
||||
}
|
||||
|
||||
# Helm Commands
|
||||
|
||||
Reference in new issue
Block a user