portainer-docs/user/kubernetes/configurations/add.md

2.4 KiB

Add a ConfigMap

From the menu select ConfigMaps & Secrets then click Add with form.

{% hint style="info" %} ConfigMaps can also be added using a manifest by clicking Create from manifest. {% endhint %}

Define the ConfigMap, using the table below as a guide.

Field/Option Overview
Namespace Select the namespace where the ConfigMap will be saved.
Name Give the ConfigMap a descriptive name.
Annotations You can add annotations to your ConfigMap as required by clicking Add annotation and filling in the Key and Value fields.
Configuration kind Select the ConfigMap option. ConfigMaps should not store any sensitive information. If you need to store sensitive information consider using a secret instead.

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.

Adding data in Simple mode

Adding data in Advanced mode

When you have finished defining the ConfigMap, click Create ConfigMap.