首页 > 其他分享 >创建harbor镜像仓库密钥

创建harbor镜像仓库密钥

时间:2023-01-23 20:56:44浏览次数:40  
标签:name harbor -- admin 密钥 镜像 docker

1、创建密钥

kubectl create secret docker-registry harbor-keys --docker-server=skg.harbor.bjshxg.com:80 --docker-username=admin --docker-password=harbor123456 -n fat-k-k8s

2、deployment加载密钥

    spec:
      imagePullSecrets:
        - name: harbor-keys
      containers:
        - env:
            - name: active
            - name: app
              value: kkcloud-activity-admin
          image: >-
            skg.harbor.bjshxg.com/fat-k-k8s/java-admin:feature_fat-3945
          imagePullPolicy: Always
          name: java-admin

 

标签:name,harbor,--,admin,密钥,镜像,docker
From: https://www.cnblogs.com/linjiangCN/p/17065508.html

相关文章