This section describes how to edit custom resources.

Prerequisites

You need to join a cluster and have the Custom Resource Definition Management permission in the cluster. For more information, see Cluster Members and Cluster Roles.

Steps

  1. Log in to the KubeSphere web console with a user who has Custom Resource Definition Management permissions and enter your cluster.

  2. Click Custom Resource Definitions in the left navigation pane.

  3. In the list of custom resource definitions, click the name of a custom resource definition to open its details page.

  4. On the Custom Resource Definitions tab, click more on the right side of the custom resource you want to edit, and then select Edit YAML from the drop-down list.

  5. In the Edit YAML dialog box, modify the YAML settings of the custom resource, and then click OK.

    • Click upload-dark-white in the upper right corner of the dialog box to upload a local YAML configuration file.

    • Click download-dark-white in the upper right corner of the dialog box to download the YAML configuration file to your local machine.

    Note

    You need to modify the settings of the custom resource according to the Custom Resource Definition specification and the API provided by the controller. For more information, please refer to the Kubernetes official documentation.