CodeScoring.Save PostgreSQL Installation
The installation guides have been consolidated on the Installing CodeScoring.Save in Kubernetes page.
PostgreSQL installation is intended for production use, larger teams, availability requirements, scaling, and performance requirements.
Preparing Infrastructure
PostgreSQL
By default, PostgreSQL is deployed as a Helm chart dependency. To use it, enable postgres.enabled=true in values.yaml and set connection parameters:
When built-in PostgreSQL is used, backend and auth must connect to host postgres.
For external PostgreSQL, disable the built-in dependency:
Then set the external PostgreSQL host in envs.DATABASE_HOST.
Prepare the database and user in external PostgreSQL:
Object Storage
By default, MinIO is deployed as a Helm chart dependency. To use it, enable minio.enabled=true in values.yaml. The service will be available as save-minio.
For a stateful installation, enable persistence for PostgreSQL and MinIO:
The common pvcs block must not be used for PostgreSQL and MinIO in the provided chart. If postgres.persistence.enabled or minio.persistence.enabled is disabled, the corresponding service data is not preserved after Pod recreation.
For built-in MinIO, use endpoint http://save-minio:9000 in envs. The minio.provisioning section creates the bucket during chart installation, so S3_BUCKET must match one of the values from minio.provisioning.buckets.
For external S3-compatible storage, disable built-in MinIO:
Then set S3_ENDPOINT, S3_BUCKET, S3_ACCESS_KEY, and S3_SECRET_KEY in envs.
CodeScoring.Save Configuration
Use the base values.yaml from the chart and change the required parameters.
For built-in PostgreSQL and MinIO, use these values:
The AUTH_INTERNAL_SECRET value is used for internal interaction between Save services. The minio.provisioning section creates the bucket for built-in MinIO, and S3_BUCKET must match one of the values from minio.provisioning.buckets.
The values of DATABASE_PASSWORD, S3_ACCESS_KEY, and S3_SECRET_KEY, as well as the postgres.auth.password and minio.auth parameters, must match the corresponding values specified in the Helm chart.
Additional Argo CD Configuration
When deploying via Argo CD, add the following parameters to the configuration file:
Installation
Installation Check
Next Steps
After installation:
