This a postgresql helm chart that would be integrated with zabbix solution.
To run this chart, follow these steps:
- Make sure that you have helm running in your host.
- Run the following command to pull
postgresql
helm chart dependencies:helm dependency update ./postgresql-helm-chart
- Create a secret that will hold the database passwords. The secret object should look like this (change the data values):
apiVersion: v1 kind: Secret metadata: name: postgresql-secret namespace: database data: postgres-password: "UG9zdGdSZXMyTWU=" password: "UG9zdGdSZXMyWmFiYml4"
- For dev purposes, you can comment the files under templates' folder, as well as the
postgresql.persistence
part in thevalues.yaml
file. - Create a database namespace that will hold the resources of this chart by running the following command:
kubectl create ns database
- Create a folder in your node that will hold postgres data, by running this command:
mkdir -p /kubernetes-persistent-volume/postgresql
- Finally, install the chart by running the following command:
helm install postgresql postgresql-helm-chart -f postgresql-helm-chart/values.yaml -n database