Create a ConfigMap
This section describes how to create a ConfigMap.
Prerequisites
You need to join a cluster and have the cluster-admin role in the cluster.
Steps
-
Log in to the KubeSphere web console as a user with the cluster-admin role and go to your cluster.
-
Click Configurations > ConfigMaps in the left navigation pane.
-
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.
Project
The project to which the ConfigMap belongs.
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.
-