I have a docker private registry.Now I want to pull image in minikube
kubectl run test --image=docker-registry.localdomain/others/test:latest --port=8077 --generator=run/v1
but I get an error
Failed to pull image "docker-registry.localdomain/others/test:latest": rpc error: code = Unknown desc = Error response from daemon: Get "https://docker-registry.localdomain/v2/": x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0.
And I have try
export GODEBUG=x509ignoreCN=0; kubectl run test --image=docker-registry.localdomain/others/test:latest --port=8077 --generator=run/v1
But I still get the same error.
So how can I deploy this image by minikube?
PS: I can pull this image by docker pull