// Module included in the following assemblies:
//
// * applications/deployments/managing-deployment-processes.adoc

:_mod-docs-content-type: PROCEDURE
[id="deployments-running-pod-svc-acct_{context}"]
= Running a pod with a different service account

You can run a pod with a service account other than the default.

.Procedure

. Edit the `DeploymentConfig` object:
+
[source,terminal]
----
$ oc edit dc/<deployment_config>
----

. Add the `serviceAccount` and `serviceAccountName` parameters to the `spec` field, and specify the service account you want to use:
+
[source,yaml]
----
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
  name: example-dc
# ...
spec:
# ...
  securityContext: {}
  serviceAccount: <service_account>
  serviceAccountName: <service_account>
----
