mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
90 lines
2.8 KiB
Plaintext
90 lines
2.8 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// backup_and_restore/application_backup_and_restore/oadp-self-service/oadp-self-service-cluster-admin-use-cases.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="oadp-self-service-admin-enable-disable_{context}"]
|
|
= Enabling and disabling {oadp-short} Self-Service
|
|
|
|
You must be a cluster administrator to enable the {oadp-short} Self-Service feature. You can use the `spec.nonAdmin.enable` section of the `DataProtectionApplication` (DPA) custom resource (CR) to enable and disable the Self-Service feature.
|
|
|
|
Enabling the Self-Service feature installs the `NonAdminController` (NAC) CR in the {oadp-short} Operator namespace.
|
|
|
|
[NOTE]
|
|
====
|
|
You can install only one instance of the `NonAdminController` (NAC) CR in the cluster. If you install multiple instances of the NAC CR, you get the following error:
|
|
|
|
.Example error
|
|
[source,terminal]
|
|
----
|
|
message: only a single instance of Non-Admin Controller can be installed across the entire cluster. Non-Admin controller is already configured and installed in openshift-adp namespace.
|
|
----
|
|
====
|
|
|
|
.Prerequisites
|
|
|
|
* You are logged in to the cluster with the `cluster-admin` role.
|
|
* You have installed the {oadp-short} Operator.
|
|
* You have configured the DPA.
|
|
|
|
.Procedure
|
|
|
|
* To enable {oadp-short} Self-Service, edit the DPA CR to configure the `nonAdmin.enable` section. See the following example configuration:
|
|
+
|
|
.Example `DataProtectionApplication` CR
|
|
[source,yaml]
|
|
----
|
|
apiVersion: oadp.openshift.io/v1alpha1
|
|
kind: DataProtectionApplication
|
|
metadata:
|
|
name: oadp-backup
|
|
namespace: openshift-adp
|
|
spec:
|
|
configuration:
|
|
nodeAgent:
|
|
enable: true
|
|
uploaderType: kopia
|
|
velero:
|
|
defaultPlugins:
|
|
- aws
|
|
- openshift
|
|
- csi
|
|
defaultSnapshotMoveData: true
|
|
nonAdmin: # <1>
|
|
enable: true # <2>
|
|
backupLocations:
|
|
- velero:
|
|
config:
|
|
profile: "default"
|
|
region: noobaa
|
|
s3Url: https://s3.openshift-storage.svc
|
|
s3ForcePathStyle: "true"
|
|
insecureSkipTLSVerify: "true"
|
|
provider: aws
|
|
default: true
|
|
credential:
|
|
key: cloud
|
|
name: <cloud_credentials>
|
|
objectStorage:
|
|
bucket: <bucket_name>
|
|
prefix: oadp
|
|
----
|
|
<1> Add the `nonAdmin.enable` section in the `spec` section of the DPA.
|
|
<2> Set the `enable` field to `true`. To disable the Self-Service feature, set the `enable` field to `false`.
|
|
|
|
.Verification
|
|
|
|
* To verify that the `NonAdminController` (NAC) pod is running in the {oadp-short} namespace, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get pod -n openshift-adp -l control-plane=non-admin-controller
|
|
----
|
|
+
|
|
.Example output
|
|
+
|
|
[source,terminal]
|
|
----
|
|
NAME READY STATUS RESTARTS AGE
|
|
non-admin-controller-5d....f5-p..9p 1/1 Running 0 99m
|
|
---- |