Business Scenario
You, as a developer, have been tasked with creating a PostgreSQL (or simply Postgres) database on Kubernetes that persists data on a PersistentVolume.
Live Environment
In this exercise, you will perform the following steps:
- Create a PersistentVolume.
- Create a PersistentVolumeClaim.
- Deploy a Postgres database using a StatefulSet.
- Verify that the PersistentVolumeClaim is bound.
Prerequisites
- You have successfully created a SAP BTP, Kyma runtime instance in the SAP BTP subaccount.
- You have configured kubectl to work with your SAP BTP, Kyma runtime instance.
Result
You have created a stateful application via a StatefulSet and used Kubernetes storage primitives to persist data.