kubeadm安装集群系列-5.其他操作

常用的一些操作记录

imagePullSecrets

kubectl -n [namespace] create secret docker-registry regsecret --docker-server=harbor.abcdefg.net --docker-username=stg-k8s --docker-password=123456

该密钥只能当前namespace使用

yaml内使用方法:

1 containers:
2 - name: nginx
3   image: harbor.abcdefg.net/test/qa/nginx:1.14
4 ports:
5 - containerPort: 80
6 imagePullSecrets:
7 - name: regsecret
原文地址:https://www.cnblogs.com/dolphintwo/p/11388697.html