Using a PostgreSQL object-relational and SQL database
PostgreSQL is an object-relational database, used because of its strong reputation for reliability, feature robustness, and performance. It uses SQL to query its data. It’s also commonly used for storing files or to store data used to create machine learning models. So, let’s learn how to deploy PostgreSQL in a very simple way. To do this, follow the next steps:
- For this example, let’s use Kubernetes Secrets, and let’s create the password as
YOUR_PASSWORD
to give an example of how to hide sensible information as passwords. For this, let’s generate a Base64 encoding for your password with the following command:$ echo "YOUR_PASSWORD"| tr -d "\n" | base64
The output will look like this:
WU9VUl9QQVNTV09SRA==
- Use the previous output to create your Secret object using a YAML file. You can create the
db-password
Secret with this value using the...