Create ConfigMaps
This section explains how to create ConfigMaps.
Prerequisites
You should join a cluster and have the Project Resource Management permission within the cluster. For more information, refer to "Cluster Members" and "Cluster Roles".
Steps
-
Log in to the KubeSphere web console with a user who has the Project Resource Management permission, and access your cluster.
-
Click Configuration > ConfigMaps in the left navigation pane.
-
Click Create on the page.
-
On the Basic Information tab, set the basic information for the ConfigMap, and then click Next.
Parameter Description Name
The name of the ConfigMap. The name can only contain lowercase letters, numbers, and hyphens (-), must start and end with a lowercase letter or number, and can be up to 63 characters long.
Alias
The alias of the ConfigMap. Aliases can be the same for different ConfigMaps. The alias can only contain Chinese characters, letters, numbers, and hyphens (-), cannot start or end with a hyphen (-), and can be up to 63 characters long.
Project
The project to which the ConfigMap belongs.
Description
The description of the ConfigMap. The description can contain any characters and can be up to 256 characters long.
-
On the Data Settings tab, set the key-value pair data for the ConfigMap, then click Create.
-
Click Add Data to add a key-value pair.
-
Hover over the created pair, then click on the right to edit the pair.
-
Hover over the created pair, then click on the right to delete the pair.
Once created, the ConfigMap will be displayed in the ConfigMap list.
-
Feedback
Was this page Helpful?
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.