Home Explore Blog CI



kubernetes

1st chunk of `content/en/blog/_posts/2016-09-00-Creating-Postgresql-Cluster-Using-Helm.md`
38d83ac36f23b27ee93f7286284ff536666ea4f81cdc02e9000000010000067b
---
title: " Creating a PostgreSQL Cluster using Helm "
date: 2016-09-09
slug: creating-postgresql-cluster-using-helm
url: /blog/2016/09/Creating-Postgresql-Cluster-Using-Helm
author: >
  Jeff McCormick (Crunchy Data)
---

[Crunchy Data](http://www.crunchydata.com/) supplies a set of open source PostgreSQL and PostgreSQL related containers. The Crunchy PostgreSQL Container Suite includes containers that deploy, monitor, and administer the open source PostgreSQL database, for more details view this GitHub [repository](https://github.com/crunchydata/crunchy-containers).   

In this post we’ll show you how to deploy a PostgreSQL cluster using [Helm](https://github.com/kubernetes/helm), a Kubernetes package manager. For reference, the Crunchy Helm Chart examples used within this post are located [here](https://github.com/CrunchyData/crunchy-containers/tree/master/examples/kubehelm/crunchy-postgres), and the pre-built containers can be found on DockerHub at [this location](https://hub.docker.com/u/crunchydata/dashboard/).   

This example will create the following in your Kubernetes cluster:  

- postgres master service
- postgres replica service
- postgres 9.5 master database (pod)
- postgres 9.5 replica database (replication controller)




 ![HelmBlogDiagram.jpg](https://lh5.googleusercontent.com/Ff3vRGv3RHsrbAvJUFpVTehohw-OI2AeFmeVSVrdJuU0mjx3lKTa07YlaB_a7rW65rfAdupyeSqOT2DyxnSJ6_y4sXY5DhW14qM-vkxRo32969VZEpUNrZ3hIFdwJ9T04Ev6w2to)



This example creates a simple Postgres streaming replication deployment with a master (read-write), and a single asynchronous replica (read-only). You can scale up the number of replicas dynamically.

Title: Deploying a PostgreSQL Cluster with Helm
Summary
This blog post explains how to deploy a PostgreSQL cluster on Kubernetes using Helm, a Kubernetes package manager. Crunchy Data provides open-source PostgreSQL containers, and this example will create a Postgres master service, a Postgres replica service, a Postgres 9.5 master database pod, and a Postgres 9.5 replica database replication controller. The deployment includes a master (read-write) and a single asynchronous replica (read-only), with the ability to dynamically scale up the number of replicas.