$ export ROX_API_TOKEN=<api_token>
Before you install the SecuredCluster
resource on a cluster, you must create an init bundle. The cluster that has SecuredCluster
installed and configured then uses this bundle to authenticate with Central. You can create an init bundle by using either the RHACS portal or the roxctl
cli. You then apply the init bundle by using it to create resources.
You must have the |
You can create an init bundle containing secrets by using the RHACS portal.
You must have the |
Find the address of the RHACS portal as described in "Verifying Central installation using the Operator method".
Log in to the RHACS portal.
If you do not have secured clusters, the Platform Configuration → Clusters page appears.
click Create init bundle.
Enter a name for the cluster init bundle.
Select your platform.
Select the installation method you will use for your secured clusters: Operator or Helm chart.
click Download to generate and download the init bundle, which is created in the form of a YAML file. You can use one init bundle and its corresponding YAML file for all secured clusters if you are using the same installation method.
Store this bundle securely because it contains secrets. |
Apply the init bundle by using it to create resources on the secured cluster.
Install secured cluster services on each cluster.
You can create an init bundle with secrets by using the roxctl
cli.
You must have the |
You have configured the ROX_API_TOKEN
and the ROX_CENTRAL_ADDRESS
environment variables:
Set the ROX_API_TOKEN
by running the following command:
$ export ROX_API_TOKEN=<api_token>
Set the ROX_CENTRAL_ADDRESS
environment variable by running the following command:
$ export ROX_CENTRAL_ADDRESS=<address>:<port_number>
To generate a cluster init bundle containing secrets for Helm installations, run the following command:
$ roxctl -e "$ROX_CENTRAL_ADDRESS" \
central init-bundles generate <cluster_init_bundle_name> \
--output cluster_init_bundle.yaml
To generate a cluster init bundle containing secrets for Operator installations, run the following command:
$ roxctl -e "$ROX_CENTRAL_ADDRESS" \
central init-bundles generate <cluster_init_bundle_name> \
--output-secrets cluster_init_bundle.yaml
Ensure that you store this bundle securely because it contains secrets. You can use the same bundle to set up multiple secured clusters. |
Before you configure a secured cluster, you must apply the init bundle by using it to create the required resources on the cluster. Applying the init bundle allows the services on the secured cluster to communicate with Central.
If you are installing by using Helm charts, do not perform this step. Complete the installation by using Helm; See "Installing RHACS on secured clusters by using Helm charts" in the additional resources section. |
You must have generated an init bundle containing secrets.
You must have created the stackrox
project, or namespace, on the cluster where secured cluster services will be installed. Using stackrox
for the project is not required, but ensures that vulnerabilities for RHACS processes are not reported when scanning your clusters.
Using the kubectl
cli, run the following commands to create the resources:
$ kubectl create namespace stackrox (1)
$ kubectl create -f <init_bundle>.yaml \(2)
-n <stackrox> (3)
1 | Create the project where secured cluster resources will be installed. This example uses stackrox . |
2 | Specify the file name of the init bundle containing the secrets. |
3 | Specify the project name that you created. This example uses stackrox . |