mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
48 lines
949 B
Plaintext
48 lines
949 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * extensions/ce/managing-ce.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
|
|
[id="olmv1-creating-a-service-account_{context}"]
|
|
= Creating a service account for an extension
|
|
|
|
You must create a service account to install, manage, and update a cluster extension.
|
|
|
|
.Prerequisites
|
|
|
|
* Access to an {product-title} cluster using an account with `cluster-admin` permissions.
|
|
|
|
.Procedure
|
|
|
|
. Create a service account, similar to the following example:
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: <extension>-installer
|
|
namespace: <namespace>
|
|
----
|
|
+
|
|
.Example `extension-service-account.yaml` file
|
|
[%collapsible]
|
|
====
|
|
[source,yaml]
|
|
----
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
name: pipelines-installer
|
|
namespace: pipelines
|
|
----
|
|
====
|
|
|
|
. Apply the service account by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc apply -f extension-service-account.yaml
|
|
----
|