-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit bf07f1c Author: Jean Demeusy <[email protected]> Date: Tue May 21 11:51:38 2024 +0200 Fix catch provider error gql (#519) commit 71f6003 Author: Jean Demeusy <[email protected]> Date: Mon May 20 23:01:23 2024 +0200 chore: Handle additional error cases in GraphQLProvider (#518) commit 65da931 Author: ausias-armesto <[email protected]> Date: Thu May 16 15:02:20 2024 +0200 Add documentation on how to connect to database (#517) * Add documentation on how to connect to database * Update helm/README.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> commit e1b4c0c Author: ausias-armesto <[email protected]> Date: Tue May 14 21:54:20 2024 +0200 Create automatic database backups (#516) * Create automatic database backups * remove character * rename backup commit 61357f9 Author: ausias-armesto <[email protected]> Date: Mon May 13 18:06:06 2024 +0200 Upgrade to version "saint-louis" (#515) commit 930e8a5 Author: ausias-armesto <[email protected]> Date: Wed May 8 14:39:04 2024 +0200 Upgrade clusterhoprd helm chart (#514) * Upgrade to make it work for new version of hoprd-operator * Upgrade version commit f61036e Author: ausias-armesto <[email protected]> Date: Wed May 8 14:32:16 2024 +0200 Upgrade to make it work for new version of hoprd-operator (#513) commit c28dc2a Author: ausias-armesto <[email protected]> Date: Fri May 3 16:15:48 2024 +0200 Fix typo in namespace (#511) commit 59c6905 Author: ausias-armesto <[email protected]> Date: Fri May 3 16:10:30 2024 +0200 Move the repository into the correct child (#510) * Move the repository into the correct child * Fixing secret rabbitMQ commit 91307e1 Author: Jean Demeusy <[email protected]> Date: Fri May 3 15:35:24 2024 +0200 Update Docker image repository URLs in values.yaml (#509) commit 711b2a9 Author: ausias-armesto <[email protected]> Date: Fri May 3 14:55:35 2024 +0200 Fixing pipeline tagging (#508) commit b2d4773 Author: ausias-armesto <[email protected]> Date: Fri May 3 14:30:15 2024 +0200 Using latest commit 5f745a3 Author: Jean Demeusy <[email protected]> Date: Fri May 3 13:53:36 2024 +0200 Clean up deployment's helm files (#505) * Scale deployment * fix * Adding envVars * quote * scale down * changing properties * updated prod env variables * deploy core and postman * change bucket name * Upgrading * fix url * add url x * adding secret x * new metrics * changing * update safe secrets * increase concurrency to 5 * pointing to instance 0 of the RabbitMQ * fix pod name * change to static IP * updated to correct url * revert * Distributing auto-funding across different time-zones * Update configuration values for ctdapp in staging environment and default values * Update configuration values for ctdapp in staging environment and default values * Secrets updated --------- Co-authored-by: ausias-armesto <[email protected]> commit fdd223c Author: Jean Demeusy <[email protected]> Date: Fri May 3 13:49:24 2024 +0200 Update Docker image repository URLs (#506) * Update Docker image repository URLs in values.yaml * Update workflows * Updating tag --------- Co-authored-by: ausias-armesto <[email protected]>
- Loading branch information
1 parent
3ee9710
commit e26ff33
Showing
19 changed files
with
233 additions
and
104 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
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,14 @@ | ||
# ctdApp Deployment docs | ||
|
||
## Connect to Database | ||
|
||
```bash | ||
gcloud compute instances start --project=hopr-prod --zone=europe-west3-a bastion | ||
gcloud compute ssh bastion --zone=europe-west3-a --project=hopr-prod -- -L 5432:localhost:5432 | ||
export PGHOST=localhost | ||
export PGPORT=5432 | ||
export PGDATABASE=ctdapp | ||
export PGUSER=ctdapp | ||
export PGPASSWORD=`Get from Bitwarden secret "ctdApp - Postgres Production"` | ||
psql | ||
``` |
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,55 @@ | ||
--- | ||
{{- if .Values.backup.enabled }} | ||
apiVersion: batch/v1 | ||
kind: CronJob | ||
metadata: | ||
name: ctdapp-backup | ||
spec: | ||
concurrencyPolicy: Forbid | ||
successfulJobsHistoryLimit: 1 | ||
failedJobsHistoryLimit: 2 | ||
schedule: "{{ .Values.backup.schedule }}" | ||
jobTemplate: | ||
spec: | ||
backoffLimit: 0 | ||
ttlSecondsAfterFinished: 3600 | ||
template: | ||
spec: | ||
initContainers: | ||
- name: dump | ||
image: postgres:15-bookworm | ||
command: | ||
- /bin/bash | ||
- -c | ||
- | | ||
set -e | ||
TIMESTAMP=$(date +%Y%m%d%H%M%S) | ||
echo Starting full backup of database ${PGDATABASE} at $(date) | ||
pg_dump --no-privileges --no-owner --format=custom --compress=9 --file=/backup/ctdapp-${TIMESTAMP}.dump | ||
echo Backup finished at $(date) | ||
envFrom: | ||
- secretRef: | ||
name: postgres | ||
volumeMounts: | ||
- name: backup | ||
mountPath: /backup | ||
containers: | ||
- name: backup | ||
image: gcr.io/google.com/cloudsdktool/google-cloud-cli:475.0.0 | ||
command: | ||
- /bin/bash | ||
- -c | ||
- | | ||
echo Copying the backup to the bucket | ||
gsutil cp /backup/*.dump gs://hoprnet-backup-{{ .Values.environmentName }}/postgres/ctdapp/ | ||
echo Keep only the 7 most recent backups | ||
gsutil ls gs://hoprnet-backup-{{ .Values.environmentName }}/postgres/ctdapp | sort -r | tail -n +8 | xargs -I {} gsutil rm {} | ||
volumeMounts: | ||
- name: backup | ||
mountPath: /backup | ||
volumes: | ||
- name: backup | ||
emptyDir: {} | ||
restartPolicy: OnFailure | ||
serviceAccount: sa-backup | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
{{- if .Values.backup.enabled }} | ||
apiVersion: v1 | ||
automountServiceAccountToken: true | ||
kind: ServiceAccount | ||
metadata: | ||
name: sa-backup | ||
annotations: | ||
iam.gke.io/gcp-service-account: "backup@hopr-{{ .Values.environmentName }}.iam.gserviceaccount.com" | ||
{{- 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
Oops, something went wrong.