Fix homelab up worker and omniroute blockers
This commit is contained in:
parent
b3593ce7ab
commit
7b6f6db2dc
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue