Fix homelab up worker and omniroute blockers
Homelab Main / validate (push) Waiting to run Details
Homelab Main / deploy (push) Blocked by required conditions Details

This commit is contained in:
juvenal.diaz 2026-09-25 12:15:37 -06:00
parent b3593ce7ab
commit 7b6f6db2dc
2 changed files with 13 additions and 5 deletions

View File

@ -3,11 +3,10 @@ services:
image: ${OMNIROUTE_IMAGE:-diegosouzapw/omniroute:latest}
container_name: ${OMNIROUTE_CONTAINER_NAME:-omniroute}
restart: unless-stopped
stop_timeout: 40
ports:
- "${OMNIROUTE_PORT:-20128}:20128"
volumes:
- omniroute-data:/app/data
volumes:
omniroute-data:
omniroute-data:

View File

@ -24,7 +24,7 @@ Commands:
restart [index|all] Gracefully restart Pimox worker VM(s)
drain <node> Drain a Kubernetes worker node
uncordon <node> Mark a Kubernetes worker node schedulable
recreate-plan <index> Print the safe recreate sequence for one Pimox worker
recreate-plan [index|all] Print the safe recreate sequence for Pimox worker(s)
rebalance Restart evicted/pending pods and show scheduling pressure
EOF
}
@ -182,8 +182,8 @@ uncordon_node() {
kubectl_cmd uncordon "$node"
}
recreate_plan() {
local index="${1:-}"
recreate_plan_one() {
local index="$1"
local vmid
local node
@ -214,6 +214,15 @@ Target node: $node
EOF
}
recreate_plan() {
local target="${1:-all}"
local index
for index in $(target_indexes "$target"); do
recreate_plan_one "$index"
done
}
rebalance() {
if ! have kubectl || [ ! -s "$KUBECONFIG_PATH" ]; then
echo "kubectl and kubeconfig are required for workers rebalance." >&2