I'm using Skaffold with kaniko to perform an in-cluster build of a project. When trying to build the docker image using kaniko, I get the following error:
creating kaniko pod: pods is forbidden: User "system:serviceaccount:auto-discovered-shamil-personal-website-1-0:default" cannot create resource "pods" in API group "" in the namespace "default"
Can we get the namespace SA roles to include creating pods - in a specified namespace (which I can control, as I don't want to use the default namespace)
Shamil commented 3 years ago
Ah it looks like I can setup the Kubernetes executor instead of using the default auto-executor. Seems to work great :)
I'm using Skaffold with kaniko to perform an in-cluster build of a project. When trying to build the docker image using kaniko, I get the following error:
Can we get the namespace SA roles to include creating pods - in a specified namespace (which I can control, as I don't want to use the default namespace)