image pull secret

image pull secret

Scroll Down

创建拉取镜像secret

[root@k8s01 ~]# kubectl create secret docker-registry harborsecret --docker-server=ip2.axhome.com.cn  --docker-username=***** --docker-password=*****  --docker-email=op-info@axhome.com.cn -n citest

kubectl create secret docker-registry harborsecret --docker-server=ip2.axhome.com.cn --docker-username=***** --docker-password=***** --docker-email=op-info@axhome.com.cn -n citest

Deploy yaml文件中引用

k8s1.png

k8s2.png