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