Create a ConfigMap
This section describes how to create a ConfigMap.
Prerequisites
You need to join a project and have the ConfigMap Management permission in the project. For more information, see Project Members and Project Roles.
Steps
-
Log in to the KubeSphere web console with a user who has ConfigMap Management permissions and enter your workspace.
-
Click Configuration > ConfigMaps in the left navigation pane.
-
Select a project from the drop-down list in the upper left corner of the page.
-
Click Create on the page.
-
On the Basic Information tab, set the basic information for the Secret, 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 has a maximum length of 63 characters.
Alias
The alias of the ConfigMap. Different ConfigMaps can have the same alias.
Description
The description of the ConfigMap. The description can contain any characters and has a maximum length of 256 characters.
-
On the Data Settings tab, set the key-value pair data for the ConfigMap, then click Create.
-
Click Add Data to set key-value pair data.
-
Hover over an existing data entry, then click
on the right to edit the data entry.
-
Hover over an existing data entry, then click
on the right to delete the data entry.
After the ConfigMap is created, it will be displayed in the ConfigMap list.
-