# Configure Application With ConfigMap

## Create ConfigMap

1.  Select **ConfigMaps** menu.

    ![Create ConfigMap](https://4096465133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa3i2iCO0U9uw1JFkKW85%2Fuploads%2Fgit-blob-2e896908f4c09bcdc3240804554931c88c7530b9%2Fdeploy-22.png?alt=media)
2.  Click on **Create ConfigMap** button.

    ![Create ConfigMap](https://4096465133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa3i2iCO0U9uw1JFkKW85%2Fuploads%2Fgit-blob-e077665aa2cbfbd298d36f2bbb58ec90f0f0ff84%2Fdeploy-23.png?alt=media)
3.  Enter following inputs:

    * **Name:** `quarkus-todo-config`
    * **Key:** `quarkus.datasource.username`
    * **Value:** `pguser`

    Then click **Add key/value** link

    ![Create ConfigMap](https://4096465133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa3i2iCO0U9uw1JFkKW85%2Fuploads%2Fgit-blob-3b04876e75b2e3d30bdb0dd0fb3c342e312d899a%2Fdeploy-24.png?alt=media)
4.  Enter following inputs:

    * **Key:** `quarkus.datasource.password`
    * **Value:** `pgpassword`

    Then click **Create** button.

    ![Create ConfigMap](https://4096465133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa3i2iCO0U9uw1JFkKW85%2Fuploads%2Fgit-blob-2cbe370d92b894b0798250a43797115c581ed5a3%2Fdeploy-25.png?alt=media)
5.  The new ConfigMap should be created.

    ![Create ConfigMap](https://4096465133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa3i2iCO0U9uw1JFkKW85%2Fuploads%2Fgit-blob-9144ad2f29ebda21efa3d4f1340f23c5c317a06e%2Fdeploy-26.png?alt=media)

## Configure Application

1.  Go to **Topology** menu.

    ![Set application configs](https://4096465133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa3i2iCO0U9uw1JFkKW85%2Fuploads%2Fgit-blob-3d96a0cde11d03f4e9619ea8f7f1be73e7c7aa18%2Fdeploy-27.png?alt=media)
2.  Select the **quarkus-todo-app** node, then click **quarkus-todo-app** Deployment link.

    ![Set application configs](https://4096465133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa3i2iCO0U9uw1JFkKW85%2Fuploads%2Fgit-blob-440745998f5049e5d108ef3d58e56be8d92a49f8%2Fdeploy-28.png?alt=media)
3.  Go to **Environment** tab, Select the **quarkus-todo-config** ConfigMap we've just created earlier. Then click **Save** button.

    ![Set application configs](https://4096465133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa3i2iCO0U9uw1JFkKW85%2Fuploads%2Fgit-blob-a1f14a0b8c02dd131f4dda109c8e400543120397%2Fdeploy-29.png?alt=media)
4.  Go to **Topology** menu and click on arrow icon to open application URL.

    ![Set application configs](https://4096465133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa3i2iCO0U9uw1JFkKW85%2Fuploads%2Fgit-blob-a2717723e8c9d8604d2dfeec262bcd1ec73362fd%2Fdeploy-30.png?alt=media)
5.  This time you should be able to see a list of todo tasks. The application can now connect to database successfully.

    ![Set application configs](https://4096465133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa3i2iCO0U9uw1JFkKW85%2Fuploads%2Fgit-blob-058dcff0394709b68bda9214f9ea9e91ca7ac1fb%2Fdeploy-31.png?alt=media)
6. Play around with application e.g. add, remove tasks.
