All Products
Search
Document Center

Container Service for Kubernetes:use CRDs to manage custom resources

Last Updated:Apr 15, 2024

Kubernetes cluster resources are used as API entities to store and manage a class of resource objects in a cluster. When the default Kubernetes resources cannot meet business requirements, you can extend the Kubernetes API by using CustomResourceDefinitions (CRDs) to add CustomResources (CRs). This enhances the flexibility of cluster management.

Limits

For some resource types, only operations such as create are supported. The resource objects of these resource types are not listed.

Procedure

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, click the name of the cluster that you want to manage and choose Workloads > Custom Resources in the left-side navigation pane.

  3. Perform the following operations as needed:

    • In the upper-right corner of the page, click Create from YAML to create a CRD.

    • On the CRDs tab, query or edit the YAML file of the CRD.

    • On the Resource Objects tab, query and manage resource objects.

      • View API groups and resource types.

        On the Resource Objects tab, all API groups supported by the cluster are listed on the left side of the page. You can click the name of an API group to view all resource types that are contained in the group. You can also enter a keyword in the search box to search for resource types.

      • View resource objects

        You can select a resource type in an API group to view the resource objects of the resource type. You can modify the YAML files of resource objects and delete resource objects.

References

For more information about how to create other types of workloads, such as Deployments, StatefulSets, Jobs, and CronJobs, see Workloads.