1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

Merge pull request #101606 from openshift-cherrypick-robot/cherry-pick-101480-to-enterprise-4.21

[enterprise-4.21] Removing an unused module file
This commit is contained in:
Michael Burke
2025-11-03 11:15:55 -05:00
committed by GitHub

View File

@@ -1,33 +0,0 @@
// Module included in the following assemblies:
//
// * orphaned
:_mod-docs-content-type: PROCEDURE
[id="pod-using-a-different-service-account_{context}"]
= Running a pod with a different service account
You can run a pod with a service account other than the default:
.Prerequisites
* Install the `oc` command-line interface.
* Configure a service account.
* Create a DeploymentConfig.
.Procedure
. Edit the DeploymentConfig:
+
----
$ oc edit dc/<deployment_config>
----
. Add the `serviceAccount` and `serviceAccountName` parameters to the `spec`
field, and specify the service account that you want to use:
+
----
spec:
securityContext: {}
serviceAccount: <service_account>
serviceAccountName: <service_account>
----