$ roxctl sensor [command] [flags]
在安全集群中部署 Red Hat Advanced Cluster Security for Kubernetes (RHACS) 服务。(Deploy Red Hat Advanced Cluster Security for Kubernetes (RHACS) services in secured clusters.)
$ roxctl sensor [command] [flags]
命令 (Command) | 描述 (Description) |
---|---|
|
生成文件以在安全集群中部署 RHACS 服务。(Generate files to deploy RHACS services in secured clusters.) |
|
下载包含传感器、收集器和准入控制器的更新证书的 YAML 文件。(Download a YAML file with renewed certificates for Sensor, Collector, and Admission controller.) |
|
下载包含在集群中部署 RHACS 服务的文件的捆绑包。(Download a bundle with the files to deploy RHACS services in a cluster.) |
选项 (Option) | 描述 (Description) |
---|---|
|
设置 API 请求重试之前的超时时间。值为零表示等待整个请求持续时间而无需重试。默认值为 `20s`。(Set the timeout after which API requests are retried. A value of zero means that the entire request duration is waited for without retrying. The default value is `20s`.) |
|
设置 API 请求的超时时间,表示请求的最大持续时间。默认值为 `1m0s`。(Set the timeout for API requests representing the maximum duration of a request. The default value is `1m0s`.) |
roxctl sensor
命令支持从父 roxctl
命令继承的以下选项 (The roxctl sensor
command supports the following options inherited from the parent roxctl
command)
选项 (Option) | 描述 (Description) |
---|---|
|
指定用于安全连接的自定义 CA 证书文件路径。或者,您可以使用 `ROX_CA_CERT_FILE` 环境变量指定文件路径。(Specify a custom CA certificate file path for secure connections. Alternatively, you can specify the file path by using the `ROX_CA_CERT_FILE` environment variable.) |
|
设置 |
|
设置要联系的服务的端点。或者,您可以使用 |
|
强制所有连接使用HTTP/1。或者,通过将 |
|
启用不安全连接选项。或者,通过将 |
|
跳过TLS证书验证。或者,通过将 |
|
禁用彩色输出。或者,通过将 |
|
指定基本身份验证的密码。或者,您可以使用 |
|
使用未加密的连接。或者,通过将 |
|
设置用于SNI的TLS服务器名称。或者,您可以使用 |
|
使用指定文件中提供的API令牌进行身份验证。或者,您可以使用 |
这些选项适用于 |
生成文件以在安全集群中部署 RHACS 服务。(Generate files to deploy RHACS services in secured clusters.)
$ roxctl sensor generate [flags]
选项 (Option) | 描述 (Description) |
---|---|
|
禁用准入控制器的旁路注释。默认值为 |
|
准入控制器中动态启用对对象创建的强制执行。默认值为 |
|
启用准入控制器中对对象更新的动态强制执行。默认值为 |
|
配置准入控制器webhook以侦听部署创建。默认值为 |
|
配置准入控制器webhook以侦听部署更新。默认值为 |
|
使用准入控制器时,内联获取扫描结果。默认值为 |
|
设置准入控制器的超时时间(秒)。默认值为 |
|
设置要连接Sensor的端点。默认值为 |
|
指定要用于运行时支持的收集方法。收集方法包括 |
|
设置要用于部署Collector的镜像仓库。如果未指定,则会派生与有效的 |
|
即使集群已存在,也要继续下载传感器包。默认值为 |
|
决定是否创建具有 |
|
禁用受污染节点的容忍度。默认值为 |
|
创建 |
|
生成支持指定Istio版本的部署文件。有效版本包括 |
|
指定要用于部署Sensor的镜像仓库。如果未指定,则使用默认值。 |
|
设置集群名称以标识集群。 |
|
设置包内容的输出目录。默认值为当前目录内自动生成的目录名称。 |
|
在部署包中使用Collector-slim。有效值包括 |
|
设置API请求的超时时间,表示请求的最大持续时间。默认值为 |
生成在Kubernetes集群中部署RHACS服务所需的文件。
$ roxctl sensor generate k8s [flags]
选项 (Option) | 描述 (Description) |
---|---|
|
启用准入控制器webhook以侦听Kubernetes事件。默认值为 |
生成在Red Hat OpenShift集群中部署RHACS服务所需的文件。
$ roxctl sensor generate openshift [flags]
选项 (Option) | 描述 (Description) |
---|---|
`--admission-controller-listen-on-events false |
true |
auto[=true]` |
|
`--disable-audit-logs false |
true |
auto[=true]` |
启用或禁用运行时检测的审计日志收集。默认值为 |
|
指定要为其生成部署文件的Red Hat OpenShift主版本。 |
下载包含将RHACS服务部署到集群中的文件包。
$ roxctl sensor get-bundle <cluster_details> [flags] (1)
1 | 对于<cluster_details> ,请指定集群名称或ID。 |
选项 (Option) | 描述 (Description) |
---|---|
|
指定是否创建具有 |
|
生成支持指定Istio版本的部署文件。有效版本包括 |
|
指定包内容的输出目录。默认值为当前目录内自动生成的目录名称。 |
|
在部署包中使用Collector-slim。有效值包括 |
|
设置API请求的超时时间,表示请求的最大持续时间。默认值为 |
下载包含传感器、收集器和准入控制器的更新证书的 YAML 文件。(Download a YAML file with renewed certificates for Sensor, Collector, and Admission controller.)
$ roxctl sensor generate-certs <cluster_details> [flags] (1)
1 | 对于<cluster_details> ,请指定集群名称或ID。 |
选项 (Option) | 描述 (Description) |
---|---|
|
指定YAML文件的输出目录。默认值为 |