Wrong value for $KUBERNETES_VERSION variable
I am running GitLab 10.6ee and I just spent two days figuring out why my deployments fail after being unable to pull images from GitLab Container Repository, getting "access denied" issue.
Then I found this gitlab-ce#41204 (closed).
It turns out that despite we are running Kubernetes 1.10, the
$KUBERNETES_VERSION variable gets 1.8.6 is the value and the
kubectl that is being downloaded as part of the Auto Deploy dependencies installation, is 1.8.6 as well. I am not sure why this specific value is being used since we have no place with Kubernetes 1.8.6.
After I set up the
KUBERNETES_VERSION CI/CD variable to be 1.10, everything started to work.