Database Deployment Via Web Console
Last updated
Last updated
Login to OpenShift web console with the given username and password.
Click on Skip tour button.
Click on Create a new project link to create a new project (a.k.a namespace).
Enter the project name as userX-todo where X is the number of your username. Then click Create button.
Click Add+ menu.
Select Database in the Developer Catalog panel.
Select PostgreSQL template.
Click Instantiate Template button.
Enter following input:
Database Service Name: todo-db
PostgreSQL Connection Username: pguser
PostgreSQL Connection Password: pgpassword
PostgreSQL Database Name: todo
Then click Create button.
Wait until the todo-db node is surround with blue ring then click on the node. A panel will show up on the right side, click on the Resources tab to see Pods and Services. Then click on the Pod name.
Go to Terminal tab.
Enter following command. You'll be asked to enter a password, the password is pgpassword
.
Example Output
Copy these SQL statements and paste to the terminal then press Enter
on keyboard.
Example Output
Enter this command to verify if the table was created.
Example Output