update at 2023-12-12 17:28:39

pull/153/head
roc 2023-12-12 17:28:39 +08:00
parent 43ea6b90fc
commit 7ab608fd48
1 changed files with 6 additions and 0 deletions

View File

@ -137,3 +137,9 @@ export IMAGE="ccr.ccs.tencentyun.com/library/ip-masq-agent:v2.5.0"
``` bash
kubectl -n $NAMESPACE patch $WORKLOAD_TYPE $WORKLOAD_NAME --patch '{"spec": {"template": {"spec": {"containers": [{"name": "$CONTAINER_NAME","image": "$IMAGE" }]}}}}'
```
### 查看某命名空间的镜像列表
```bash
kubectl -n kube-system get pod -ojsonpath='{range .items[*]}{range .spec.containers[*]}{"\n"}{.image}{end}{end}' | sort | uniq
```