In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Kubernetes in how to use harbor private warehouse, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Preset
Copy the ca.crt of harbor to the / etc/docker/certs.d/harbor.test.com:6443 directory of node
Cp ca.crt / etc/docker/certs.d/harbor.test.com:6443/
The secret to be used to create Pod pull image
Kubectl create secret docker-registry my-harbor-secret-docker-server=harbor.test.com:6443-docker-username=-docker-password=-docker-email=-namespace=harbor-test
Secret is only valid under default namespace by default. If you do not add-- namespace, the secret cannot be used by non-default namespace, and the failure to pull the image will be displayed.
Failed to pull image "harbor.test.com:6443/test/test-secret:latest": rpc error: code = Unknown desc = Error response from daemon: pull access denied for harbor.test.com:6443/test/test-secret:latest, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
Create a Pod private-reg-pod.yaml for testing
ApiVersion: v1kind: Podmetadata: name: private-reg namespace: harbor-testspec: containers:-name: private-reg-container image: harbor.test.com:6443/test/test-secret:latest imagePullSecrets:-name: my-harbor-secretkubectl create-f private-reg-pod.yaml, is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.