You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to setup kubedock. When i don't pass the service account flag I run into the issue that the basic service account doesn't have privileges to create the pod. When i pass the service account flag in a gitlab pipeline like this:
it throws the exception that no valid docker environment can be found. Docker is not installed on our cluster. We use job to build images and push them to kubernetes.
The text was updated successfully, but these errors were encountered:
I think the error is in the arguments: ["server", "--reverse-proxy", "--service-account my-serviceaccount"] should be ["server", "--reverse-proxy", "--service-account", "my-serviceaccount"]
I just tried but i am still getting the following exception:
com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"pods is forbidden: User "system:serviceaccount:namespace:default" cannot create resource "pods" in API group "" in the namespace "namespace""}
It doesn't seem to be setting the service account.
The service account argument makes sure the pods that are created by kubedock hade the specified service account configured. Your error is about kubedock itself not having the permissions of creating pods. The token kubedock is using, should have the proper rbac as well.
true, but i see in the logs it is grabbing the default service account and not the one i specified. I have created a service account with the rbac permissions and tied the permissions to the service account.
I am trying to setup kubedock. When i don't pass the service account flag I run into the issue that the basic service account doesn't have privileges to create the pod. When i pass the service account flag in a gitlab pipeline like this:
services:
command: ["server", "--reverse-proxy", "--service-account my-serviceaccount"]
it throws the exception that no valid docker environment can be found. Docker is not installed on our cluster. We use job to build images and push them to kubernetes.
The text was updated successfully, but these errors were encountered: