k8s☞常用命令记录

阅读量: zyh 2020-03-20 15:49:20
Categories: > Tags:

创建Pod拉取镜像的权限账户

kubectl create secret docker-registry <obj_name> \
--docker-server=https://image-registry \
--docker-username=pod-ro \
--docker-password=pod@123 \
--docker-email=<email> \
-n <namespace>