5.2. Enabling offline mode during installation
You can enable offline mode during the installation of Red Hat Advanced Cluster Security for Kubernetes.
5.2.1. Enabling offline mode by using Helm configuration 复制链接链接已复制到粘贴板!
You can enable offline mode during the installation when you are installing Red Hat Advanced Cluster Security for Kubernetes by using a Helm chart.
Procedure
-
When installing the central-services Helm chart, set the value of the
env.offlineModeenvironmental variable totruein thevalues-public.yamlconfiguration file. -
When installing the secured-cluster-services Helm chart, set the value of the
config.offlineModeparameter totruein thevalues-public.yamlconfiguration file.
5.2.2. Enabling offline mode by using the roxctl CLI 复制链接链接已复制到粘贴板!
You can enable offline mode when you are installing Red Hat Advanced Cluster Security for Kubernetes by using the roxctl CLI.
Procedure
If you are using a registry other than the default internet-connected registry (
registry.redhat.io), provide the locations where you have pushed the Red Hat Advanced Cluster Security for Kubernetes images when answering theimage to useprompts:Enter main image to use (if unset, the default will be used): <your_registry>/rhacs-main-rhel8:4.7.8注意The default image depends on your answer for the prompt
Enter default container images settings:. If you enteredrhacs, the default option, the default image will beregistry.redhat.io/advanced-cluster-security/rhacs-main-rhel8:4.7.8.Enter Scanner DB image to use (if unset, the default will be used): <your_registry>/rhacs-scanner-db-rhel8:4.7.8Enter Scanner image to use (if unset, the default will be used): <your_registry>/rhacs-scanner-rhel8:4.7.8To enable the offline mode, enter
truewhen answering theEnter whether to run StackRox in offline modeprompt:Enter whether to run StackRox in offline mode, which avoids reaching out to the internet (default: "false"): true-
Later, when you add Sensor to a remote cluster in the Platform Configuration
Clusters view in the RHACS portal, you must specify your the Collector image name in the Collector Image Repository field.