Getting started with OpenShift protection

Getting started with OpenShift protection

Prerequisites:

  1.  A storage bucket in GCPandcredentials to access it.
  2.  A Configmap and SecretonyourOpenShiftcluster for the bucket config and credentials.
  3.  Creating the Configmap and Secret inOpenShift.

Step 1: Creating a storage bucket

 You can create a bucket through the GCP console or by running the following script in Google Cloud Shell.

Note:Replace<bucket_name> with the correct value before running the script.


AX_CPS_BUCKET_NAME=<bucket_name>gsutil mb -b on gs://$AX_CPS_BUCKET_NAME/gcloud iam service-accounts create appranix --display-name "Appranix service account"AX_SERVICE_ACCOUNT_EMAIL=$(gcloud iam service-accounts list --filter="displayName:Appranix service account" --format 'value(email)')gsutil iam ch serviceAccount:$AX_SERVICE_ACCOUNT_EMAIL:objectAdmin gs://${AX_CPS_BUCKET_NAME}gcloud iam service-accounts keys create ax_service_account.json --iam-account $AX_SERVICE_ACCOUNT_EMAIL

Step 2: Obtaining the Appranix token for the cluster

  1. Log in to your Appranix console and create a cluster.

  2. After the cluster creation copy, the token generated for that cluster.

      Note:You can sign-up for Appranix at https://signin.appranix.net/red-hat/marketplace-signup

Step 3: Creating the Configmap and Secret in the cluster

     A Configmap and Secret which contains the credentials and bucket configuration must be created before installing the operator.

It can be done by running the following script against your cluster.

Note: Replace<token>,<bucketname> with the correct values before running the script.

AX_TOKEN=<token>AX_CPS_BUCKET_NAME=<bucket_name>AX_CPS_BUCKET_PROVIDER=gcpAX_SERVICE_ACCOUNT=$(cat ax_service_account.json | base64 -w 0)oc new-project appranixcurl -Ls -H "Content-Type: application/json" https://us-central1-appranix-dev-07.cloudfunctions.net/gen-setup -d '{"token": "'$AX_TOKEN'", "bucket": "'$AX_CPS_BUCKET_NAME'", "cloud": "'$AX_CPS_BUCKET_PROVIDER'", "secret": "'$AX_SERVICE_ACCOUNT'"}' | oc apply -f -


Installation:

Once the pre-requisites are done, continue to install the operator from OperatorHub:

  1. Go to Operators -> OperatorHub on your OpenShift console

  2. Search for Appranix in OperatorHub

  3. Select Appranix APS Operator and click on Install

  4. Select the appranix namespace and click on Subscribe

  5. Go to Operators -> Installed Operators to check the installation status.

Uninstallation:

To remove the Appranix Operator from OpenShift:

  1. Go to Operators -> Installed Operators

On the Appranix APS Operator listing click on the 3 dots and click on Uninstall Operator


    • Related Articles

    • Getting Started

      Cloud Application Resilience Appranix Cloud Application Resilience Service offers protection and recovery of entire application environments using cloud-native services and cloud-native data lifecycle management. BCDR administrators, SREs, and Cloud ...
    • Getting Started with Container Resilience

      Kubernetes Connections Through Appranix, connect and discover Kubernetes Cluster resources automatically. You can discover and protect on-prem Kubernetes Cluster or managed Kubernetes Services like Google Kubernetes Engine, Azure Kubernetes Services, ...
    • Is there a way to exclude a cloud resource from Appranix protection?

      Yes, Appranix allows you to exclude the resource from being protected by applying a specific tag to your cloud resource. In AWS Add the following Tag to your Cloud Resource KEY: ax-aps-protection VALUE: ignore In GCP Add the following Label to your ...
    • What are the resource selection options available for protection in Appranix?

      Appranix allows you to choose the resources for protection while creating a Cloud assembly. You can use the following options to select the resources, For an AWS cloud assembly, Entire VPC Selected Tags Selected Resources For an GCP cloud assembly, ...
    • How to prevent a particular timelines snapshot from getting elapsed?

      Yes, You can prevent a timeline from getting elapsed by locking the particular timeline in the timeline page. Locking the timeline prevents it from deleting the event after the retention period. All you need to do is click the more button on the ...