Alauda Container Platform API Refiner is a platform service that filters Kubernetes API response data. It provides filtering capabilities by project, cluster, and namespace, and supports field exclusion, inclusion, and desensitization in API responses.
Ensure the plugin has been published by checking for ModulePlugin and ModuleConfig resources, in global
cluster :
This indicates that the ModulePlugin apirefiner
exists in the cluster and version v4.0.4
is published.
Create a ModuleInfo resource to install the plugin without any configuration parameters:
Field explanations:
name
: Temporary name for the cluster plugin. The platform will rename it after creation based on the content, in the format <cluster-name>-<hash of content>
, e.g., global-ee98c9991ea1464aaa8054bdacbab313
.label cpaas.io/cluster-name
: API Refiner only can be installed in the global
cluster, keep this filed as global.label cpaas.io/module-name
: Plugin name, must match the ModulePlugin resource.label cpaas.io/module-type
: Fixed field, must be plugin
; missing this field causes installation failure..spec.config
: If the corresponding ModuleConfig is empty, this field can be left empty..spec.version
: Specifies the plugin version to install, must match .spec.version
in ModuleConfig.The following resources are filtered by default:
Resource | API Version |
---|---|
namespaces | v1 |
projects | auth.alauda.io/v1 |
clustermodules | cluster.alauda.io/v1alpha2 |
clusters | clusterregistry.k8s.io/v1alpha1 |
By default, the following field is desensitized:
metadata.annotations.cpaas.io/creator