Skip to content

Commit

Permalink
fix(docs): correct the k8s docs for custom database and storage (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrutimantri committed Mar 15, 2024
1 parent 00df9da commit da7ff1f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 8 deletions.
18 changes: 15 additions & 3 deletions content/docs/02.installation/04.kubernetes-aws-eks.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ configuration:
kestra:
queue:
type: postgres
repository:
type: postgres
repository:
type: postgres
datasources:
postgres:
url: jdbc:postgresql://<your-rds-url-endpoint>:5432/kestra
Expand All @@ -58,6 +58,12 @@ configuration:
password: your_password
```
Also, disable the postgres pod by changing `enabled` value in the postgres section from `true` to `false` in the same file.
```yaml
postgres:
enabled: false
```

And here is how you can add S3 configuration in the [Helm chart's values](https://github.com/kestra-io/helm-charts/blob/master/charts/kestra/values.yaml#L11):

```yaml
Expand All @@ -72,7 +78,13 @@ configuration:
bucket: "<your-s3-bucket-name>"
```

Paste the values above into `values.yml` and apply these configurations using the following command:
Also, disable the minio pod by changing `enabled` value in the minio section from `true` to `false` in the same file.
```yaml
minio:
enabled: false
```

Apply these configurations using the following command:

```bash
helm upgrade kestra kestra/kestra -f values.yaml
Expand Down
18 changes: 15 additions & 3 deletions content/docs/02.installation/05.kubernetes-gcp-gke.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ configuration:
kestra:
queue:
type: postgres
repository:
type: postgres
repository:
type: postgres
datasources:
postgres:
url: jdbc:postgresql://<your-db-external-endpoint>:5432/<db_name>
Expand All @@ -124,6 +124,12 @@ configuration:
password: <your-password>
```
Also, disable the postgres pod by changing `enabled` value in the postgres section from `true` to `false` in the same file.
```yaml
postgres:
enabled: false
```

In order for the changes to take effect, run the `helm upgrade` command as:

```shell
Expand All @@ -144,7 +150,7 @@ By default, internal storage is implemented using the local file system. This se
6. On the newly created service account page, go to the `Keys` tab at the top of the page and click on `Add Key.` From the dropdown, select `Create New Key`.
7. Select the Key type as `JSON` and click on `Create`. The JSON key file for the service account will get downloaded.
8. We will be using the stringified JSON for our configuration. You can use the bash command `% cat <path_to_json_file> | jq '@json'` to generate stringified JSON.
9. Edit Kestra storage configuration.
9. Edit Kestra storage configuration in the [Helm chart's values](https://github.com/kestra-io/helm-charts/blob/master/charts/kestra/values.yaml#L11).

```yaml
configuration:
Expand All @@ -157,6 +163,12 @@ configuration:
serviceAccount: "<stringified-json-file-contents>"
```

Also, disable the minio pod by changing `enabled` value in the minio section from `true` to `false` in the same file.
```yaml
minio:
enabled: false
```

In order for the changes to take effect, run the `helm upgrade` command as:

```shell
Expand Down
16 changes: 14 additions & 2 deletions content/docs/02.installation/06.kubernetes-azure-aks.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ configuration:
kestra:
queue:
type: postgres
repository:
type: postgres
repository:
type: postgres
datasources:
postgres:
url: jdbc:postgresql://<your-db-external-endpoint>:5432/<db_name>
Expand All @@ -100,6 +100,12 @@ configuration:
password: <your-password>
```
Also, disable the postgres pod by changing `enabled` value in the postgres section from `true` to `false` in the same file.
```yaml
postgres:
enabled: false
```

In order for the changes to take effect, run the `helm upgrade` command as:

```shell
Expand Down Expand Up @@ -136,6 +142,12 @@ configuration:
connectionString: "<your-connection-string>"
```

Also, disable the postgres pod by changing `enabled` value in the minio section from `true` to `false` in the same file.
```yaml
minio:
enabled: false
```

In order for the changes to take effect, run the `helm upgrade` command as:

```shell
Expand Down

0 comments on commit da7ff1f

Please sign in to comment.