k8s 命令自动补全
yum install -y bash-completion
source /usr/share/bash-completion/bash_completion
source <(kubectl completion bash)
echo "source <(kubectl completion bash)" >> ~/.bashrc
查看nginx找指定版本号
version=nginx
curl https://registry.hub.docker.com/v1/repositories/${version}/tags| tr -d '[[]" ]' | tr '}' '\n'| awk -F: -v image=${version} '{if(NR!=NF && $3 != ""){printf("%s:%s\n",image,$3)}}'