From 73076e01fdb1835df334240a6fc86cbaadf096e0 Mon Sep 17 00:00:00 2001 From: MUzairS15 Date: Fri, 24 May 2024 23:50:46 +0530 Subject: [PATCH 1/5] update docs for pg_cron extension Signed-off-by: MUzairS15 --- content/en/cloud/self-hosted/deploy-with-helm.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/cloud/self-hosted/deploy-with-helm.md b/content/en/cloud/self-hosted/deploy-with-helm.md index 4e1646f2..227f120c 100644 --- a/content/en/cloud/self-hosted/deploy-with-helm.md +++ b/content/en/cloud/self-hosted/deploy-with-helm.md @@ -50,6 +50,10 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/cont The first service to install is the Postgres database. The following command installs the Postgres database and initializes it's dataset. The dataset is used by the Layer5 Cloud server and the Layer5 Cloud identity provider. +Layer5 Cloud `postgres` instance requires `pg_cron` extension to be enabled and configured in the `postgres` database to schedule PostgreSQL commands. +The cloud instance is bundled with required migrations to schedule the jobs with the required commands/sql queries. + +__NOTE: Configuring the extension in some other database will result in failure to apply SQL migrations.__ ##### 1. Install Postgres database From 9f51ae9dbb979d42ff3307dfb073f421bdc5c9ad Mon Sep 17 00:00:00 2001 From: MUzairS15 Date: Fri, 24 May 2024 23:51:09 +0530 Subject: [PATCH 2/5] update installation commands for postgres Signed-off-by: MUzairS15 --- content/en/cloud/self-hosted/deploy-with-helm.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/en/cloud/self-hosted/deploy-with-helm.md b/content/en/cloud/self-hosted/deploy-with-helm.md index 227f120c..3ca8d80f 100644 --- a/content/en/cloud/self-hosted/deploy-with-helm.md +++ b/content/en/cloud/self-hosted/deploy-with-helm.md @@ -58,7 +58,8 @@ __NOTE: Configuring the extension in some other database will result in failure ##### 1. Install Postgres database ```bash -helm install -f ./install/postgresql/values.yaml postgres ./install/postgresql -n +helm repo add bitnami https://charts.bitnami.com/bitnami +helm install postgresql bitnami/postgresql --version 14.0.1 ``` ##### 2. Install Remote Provider Server and Identity Provider From 2d4ad26b0204d2e4560cbe23899cbda5e41fda64 Mon Sep 17 00:00:00 2001 From: MUzairS15 Date: Fri, 24 May 2024 23:54:20 +0530 Subject: [PATCH 3/5] update Signed-off-by: MUzairS15 --- content/en/cloud/self-hosted/deploy-with-helm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/cloud/self-hosted/deploy-with-helm.md b/content/en/cloud/self-hosted/deploy-with-helm.md index 3ca8d80f..2cf45611 100644 --- a/content/en/cloud/self-hosted/deploy-with-helm.md +++ b/content/en/cloud/self-hosted/deploy-with-helm.md @@ -51,7 +51,7 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/cont The first service to install is the Postgres database. The following command installs the Postgres database and initializes it's dataset. The dataset is used by the Layer5 Cloud server and the Layer5 Cloud identity provider. Layer5 Cloud `postgres` instance requires `pg_cron` extension to be enabled and configured in the `postgres` database to schedule PostgreSQL commands. -The cloud instance is bundled with required migrations to schedule the jobs with the required commands/sql queries. +The cloud instance is bundled with required migrations to schedule jobs and execute required commands/sql queries. __NOTE: Configuring the extension in some other database will result in failure to apply SQL migrations.__ From 1b34e02ad3fd45399702ae3dedc6c99ccabd9c3f Mon Sep 17 00:00:00 2001 From: MUzairS15 Date: Fri, 24 May 2024 23:55:03 +0530 Subject: [PATCH 4/5] add link for pgcron Signed-off-by: MUzairS15 --- content/en/cloud/self-hosted/deploy-with-helm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/cloud/self-hosted/deploy-with-helm.md b/content/en/cloud/self-hosted/deploy-with-helm.md index 2cf45611..d7ff4b4d 100644 --- a/content/en/cloud/self-hosted/deploy-with-helm.md +++ b/content/en/cloud/self-hosted/deploy-with-helm.md @@ -50,7 +50,7 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/cont The first service to install is the Postgres database. The following command installs the Postgres database and initializes it's dataset. The dataset is used by the Layer5 Cloud server and the Layer5 Cloud identity provider. -Layer5 Cloud `postgres` instance requires `pg_cron` extension to be enabled and configured in the `postgres` database to schedule PostgreSQL commands. +Layer5 Cloud `postgres` instance requires [pg_cron](https://github.com/citusdata/pg_cron) extension to be enabled and configured in the `postgres` database to schedule PostgreSQL commands. The cloud instance is bundled with required migrations to schedule jobs and execute required commands/sql queries. __NOTE: Configuring the extension in some other database will result in failure to apply SQL migrations.__ From 1b5e6b14df41a1163e9dd13c084baccebe552e1e Mon Sep 17 00:00:00 2001 From: Lee Calcote Date: Wed, 5 Jun 2024 13:40:13 -0500 Subject: [PATCH 5/5] enhanced description of db deployment Signed-off-by: Lee Calcote --- content/en/cloud/self-hosted/deploy-with-helm.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/content/en/cloud/self-hosted/deploy-with-helm.md b/content/en/cloud/self-hosted/deploy-with-helm.md index d7ff4b4d..3b97b1d7 100644 --- a/content/en/cloud/self-hosted/deploy-with-helm.md +++ b/content/en/cloud/self-hosted/deploy-with-helm.md @@ -50,10 +50,7 @@ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/cont The first service to install is the Postgres database. The following command installs the Postgres database and initializes it's dataset. The dataset is used by the Layer5 Cloud server and the Layer5 Cloud identity provider. -Layer5 Cloud `postgres` instance requires [pg_cron](https://github.com/citusdata/pg_cron) extension to be enabled and configured in the `postgres` database to schedule PostgreSQL commands. -The cloud instance is bundled with required migrations to schedule jobs and execute required commands/sql queries. - -__NOTE: Configuring the extension in some other database will result in failure to apply SQL migrations.__ +Layer5 Cloud `postgres` database requires [pg_cron](https://github.com/citusdata/pg_cron) extension to be enabled and configured to execute on a schedule. The Cloud instance is bundled with both Data Definition Language (DDL) to iniatilze the schema and with Data Manipulation Language (DML) that support both greenfield deployments and upgrades of existing deployments. ##### 1. Install Postgres database