Little Star Blog

路在脚下,心向远方

kubectl -n xxx get pods | grep Running | awk ‘{print $1}’ | xargs -r -I ‘{}’ kubectl -n xxx get pods {} -o=jsonpath=’{.status.containerStatuses[0].image}{"\n"}’ | sort

centos 7.7安装jq

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-altarch-7.repo yum clean all yum makecache yum update yum install epel-release -y yum install jq -y jq --version