Configmap
Configmap supports the separation of configuration files and image files to make containerized applications portable. Configmap stores configuration information in the form of key-value pairs.
For a detailed description of Configmaps, please see the kubernets official documentation-Configmap.
Description
Currently the OneCloud platform does not support the use of created Configmaps in the interface. You need to use the Configmaps by modifying the yaml file.
Entry: In the cloud management platform click on the top left corner of navigation menu, and click “Containers/Application Configuration/Configmapss” menu item in the left menu bar that pops up to enter the Configmaps page.
View Configmaps
This function is used to filter configuration item information based on cluster and namespace.
-
In the configuration item page, by default, you can view the configuration item information of all namespaces under a cluster.
-
When there are multiple clusters in the environment, click the input box on the right side of the cluster above the list and select other clusters to view the configuration information of all namespaces under other clusters.
-
When there are multiple namespaces under the cluster, click the input box on the right side of the namespace above the list, select the namespace, and view the Configmaps under the specified namespace.
Create Configmaps
This function is used to create a configuration item.
- On the configuration item page, click the “Create” button at the top of the list to enter the create configuration item page.
- Configure the following parameters.
- Name: The name of the configuration item.
- Cluster: Select the cluster to which the configuration item belongs.
- Namespace: Select the namespace to which the configuration item belongs. Namespaces are used to logically divide the cluster. deployment, pod, service, etc. all belong to a namespace. Kubernetes cluster will generate default, kube-system, and kube-public namespaces by default after the cluster is created.
- Configmap: Set the Configmaps in the form of key-value pairs, and support adding multiple key-value pairs.
- Click the “OK” button to create the Configmaps.
View/Edit
This function is used to view or edit the yaml file of a configuration item.
- In the configuration item page, click the “More” button in the action bar on the right side of the configuration item, and select the drop-down menu “View/Edit” menu item to bring up the View/Update dialog box.
- Support to view and edit the yaml file information of Configmaps.
- After editing the yaml file, click the “OK” button to take effect.
Delete Configmaps
This function is used to delete a configuration item.
Delete
- On the configuration item page, click the “Delete” button in the action column to the right of the configuration item, and the action confirmation dialog box pops up.
- Click the “OK” button to delete the configuration item and related resources.
Batch Delete
- Select one or more Configmaps in the list of Configmaps, and click the “Delete” button at the top of the list, the action confirmation dialog box pops up.
- Click the “OK” button to delete the Configmaps and related resources.
View Configmaps Details
This function is used to view the information about a configuration item.
- On the Configmaps page, click the Configmaps Name item to enter the Configmaps Details page.
- View the following information: Cloud ID, ID, name, status, cluster, namespace, container group, image, initialized image, tag, created at, etc.
View Container Group
This function is used to view the container groups associated with a configuration item and supports managing container groups.
View/Edit
This function is used to view the yaml file of a container group.
- On the configuration item page, click the configuration item name item to enter the configuration item details page.
- Click the Container Groups tab to enter the Container Groups page. Click the “View/Edit” button on the right column of the container group to bring up the View/Update dialog box.
- Support viewing and editing the yaml file information of the Configmaps.
- After editing the yaml file, click the “OK” button to take effect.
Delete
This function is used to delete a container group. After the container group is deleted, a new container group will be redeployed according to the yaml file settings.
- On the configuration item page, click the configuration item name item to enter the configuration item details page. Click the Container Groups tab to enter the Container Groups page.
- Click the “Delete” button on the right action bar of the container group to bring up the action confirmation dialog.
- Click the “OK” button to complete the operation.
Delete
This function is used to delete a service.
- On the Configuration item page, click the Configuration item name item to enter the Configuration item details page.
- Click the Services tab to enter the Services page.
- Click the “Delete” button on the right column of the service to bring up the operation confirmation dialog box.
- Click the “OK” button to complete the operation.
View Events
This function is used to record the occurrence of resource object events, including the content, source, cause, and created at, for troubleshooting purposes.
- On the Configmaps page, click the Configmaps Name item to enter the Configmaps Details page.
- Click the Events tab to enter the Events page. View the content, source, cause, and created at of the event.
View Source Information
This function is used to view and edit the yaml information of a configuration item.
- On the configuration item page, click the configuration item name item to enter the configuration item details page. Click the “Source Information” tab to enter the source information page.
- Click the “Copy Content” button to copy the yaml file information of the node.
- After updating the yaml file, click the “Update” button.
View Operation Log
This function is used to view the operation log related to a configuration item.
- On the configuration item page, click the configuration item name item to enter the configuration item details page.
- Click the Operation Log tab to enter the Operation Log page.
- Load More Logs: In the Operation Logs page, the list shows 20 operation logs by default. To view more operation logs, click the “Load More” button to get more logs.
- View Log Details: Click the “View” button on the right column of the operation log to view the log details. Copy details are supported.
- View logs of specified time period: If you want to view the operation logs of a certain time period, set the specific date in the start date and end date at the top right of the list to query the log information of the specified time period.
- Export logs: Currently, only the logs displayed on this page are supported to be exported. Click the upper-right corner of icon, set the export data column in the pop-up export data dialog, and click the “OK” button to export the logs.