After the GDC Virtual cluster has been installed and registered, applications can be deployed using Google Cloud Console. In this solution, a PostgreSQL database application with persistent volume (using the PowerFlex storage class) is dynamically provisioned.
Deploying Postgres
- Log in to the Google Cloud Platform
- Select Kubernetes Engine > Applications as shown in the following figure:
Figure 6. Overview of Kubernetes cluster highlighting the number of nodes, total memory, and total vCPUs
The following figure shows the details of the nodes:
Figure 7. Details of Kubernetes cluster deployed on the nodes
- To deploy the applications, go to the Applications tab > Deploy from Marketplace as shown in the following figure:
Figure 8. Application deployment on the cluster
- Search for PostgreSQL Server as shown in the following figure:
Figure 9. PostgreSQL selection in the Cloud Console
- Specify the required fields such as namespace name and app instance name. Select the PowerFlex storage class and specify the size of the volume to be created for Postgres and click deploy.
Figure 10. Configuring PostgreSQL with the required details
- A 360Gb persistent volume is created internally in PowerFlex and attached to the Postgres database application under a new namespace that is specified in configuration as shown in the following figures:
Figure 11. New namespace created in the cluster
Figure 12. Name of the Persistent Volume used by Postgres
Figure 13. Block Volume created in PowerFlex
The following figure shows the verification of the Postgres database in the cluster:
Figure 14. Verification of Postgres database in the cluster