Merge branch 'main' of gitlab.com:domaindrivenarchitecture/c4k-gitea
This commit is contained in:
commit
d773fbfeaf
2 changed files with 24 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
1. apply backup-and-restore pod:
|
1. apply backup-and-restore pod:
|
||||||
`kubectl scale deployment backup-restore --replicas=1`
|
`kubectl scale deployment backup-restore --replicas=1`
|
||||||
2. exec into pod and execute restore pod (press tab to get your exact pod name)
|
2. exec into pod and execute backup pod (press tab to get your exact pod name)
|
||||||
`kubectl exec -it backup-restore-... -- /usr/local/bin/backup.sh`
|
`kubectl exec -it backup-restore-... -- /usr/local/bin/backup.sh`
|
||||||
3. remove backup-and-restore pod:
|
3. remove backup-and-restore pod:
|
||||||
`kubectl scale deployment backup-restore --replicas=0`
|
`kubectl scale deployment backup-restore --replicas=0`
|
||||||
|
|
|
@ -18,6 +18,27 @@ spec:
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
command: ["/entrypoint.sh"]
|
command: ["/entrypoint.sh"]
|
||||||
env:
|
env:
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: postgres-secret
|
||||||
|
key: postgres-user
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: postgres-secret
|
||||||
|
key: postgres-password
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: postgres-config
|
||||||
|
key: postgres-db
|
||||||
|
- name: POSTGRES_HOST
|
||||||
|
value: "postgresql-service:5432"
|
||||||
|
- name: POSTGRES_SERVICE
|
||||||
|
value: "postgresql-service"
|
||||||
|
- name: POSTGRES_PORT
|
||||||
|
value: "5432"
|
||||||
- name: AWS_DEFAULT_REGION
|
- name: AWS_DEFAULT_REGION
|
||||||
value: eu-central-1
|
value: eu-central-1
|
||||||
- name: AWS_ACCESS_KEY_ID_FILE
|
- name: AWS_ACCESS_KEY_ID_FILE
|
||||||
|
@ -31,6 +52,8 @@ spec:
|
||||||
key: restic-repository
|
key: restic-repository
|
||||||
- name: RESTIC_PASSWORD_FILE
|
- name: RESTIC_PASSWORD_FILE
|
||||||
value: /var/run/secrets/backup-secrets/restic-password
|
value: /var/run/secrets/backup-secrets/restic-password
|
||||||
|
- name: CERTIFICATE_FILE
|
||||||
|
value: ""
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: gitea-data-volume
|
- name: gitea-data-volume
|
||||||
mountPath: /var/backups
|
mountPath: /var/backups
|
||||||
|
|
Loading…
Reference in a new issue