Alauda Container Platform API Refiner 是一个过滤 Kubernetes API 响应数据的平台服务。它提供按项目、集群和命名空间的过滤能力,并支持 API 响应中的字段排除、包含和脱敏。
确保插件已发布,通过检查 global
集群中的 ModulePlugin 和 ModuleConfig 资源:
这表示集群中存在 ModulePlugin apirefiner
,且版本 v4.0.4
已发布。
创建一个 ModuleInfo 资源以安装插件,无需任何配置参数:
字段说明:
name
:集群插件的临时名称。平台会根据内容在创建后重命名,格式为 <cluster-name>-<内容哈希>
,例如 global-ee98c9991ea1464aaa8054bdacbab313
。label cpaas.io/cluster-name
:API Refiner 只能安装在 global
集群,此字段保持为 global。label cpaas.io/module-name
:插件名称,必须与 ModulePlugin 资源匹配。label cpaas.io/module-type
:固定字段,必须为 plugin
;缺少此字段会导致安装失败。.spec.config
:如果对应的 ModuleConfig 为空,此字段可留空。.spec.version
:指定要安装的插件版本,必须与 ModuleConfig 中的 .spec.version
匹配。默认过滤以下资源:
资源 | API 版本 |
---|---|
namespaces | v1 |
projects | auth.alauda.io/v1 |
clustermodules | cluster.alauda.io/v1alpha2 |
clusters | clusterregistry.k8s.io/v1alpha1 |
默认脱敏以下字段:
metadata.annotations.cpaas.io/creator