2023-08-26 00:42:43 +00:00
|
|
|
#! /usr/bin/env bash
|
2023-11-16 00:34:37 +00:00
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
USER_HOME=$HOME
|
|
|
|
[[ -n "${SUDO_USER}" ]] && USER_HOME="$(eval "echo ~${SUDO_USER}")"
|
|
|
|
. ${SHRC_D:-$SCRIPT_DIR}/01_util.functions
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
k3s kubectl pods --namespace ix -s Ready \
|
2023-08-26 00:42:43 +00:00
|
|
|
| sed 1d | grep -v svclb- \
|
|
|
|
| sed -E 's/[[:space:]]([0-9]*|About)[a-z0-9 ]{5,12}ago[[:space:]]//' \
|
|
|
|
| awk '{ print $4 }' \
|
|
|
|
| sed 's/^ix-//' | sort -u
|
2023-11-16 00:34:37 +00:00
|
|
|
|