$ 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 Admin user role to create an init bundle. |
You can create an init bundle containing secrets by using the RHACS portal, also called the ACS Console.
You must have the Admin user role to create an init bundle. |
On the RHACS portal, navigate to Platform Configuration → Integrations.
Navigate to the Authentication Tokens section and click on Cluster Init Bundle.
Click Generate bundle.
Enter a name for the cluster init bundle and click Generate.
If you are installing using helm charts, click Download helm Values File to download the generated bundle.
If you are installing using the Operator, click Download Kubernetes Secret File to download the generated bundle.
Store this bundle securely because it contains secrets. You can use the same bundle to create multiple secured clusters. |
Apply the init bundle by creating a resource 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 Admin user role to create init bundles. |
You have configured the ROX_API_TOKEN
and the ROX_CENTRAL_ADDRESS
environment variables.
Set the ROX_API_TOKEN
and the ROX_CENTRAL_ADDRESS
environment variables:
$ export ROX_API_TOKEN=<api_token>
$ export ROX_CENTRAL_ADDRESS=<address>:<port_number>
Run the following command to generate a cluster init bundle containing secrets:
For helm installations:
$ roxctl -e "$ROX_CENTRAL_ADDRESS" \
central init-bundles generate <cluster_init_bundle_name> \
--output cluster_init_bundle.yaml
For Operator installations:
$ 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. |
Use the kubectl
CLI to create resources using the init bundle.
Before you install secured clusters, you must use the init bundle to create the required resources on the cluster that will allow the services on the secured clusters to communicate with Central.
If you are installing by using helm charts, do not perform this step. |
You must have generated an init bundle containing secrets.
Using the kubectl
CLI, run the following commands to create the resources:
$ kubectl create namespace stackrox
$ kubectl create -f <init_bundle>.yaml \ (1)
-n <stackrox> (2)
1 | Specify the file name of the init bundle containing the secrets. |
2 | Specify the name of the project where secured cluster services will be installed. |
Install RHACS secured cluster services in all clusters that you want to monitor.