Installation and RHACS Cloud Service
Module goals
-
Deploy RHACS Cloud Service Central Instance
-
Remove the existing RHACS operator
-
Use the ACS Cloud Service to reinstall the Secured Cluster Services
Setting Up Red Hat Account and Creating Central Instance on ACS
Procedure
-
Head on over to Red Hat Advanced Cluster Security Trial
-
Click on the Start Your Trial button.
-
Sign up for a Red Hat account if you don’t have one. (Make sure to remember your username and password!)
-
Once you are in "Getting Started" tab select "Create Instance".
You will be redirected to the ACS Instances page where you can view all of the central services that have been deployed. |
-
Click on Create ACS instance.
-
Fill in your name, and select your cloud region (US East or Europe).
-
Wait for the creation process to complete. Typically it is 7-10 minutes.
You need ACS Central Services to be available to deploy ACS Secured Cluster Services into the EKS Cluster. Time to stretch your legs a bit. |
Checking and Accessing the Central Instance
Once the RHACS Central instance is available, we will check on it’s status.
Procedure
-
Ensure the Ready status is showing
-
Click on the Name of your Central Service instance. You will be redirected to a page with all of the Central Services details and a few extra resources.
Take note of the API and roxctl URL’s. It will be useful for connecting to the service later. |
-
Click on the Name of your Central Service instance. You will be redirected to a page with all of the Central Services details and a few extra resources.
-
Click on Open ACS Console and login to your account.
You should be redirected to your ACS instance at a page that looks like the one above. Ask for help if you have not reached this step. |
Uninstall the "On-Prem" RHACS Operator
While you’re waiting for the Central Services to spin up, head over to the OpenShift console to unstall the existing operator.
Procedure
-
Log into the OCP console at
https://console-openshift-console.apps.cluster-sample.sample.sandboxsample.opentlc.com
-
Click on Operators - Installed Operators
-
Locate the Advanced Cluster Security for Kubernetes Operator and select it.
-
Click on Actions, then click Uninstall Operator
-
Select "Delete all operand instances for this operator"
-
Click uninstall.
If successfull, you will have no access to the RHACS console at https://central-stackrox.apps.cluster-sample.sample.sandboxsample.opentlc.com
|
Let’s check out the RHACS Cloud Service instance.
Access the Cloud Service and Install the Secured Cluster Services
Red Hat Advanced Cluster Security for Kubernetes (RHACS) provides security services for self-managed RHACS on platforms such as Amazon Elastic Kubernetes Service (Amazon EKS), Google Kubernetes Engine (Google GKE), and Microsoft Azure Kubernetes Service (Microsoft AKS).
If you want to learn more about the installation methods before proceeding you can review the resource below:
-
Understand the installation methods for different platforms.
Setup the SCS certificates
Procedure
-
Head back over to your RHACS instance.
-
Click on your instance then select, "Open ACS Console".
-
Click on your instance then select, "Open ACS Console".
-
Login using your Red Hat credentials
Ask for help from you instructor if you are having issues with the RHACS Cloud Service instance or access. |
-
Select "View installation methods".
Since we have an OpenShift Cluster, you will be using the Operator method to install the Secured Cluster Services in OpenShift. |
To install the Operator two things have to be done
-
In the Red Hat OpenShift Container Platform web console on the cluster that you are securing, you have installed the RHACS Operator.
-
In the RHACS web portal, you have created an init bundle and downloaded the YAML file for the init bundle.
Let’s start by grabbing the init secrets
Procedure
-
In your RHACS Cloud Service instance, select "Platform Configuration - Cluster Init Bundle"
-
Select "Create bundle".
-
Name the bundle "new-cluster"
-
Ensure OpenShift & Operator are selected
-
Click Download
-
Next you need to copy the file contents and save it in a new file named init-bundle.yaml
nano init-bundle.yaml
Hit ctrl + x to exit nano. |
-
Run the following on your command line:
oc delete -f init-bundle.yaml -n rhacs-operator
oc create -f init-bundle.yaml -n rhacs-operator
You are running the delete command to ensure the previous certificates are removed. |
Install the operator
Procedure
-
Log into the OCP console at
https://console-openshift-console.apps.cluster-sample.sample.sandboxsample.opentlc.com
-
Click on Operators - Operator Hub
-
Search for RHACS and click on the one with the "Red Hat" source
-
Click Install
-
Ensure the existing Red Hat OpenShift Container Platform project rhacs-operator is selected.
-
Click Install
With the init-bundle deployed and the operator ready, it’s time to install the Secured Cluster |
-
Click on the Secured Cluster tab then select "Create SecuredCluster"
-
Use all of the defaults but change the cluster name to new-cluster
-
Add the Central Endpoint of your ACS Cloud Service. This can be foudn in the console.openshift or the URL at the top of the page.
-
Click "Install"
After a few minutes you should see everything light up green in the Cloud Service console. |