Skip to content

Autodeploy Fails: error: arguments in resource/name form must have a single resource and name

Description of the problem

I have a Laravel application with custom Dockerfile which runs on every machine tested I also have a custom .gitlab-ci.yml which does the testing and building. in order to deploy to my GKE cluster which gitlab installed all it's recommended tools I included it as the job script shows in the official repo.

Everything seems to go well until the final moment where it gives error: arguments in resource/name form must have a single resource and name.

watch kubectl get pods --all-namespaces shows the deployment as "ImagePullBackOff"

Attached is the raw log from gitlab shared runner.

Gitlab-Runner-Raw-Log.txt

The repo address is https://gitlab.com/peoplerange/internal/public-website !!! This repo is a private repo !!! It is just a Laravel install at the moment until I know auto deploy is going to work.

Here is the .gitlab-ci file gitlab-ci.txt