This repository was archived by the owner on Jun 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Expand file tree
/
Copy pathmigrator.Job.yaml
More file actions
62 lines (62 loc) · 1.66 KB
/
migrator.Job.yaml
File metadata and controls
62 lines (62 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
apiVersion: batch/v1
kind: Job
metadata:
name: migrator
annotations:
description: Database migrator for Postgres databases
labels:
app.component.kubernetes/component: migrator
deploy: sourcegraph
spec:
template:
spec:
containers:
- name: migrator
image: "index.docker.io/sourcegraph/migrator:6.2.2553@sha256:af37d581b59d915f95ccd0a1579fb0acaba23364466fbabf4751adc54ae72a8f"
args: ["up"]
env:
- name: PGHOST
value: "pgsql"
- name: PGPORT
value: "5432"
- name: PGUSER
value: "sg"
- name: PGPASSWORD
value: "sg"
- name: PGDATABASE
value: "sg"
- name: PGSSLMODE
value: "disable"
- name: CODEINTEL_PGHOST
value: "codeintel-db"
- name: CODEINTEL_PGPORT
value: "5432"
- name: CODEINTEL_PGUSER
value: "sg"
- name: CODEINTEL_PGPASSWORD
value: "sg"
- name: CODEINTEL_PGDATABASE
value: "sg"
- name: CODEINTEL_PGSSLMODE
value: "disable"
- name: CODEINSIGHTS_PGHOST
value: "codeinsights-db"
- name: CODEINSIGHTS_PGPORT
value: "5432"
- name: CODEINSIGHTS_PGUSER
value: "postgres"
- name: CODEINSIGHTS_PGPASSWORD
value: "password"
- name: CODEINSIGHTS_PGDATABASE
value: "postgres"
- name: CODEINSIGHTS_PGSSLMODE
value: "disable"
resources:
limits:
cpu: 500m
memory: 100M
requests:
cpu: 100m
memory: 50M
restartPolicy: OnFailure
backoffLimit: 4