---
title: "Discussion on \"Connect to a CloudNativePG (CNPG) PostgreSQL Database from an Application on Kubernetes\" | Hashnode"
description: "Discussion on \"Connect to a CloudNativePG (CNPG) PostgreSQL Database from an Application on Kubernetes\". We will be connecting a PostgreSQL Database to the mealie application.\nStep 1: Create a Secret for Database Credentials\nWe generate our password, store it as a secret, and use it in the PostgreSQL clu"
url: "https://hashnode.com/posts/connect-to-a-cloudnativepg-cnpg-postgresql-database-from-an-application-on-kubernetes/69de86f491716f3cfb6887d5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Connect to a CloudNativePG (CNPG) PostgreSQL Database from an Application on Kubernetes](https://trinayakantevari.hashnode.dev/connect-to-a-cloudnativepg-cnpg-postgresql-database-from-an-application-on-kubernetes?utm_source=hashnode&utm_medium=feed)

We will be connecting a PostgreSQL Database to the mealie application. Step 1: Create a Secret for Database Credentials We generate our password, store it as a secret, and use it in the PostgreSQL clu

Apr 14 · 5 min read · trinayakantevari.hashnode.dev  
Read the article

-   [#cloud-native](https://hashnode.com/tag/cloud-native)
-   [#kubernetes](https://hashnode.com/tag/kubernetes)
-   [#databases](https://hashnode.com/tag/databases)
-   [#postgresql](https://hashnode.com/tag/postgresql)

## Written by

[Trinaya Kantevari](https://hashnode.com/@trinayakantevari)

@trinayakantevari

  
[View profile](https://hashnode.com/@trinayakantevari)

DevOps Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
