我打算在我的kubernetes-clustering infra中部署一个应用程序.我把图像推到了dockerhub repo.如何从dockerhub中提取图像?
kubectl create secret docker-registry regcred --docker-username=
然后,您可以在规范下的部署文件中使用它
spec: containers: - name: private-reg-container-name image:
更多细节:https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-secret-in-the-cluster-that-holds-your-authorization-token