In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.