5.2. 在安装过程中启用离线模式
您可在安装 Red Hat Advanced Cluster Security for Kubernetes 过程中启用离线模式。
5.2.1. 使用 Helm 配置启用离线模式
当使用 Helm chart 安装 Red Hat Advanced Cluster Security for Kubernetes 时,您可以在安装过程中启用离线模式。
流程
- 
							安装 central-services Helm Chart 时,在 values-public.yaml配置文件中将env.offlineMode环境变量值设置为true。
- 
							安装 secured-cluster-services Helm Chart 时,在 values-public.yaml配置文件中将config.offlineMode参数的值设置为true。
5.2.2. 使用 roxctl CLI 启用离线模式
					在使用 roxctl CLI 安装 Red Hat Advanced Cluster Security for Kubernetes 时,您可以启用离线模式。
				
流程
- 如果您使用除默认互联网连接的 registry ( - registry.redhat.io) 以外的 registry,在回答- image to use提示时提供推送 Red Hat Advanced Cluster Security for Kubernetes 镜像的位置:- Enter main image to use (if unset, the default will be used): <your_registry>/rhacs-main-rhel8:3.74.9 - Enter main image to use (if unset, the default will be used): <your_registry>/rhacs-main-rhel8:3.74.9- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 注意- 默认镜像取决于您对 - Enter default container images settings:提示的回答:如果您输入了- rhacs,则默认选项将是- registry.redhat.io/advanced-cluster-security/rhacs-main-rhel8:3.74.9。- Enter Scanner DB image to use (if unset, the default will be used): <your_registry>/rhacs-scanner-db-rhel8:3.74.9 - Enter Scanner DB image to use (if unset, the default will be used): <your_registry>/rhacs-scanner-db-rhel8:3.74.9- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow - Enter Scanner image to use (if unset, the default will be used): <your_registry>/rhacs-scanner-rhel8:3.74.9 - Enter Scanner image to use (if unset, the default will be used): <your_registry>/rhacs-scanner-rhel8:3.74.9- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- 要启用离线模式,在回答 - Enter whether to run StackRox in offline mode提问时输入- true:- Enter whether to run StackRox in offline mode, which avoids reaching out to the internet (default: "false"): true - Enter whether to run StackRox in offline mode, which avoids reaching out to the internet (default: "false"): true- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- 
							之后,当您在 RHACS 门户的 Platform Configuration Clusters 视图中将 Sensor 添加到远程集群中时,您必须在 Collector Image Repository 字段中指定 Collector 镜像名称。