Red Hat OpenShift Workshop For Developers
  • OpenShift Workshop For Developers
    • Getting Started
  • Application Containerization
    • Building Application
    • Application Packaging
    • Running Application Container
    • Externalize Application Configurations
  • Deployment On OpenShift
    • Database Deployment Via Web Console
    • Build And Deploy Application Using S2I
    • Configure Application With ConfigMap
    • Simple Application Scaling
  • Monitoring And Logging
    • View Application Logs
    • Application Monitoring
  • Scaling
    • Resources Allocation For Application
    • Scale Application Automatically
  • Resiliency
    • Application Health Checks
    • Self Healing
Powered by GitBook
On this page
  • Create ConfigMap
  • Configure Application
  1. Deployment On OpenShift

Configure Application With ConfigMap

PreviousBuild And Deploy Application Using S2INextSimple Application Scaling

Last updated 2 years ago

Create ConfigMap

  1. Select ConfigMaps menu.

  2. Click on Create ConfigMap button.

  3. Enter following inputs:

    • Name: quarkus-todo-config

    • Key: quarkus.datasource.username

    • Value: pguser

    Then click Add key/value link

  4. Enter following inputs:

    • Key: quarkus.datasource.password

    • Value: pgpassword

    Then click Create button.

  5. The new ConfigMap should be created.

Configure Application

  1. Go to Topology menu.

  2. Select the quarkus-todo-app node, then click quarkus-todo-app Deployment link.

  3. Go to Environment tab, Select the quarkus-todo-config ConfigMap we've just created earlier. Then click Save button.

  4. Go to Topology menu and click on arrow icon to open application URL.

  5. This time you should be able to see a list of todo tasks. The application can now connect to database successfully.

  6. Play around with application e.g. add, remove tasks.

Create ConfigMap
Create ConfigMap
Create ConfigMap
Create ConfigMap
Create ConfigMap
Set application configs
Set application configs
Set application configs
Set application configs
Set application configs