Fix homelab up worker and omniroute blockers
This commit is contained in:
parent
b3593ce7ab
commit
7b6f6db2dc
|
|
@ -3,7 +3,6 @@ services:
|
||||||
image: ${OMNIROUTE_IMAGE:-diegosouzapw/omniroute:latest}
|
image: ${OMNIROUTE_IMAGE:-diegosouzapw/omniroute:latest}
|
||||||
container_name: ${OMNIROUTE_CONTAINER_NAME:-omniroute}
|
container_name: ${OMNIROUTE_CONTAINER_NAME:-omniroute}
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
stop_timeout: 40
|
|
||||||
ports:
|
ports:
|
||||||
- "${OMNIROUTE_PORT:-20128}:20128"
|
- "${OMNIROUTE_PORT:-20128}:20128"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ Commands:
|
||||||
restart [index|all] Gracefully restart Pimox worker VM(s)
|
restart [index|all] Gracefully restart Pimox worker VM(s)
|
||||||
drain <node> Drain a Kubernetes worker node
|
drain <node> Drain a Kubernetes worker node
|
||||||
uncordon <node> Mark a Kubernetes worker node schedulable
|
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
|
rebalance Restart evicted/pending pods and show scheduling pressure
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
@ -182,8 +182,8 @@ uncordon_node() {
|
||||||
kubectl_cmd uncordon "$node"
|
kubectl_cmd uncordon "$node"
|
||||||
}
|
}
|
||||||
|
|
||||||
recreate_plan() {
|
recreate_plan_one() {
|
||||||
local index="${1:-}"
|
local index="$1"
|
||||||
local vmid
|
local vmid
|
||||||
local node
|
local node
|
||||||
|
|
||||||
|
|
@ -214,6 +214,15 @@ Target node: $node
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
recreate_plan() {
|
||||||
|
local target="${1:-all}"
|
||||||
|
local index
|
||||||
|
|
||||||
|
for index in $(target_indexes "$target"); do
|
||||||
|
recreate_plan_one "$index"
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
rebalance() {
|
rebalance() {
|
||||||
if ! have kubectl || [ ! -s "$KUBECONFIG_PATH" ]; then
|
if ! have kubectl || [ ! -s "$KUBECONFIG_PATH" ]; then
|
||||||
echo "kubectl and kubeconfig are required for workers rebalance." >&2
|
echo "kubectl and kubeconfig are required for workers rebalance." >&2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue