Register of mini-beech and azure containers

I am trying to get images in a minibook from the Azure container registry. This continues to fail because it does not mean unauthorized access. unauthorized: authentication required

I used kubectl create secret to add credentials for the registry, but it continues to fail.

what i tried so far:

  • I added the url with and without https
  • I added admin user and made a new service principle
  • I tried adding a secret to the default service account in the hope that something happened with yaml
  • used minikube ssh to find out if docker and docker logins can be used (which worked).

To be a little desperate, what can I try next? how can i fix this better?

+4
source share
1 answer

The command kubectl create secretwas to create the ~ / .dockercfg file, which is used to authenticate the registry for subsequent requests docker pushand docker pull.

I suspect that you have created your secret in the wrong namespace, given that your team docker loginand docker pullworked.

Pods can only refer to the secrets of creating an image in its own namespace, so this process needs to be done once on the namespace.

https://kubernetes.io/docs/concepts/containers/images/#using-azure-container-registry-acr

+2
source

Source: https://habr.com/ru/post/1691206/


All Articles