Custom resources
Custom Resources Definitions (CRD) are Kubernetes API extensions. Unlike regular resources, they are not always available in a default Kubernetes installation. Instead, they are dynamically registered to a cluster. After registering the custom resource, users can manage objects such as namespaces, pods and services.
Introducing CRD and extending Kubernetes APIs will allow you to direct Kubernetes to manage more than containers.
To view the different Custom resources data, follow these steps to access the data you need:
- Authenticate into the Container Cluster Management application by providing credentials to ensure secure access to the management dashboard.
- Upon successful authentication, proceed to the CCM main dashboard. This serves as the central hub for all Container Cluster Management activities.
- In the dashboard, locate the Cluster table, positioned towards the bottom of the interface. This table lists all the clusters available under your management.
- Identify and choose the desired cluster by selecting it within the Cluster table. This action will direct you to a detailed view of the selected cluster.
- Within the cluster details view, navigate to the Custom resources tab. Here, you will find options to view and manage Persistent Volumes, Persistent Volume Claims and Storage Classes associated with the selected cluster.
Definitions
Once you select View details on a cluster from the Clusters table, the Container Cluster Management details table will emerge; scroll down to Custom Resources and select Definitions.
The Custom resource definitions table presents data about the custom resources that are enabled as follows:
- Name: Name of the Custom Resource Definition.
- Group: Name of the Kubernetes or API group.
- Scope: Category within the cluster, namespaced, cluster, pod, etc.
- Age: Time since the CRD was enabled.
To access details for a specific CRD, Click the overflow menu located to the far right of the table and select View details; a new dialog appears with technical service details.
The following elements are displayed in this dialog:
- The custom resource definition is panel title, label, annotations, version and accepted names.
- Resource/Objects: This section displays the Resource / Objects table with static columns and custom column names.
- Static columns: If CRD has Namespaced Scope then columns would be Name, Namespace and Age; otherwise, the columns would be Name and Age.
- Custom columns: It is based on CRD response under this attribute versions.additionalPrinterColumns ([]CustomResourceColumnDefinition).
- Conditions: This section displays the Conditions table with the following columns: Type, Status, Last Transition time, Reason and Message.
- Raw JSON : The data here is JSON data about the selected definitions from the REST API exposed by kubernetes.