命令写法

  1. kubectl patch deployment/$i -p '{"spec":{"template":{"spec":{"containers":[{"name":"ancillaryfare","image":"harbor.lianhang.jetair/test/'$app':latest"}]}}}}' -n $namespace

脚本写法

  1. kubectl patch deployment $1 -p '{"spec":{"template":{"spec":{"containers":[{"name":"'$1'","image":"10.111.9.72/'$2'/'$1':'$3'"}]}}}}' -n $2
文档更新时间: 2022-09-27 17:06   作者:张尚