This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
119 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{ define "cvat-helm.postgres-env" }} | ||
{{ if .Values.database.create }} | ||
- name: CVAT_POSTGRES_HOST | ||
value: 'cvat-db' | ||
{{ end }} | ||
{{ if .Values.database.zalando.enable }} | ||
- name: CVAT_POSTGRES_HOST | ||
value: {{ .Values.database.zalando.databaseCluster }} | ||
- name: CVAT_POSTGRES_DBNAME | ||
value: {{ .Values.database.zalando.databaseName }} | ||
- name: CVAT_POSTGRES_USER | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.database.zalando.databaseUser }}.{{ .Values.database.zalando.databaseCluster }}.credentials.postgresql.acid.zalan.do | ||
key: username | ||
- name: CVAT_POSTGRES_PASSWORD | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ .Values.database.zalando.databaseUser }}.{{ .Values.database.zalando.databaseCluster }}.credentials.postgresql.acid.zalan.do | ||
key: password | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Integrating with zalando postgres operator | ||
|
||
First install zalando's postgres operator. | ||
Then, create a database cluster with a database for cvat (maybe others) and a user for cvat (maybe others). | ||
Example configuration: | ||
|
||
```yaml | ||
apiVersion: "acid.zalan.do/v1" | ||
kind: postgresql | ||
metadata: | ||
name: cvat-db | ||
spec: | ||
teamId: "cvat" | ||
volume: | ||
size: 10Gi | ||
numberOfInstances: 2 | ||
users: | ||
cvatuser: | ||
- superuser | ||
- createdb | ||
databases: | ||
cvat: cvatuser | ||
postgresql: | ||
version: "14" | ||
parameters: | ||
shared_buffers: "32MB" | ||
max_connections: "40" | ||
``` | ||
Then, install this helm chart with the following values: | ||
```yaml | ||
database: | ||
create: false | ||
zalando: | ||
enable: true | ||
databaseUser: cvatuser | ||
databaseName: cvat | ||
databaseCluster: cvat-db | ||
``` | ||
The password will be extracted from the secret created by zalando PGO. |