Skip to content

Commit

Permalink
Laburo lunes
Browse files Browse the repository at this point in the history
  • Loading branch information
facundobatista committed Jun 12, 2023
1 parent 3e00e8a commit 3d1a11d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ helm upgrade --install --wait -f values/production/postgres_cluster.yaml pgclust

This cluster is using a PersistentVolumeClaim and a "lock" is created manually in azure to prevent unintencional deletes. Detail about locks: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-lock-resources

To set the backup:

```bash
kubectl apply -f k8s/pgsql_bkps_jobs/pg-storage-class.yaml
kubectl apply -f k8s/pgsql_bkps_jobs/pg-persistent-volume-claim.yaml
kubectl apply -f k8s/pgsql_bkps_jobs/pg-backup-cronJob.yaml
```



### Connect to the cluster

Expand Down Expand Up @@ -136,6 +145,7 @@ helm upgrade --install --wait --timeout 120s --values values/production/asoc_mem
helm upgrade --install --wait --timeout 120s --values values/production/join_captcha_bot.yaml captcha-bot-production stable/join_captcha_bot
```

Once up, talk through Telegram with the bot itself and issue: `/allowgroup add CHAT_ID` (the CHAT_ID can be seen in the logs doing something similar to `kubectl logs captcha-bot-production-5d99c5595d-8wcbb`).


## Events site (EventoL)
Expand Down
8 changes: 4 additions & 4 deletions k8s/pgsql_bkps_jobs/pg-backup-cronJob.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: batch-every-twelve-hours
name: postgresql-backup-cron
spec:
schedule: "0 */12 * * *"
jobTemplate:
Expand All @@ -24,7 +24,7 @@ spec:
valueFrom:
secretKeyRef:
name: pgcluster-postgresql
key: postgresql-password
key: postgres-password
volumeMounts:
- mountPath: "/pg_backup"
name: backup-volume
Expand All @@ -41,7 +41,7 @@ spec:
valueFrom:
secretKeyRef:
name: pgcluster-postgresql
key: postgresql-password
key: postgres-password
volumeMounts:
- mountPath: "/pg_backup"
name: backup-volume
Expand All @@ -58,7 +58,7 @@ spec:
valueFrom:
secretKeyRef:
name: pgcluster-postgresql
key: postgresql-password
key: postgres-password
volumeMounts:
- mountPath: "/pg_backup"
name: backup-volume
Expand Down
Binary file modified stable/eventol/charts/redis-3.6.0.tgz
Binary file not shown.

0 comments on commit 3d1a11d

Please sign in to comment.