elixir-cloud-aai / tesk-api

GA4GH TES API Service that translates tasks into Kubernetes Batch API calls
Apache License 2.0
7 stars 18 forks source link

Configuration does not take effect, TESK_API_TASKMASTER_SERVICE_ACCOUNT_NAME #7

Closed zhang871622105 closed 3 years ago

zhang871622105 commented 4 years ago

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}

aniewielska commented 4 years ago

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?