Deploying Red Hat Advanced Cluster Security in ARO/ROSA
This content is authored by Red Hat experts, but has not yet been tested on every supported configuration.
This document is based in the RHACS workshop and in the RHACS official documentation .
Prerequisites
Set up the OpenShift CLI (oc)
Download the OS specific OpenShift CLI from Red Hat
Unzip the downloaded file on your local machine
Place the extracted
oc
executable in your OS path or local directory
Login to ARO / ROSA
- Login to your ARO / ROSA clusters with user with cluster-admin privileges.
Installing Red Hat Advanced Cluster Security in ARO/ROSA
For install RHACS in ARO/ROSA you have two options:
- Option 1 - Manual Installation
- Option 2 - Automated Installation using Ansible
Option 1 - Manual Installation
For install RHACS using the Option 1 - Manual installation:
Follow the steps within the RHACS Operator Installation Workshop to install the RHACS Operator.
Follow the steps within the RHACS Central Cluster Installation Workshop to install the RHACS Central Cluster.
Follow the steps within the RHACS Secured Cluster Configuration , to import the ARO/ROSA cluster into RHACS.
Option 2 - Automated Installation using Ansible
For install the RHACS in ROSA/ARO you can use the rhacs-demo repository that will install RH-ACS using Ansible playbooks:
- Clone the rhacm-demo repo and install the galaxy collection:
ansible-galaxy collection install kubernetes.core
pip3 install kubernetes jmespath
git clone https://github.com/rh-mobb/rhacs-demo
cd rhacs-demo
- Deploy the RHACS with the ansible-playbook command:
ansible-playbook rhacs-install.yaml
This will install RHACS and also a couple of example Apps to demo. If you want just the plain RHACS installation, use the rhacs-only-install.yaml playbook.
Deploying Example Apps for demo RHACS
- Deploy some example apps for demo RHACS policies and violations:
oc new-project test
oc run shell --labels=app=shellshock,team=test-team \
--image=vulnerables/cve-2014-6271 -n test
oc run samba --labels=app=rce \
--image=vulnerables/cve-2017-7494 -n test