Kaniko (GitLab CI, K8s) can not push to Nexus Repository Manager: UNAUTHORIZED: access to the requested resource is not authorized

Solution 1:

I have found the problem. There is one faulty bracket in the Docker config. Unfortunately with the environment variables there are many brackets. Therefore this is not easy noticeable.

The more astonishing it is that Kaniko, with a verbosity of tracing, does not spit out an error...