# Service Accounts ## Configure the service account to run Workflows ### Roles, Role-Bindings, and Service Accounts To support features such as artifacts, outputs, and access to secrets, Argo needs to communicate with Kubernetes resources using the Kubernetes API. To communicate with the Kubernetes API, Argo uses a `ServiceAccount` to authenticate itself to the Kubernetes API. You give a `ServiceAccount` its permissions by binding a `Role` to it with a `RoleBinding`. Then, when submitting Workflows, you can specify which `ServiceAccount` Workflow pods use: ```bash argo submit --serviceaccount ``` If you don't specify a `ServiceAccount`, Workflow pods use the `default` `ServiceAccount` from the namespace the workflow runs in, which almost always has insufficient privileges by default. For more information about granting Argo the necessary permissions for your use case, see [Workflow RBAC](workflow-rbac.md). ### Granting admin privileges For this demo, grant admin privileges to the `default` `ServiceAccount` in the `argo` namespace by binding the `admin` `ClusterRole` to it: ```bash kubectl create rolebinding default-admin --clusterrole=admin --serviceaccount=argo:default -n argo ``` **This grants admin privileges to the `default` `ServiceAccount` in the `argo` namespace. Only Workflows in the `argo` namespace that use the `default` `ServiceAccount` receive these privileges.**