elixir-cloud-aai/tesk-api

Configuration does not take effect, TESK_API_TASKMASTER_SERVICE_ACCOUNT_NAME

Closed this issue · 1 comments

Configuration does not take effect, TESK_API_TASKMASTER_SERVICE_ACCOUNT_NAME

2020-06-24 12:32:01.119 TRACE 1 --- [nio-8080-exec-1] u.a.e.t.t.u.c.KubernetesClientWrapper : END: createJob thrown uk.ac.ebi.tsc.tesk.exception.KubernetesException: Forbidden
2020-06-24 12:32:01.119 TRACE 1 --- [nio-8080-exec-1] u.a.e.t.t.u.c.KubernetesClientWrapper : ApiException ResponseBody: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User "system:serviceaccount:default:default" cannot create resource "jobs" in API group "batch" in the namespace "default": RBAC: clusterrole.rbac.authorization.k8s.io "service-reader" not found","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}

Unfortunately, I do not have sufficient information to help you. You tried to set the environment variable TESK_API_TASKMASTER_SERVICE_ACCOUNT_NAME and it did not work. How did you try to set it and to what value?