快速开始

使用此页面,在创建合规扫描之前选择合适的资源。

先决条件

  • Alauda Container Platform 版本:>= v4.1.0
  • Plugin 版本:>= v1.1.0

选择资源

当你想为单个 profile 运行并管理一次合规扫描时,请使用 Scan。

当你想同时管理多个 profile、安排定期运行,或将一个模板应用到一组子 Scan 资源时,请使用 ScanSuite。

有关详细配置,请参阅 使用 Scan、使用 ScanSuite 和 节点选择与调度。

快速示例

运行单个 Scan

一次使用 Scan 处理一个 profile。

apiVersion: compliance.security.alauda.io/v1alpha1
kind: Scan
metadata:
  name: os-scan
  namespace: compliance-system
spec:
  profile: stig-os-example

注意:stig-os-example 是一个示例 profile 名称。请使用集群中实际可用的 profile 名称。

运行 ScanSuite

使用 ScanSuite 一次创建并管理多个子 Scan 资源。

apiVersion: compliance.security.alauda.io/v1alpha1
kind: ScanSuite
metadata:
  name: stig-scan
  namespace: compliance-system
spec:
  profiles:
    - stig-k8s-api-server
    - stig-k8s-control-plane
    - stig-k8s-general
    - stig-k8s-kubelet

下一步