This repository has been archived by the owner on Feb 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pm415.yaml
81 lines (81 loc) · 2 KB
/
pm415.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
apiVersion: apps/v1
kind: Deployment
metadata:
name: pm415
labels:
app: pm415
spec:
replicas: 1
selector:
matchLabels:
app: pm415
template:
metadata:
labels:
app: pm415
spec:
initContainers:
- name: createdb
image: mreider/pm415:1.1
command:
- mysql
- -u
- root
- -p$(DATABASE_PASSWORD)
- --host
- $(DATABASE_HOST)
- --execute
- CREATE DATABASE IF NOT EXISTS zagnut;
env: &env-vars
- name: NODE_ENV
value: production
- name: KEEP_PROCESS_AWAKE
value: "1"
- name: DATABASE_HOST
value: mysql
- name: DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: mysql
key: password
- name: ELASTIC_SEARCH_HOST
value: elasticsearch
- name: SENDGRID_USERNAME
value: [email protected]
- name: SENDGRID_PASSWORD
valueFrom:
secretKeyRef:
name: sendgrid
key: password
- name: SITEURL_DEV
value: http://localhost
- name: DOMAIN_URL
value: 6sprints.com
- name: PORT
value: "80"
- name: APPKEY
valueFrom:
secretKeyRef:
name: appkey
key: password
- name: run-migrations
image: mreider/pm415:1.1
command:
- /bin/sh
- -c
- knex migrate:latest ; knex seed:run ; exit 0
env: *env-vars
containers:
- image: mreider/pm415:1.1
name: pm415
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "500m"
env: *env-vars
ports:
- containerPort: 80
name: pm415