Remove database migration jobs
This commit is contained in:
parent
d25605178d
commit
f764192256
2 changed files with 0 additions and 70 deletions
|
|
@ -1,32 +0,0 @@
|
||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
name: nxtgauge-db-migrate
|
|
||||||
labels:
|
|
||||||
app: nxtgauge-db-migrate
|
|
||||||
spec:
|
|
||||||
ttlSecondsAfterFinished: 300
|
|
||||||
backoffLimit: 3
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: nxtgauge-db-migrate
|
|
||||||
spec:
|
|
||||||
restartPolicy: OnFailure
|
|
||||||
containers:
|
|
||||||
- name: migrate
|
|
||||||
image: registry.nxtgauge.com/nxtgauge-db-migrate:high-performance-latest
|
|
||||||
imagePullPolicy: Always
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: nxtgauge-backend-rust-secrets
|
|
||||||
env:
|
|
||||||
- name: MIGRATIONS_DIR
|
|
||||||
value: "/migrations"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "64Mi"
|
|
||||||
cpu: "50m"
|
|
||||||
limits:
|
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "500m"
|
|
||||||
|
|
@ -1,38 +0,0 @@
|
||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
name: nxtgauge-db-migrate
|
|
||||||
namespace: nxtgauge
|
|
||||||
labels:
|
|
||||||
app: nxtgauge-db-migrate
|
|
||||||
tier: database
|
|
||||||
annotations:
|
|
||||||
description: "Runs database migrations for nxtgauge backend"
|
|
||||||
spec:
|
|
||||||
ttlSecondsAfterFinished: 300
|
|
||||||
backoffLimit: 3
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: nxtgauge-db-migrate
|
|
||||||
spec:
|
|
||||||
restartPolicy: OnFailure
|
|
||||||
containers:
|
|
||||||
- name: migrate
|
|
||||||
image: registry.nxtgauge.com/nxtgauge-db-migrate:latest
|
|
||||||
imagePullPolicy: Always
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: nxtgauge-backend-rust-secrets
|
|
||||||
env:
|
|
||||||
- name: MIGRATIONS_DIR
|
|
||||||
value: "/migrations"
|
|
||||||
- name: DROP_EXISTING_TABLES
|
|
||||||
value: "true"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "64Mi"
|
|
||||||
cpu: "50m"
|
|
||||||
limits:
|
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "500m"
|
|
||||||
Loading…
Add table
Reference in a new issue