Configure Application With ConfigMap
Last updated
Last updated
Select ConfigMaps menu.
Click on Create ConfigMap button.
Enter following inputs:
Name: quarkus-todo-config
Key: quarkus.datasource.username
Value: pguser
Then click Add key/value link
Enter following inputs:
Key: quarkus.datasource.password
Value: pgpassword
Then click Create button.
The new ConfigMap should be created.
Go to Topology menu.
Select the quarkus-todo-app node, then click quarkus-todo-app Deployment link.
Go to Environment tab, Select the quarkus-todo-config ConfigMap we've just created earlier. Then click Save button.
Go to Topology menu and click on arrow icon to open application URL.
This time you should be able to see a list of todo tasks. The application can now connect to database successfully.
Play around with application e.g. add, remove tasks.