< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

Edit Custom Resource

This section explains how to edit a custom resource.

Prerequisites

You should join a cluster and have the Custom Resource Definition Management permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".

Steps

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

  2. Click CRDs in the left navigation pane.

  3. Click the name of a custom resource definition in the list to open its details page.

  4. On the CRDs tab, click on more on the right side of the custom resource you want to edit, and then select Edit YAML from the dropdown list.

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

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

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

    Note

    You need to modify the settings of the custom resource according to the specifications of the custom resource definition and the API provided by the controller. For more information, refer to the Kubernetes Documentation.

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.

What’s on this Page