Add a ConfigMap
From the menu select ConfigMaps & Secrets then click Add with form.
ConfigMaps can also be added using a manifest by clicking Create from manifest.
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F3146734376-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwXVC6tYZrbL0dPoO2iBb%252Fuploads%252FL1qXmW4WE2BwzYvxbxHz%252F2.15-k8s_kubernetes_configmap_create_form.gif%3Falt%3Dmedia%26token%3D0fe27a4f-7154-49ba-a79f-4c3a77a689f7&width=768&dpr=4&quality=100&sign=11b56c30&sv=1)
Define the ConfigMap, using the table below as a guide.
Field/Option | Overview |
---|---|
Name | Give the ConfigMap a descriptive name. |
Namespace | Select the namespace where the ConfigMap will be saved. |
Configuration type | Select ConfigMap from the dropdown. ConfigMaps should not store any sensitive information. If you need to store sensitive information consider using a secret instead. |
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F3146734376-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwXVC6tYZrbL0dPoO2iBb%252Fuploads%252FmMEpJhn6TdWRgvEcoZQ3%252F2.15-kubernetes_configmap_add_form_config.png%3Falt%3Dmedia%26token%3D9b52aad8-9e2f-4a74-885a-a212dd6b9850&width=768&dpr=4&quality=100&sign=770f3bd1&sv=1)
In the Data section you can enter the details of your ConfgMap, in either Simple mode or Advanced mode. Under Simple mode you can add entries in a key and value format, and in Advanced mode you can paste in multiple values in YAML format.
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F3146734376-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwXVC6tYZrbL0dPoO2iBb%252Fuploads%252FQzqYIXhwBRTw1jjDpev1%252F2.15-kubernetes_configmap_add_form_config_data.png%3Falt%3Dmedia%26token%3D22eb530c-7831-4a91-94b8-92066871bc8c&width=768&dpr=4&quality=100&sign=41f25007&sv=1)
![](https://docs.portainer.io/~gitbook/image?url=https%3A%2F%2F3146734376-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FwXVC6tYZrbL0dPoO2iBb%252Fuploads%252FPVXp0UqOk3up96EJxPJi%252F2.15-kubernetes_configmap_add_from_config_data_simple.png%3Falt%3Dmedia%26token%3Da3d4168b-c1fd-49b4-bf9c-343563f41ecc&width=768&dpr=4&quality=100&sign=9a68c4f2&sv=1)
When you have finished defining the ConfigMap, click Create ConfigMap.
Last updated