forked from DhanushNehru/ToolJet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
100 lines (100 loc) · 2.92 KB
/
Copy pathdeployment.yaml
File metadata and controls
100 lines (100 loc) · 2.92 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
apiVersion: apps/v1
kind: Deployment
metadata:
name: tooljet-deployment
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
selector:
matchLabels:
component: tooljet
template:
metadata:
labels:
component: tooljet
spec:
imagePullSecrets:
- name: docker-secret
containers:
- name: container
image: tooljet/tooljet-ce:latest
imagePullPolicy: Always
args: ["npm", "run", "start:prod"]
resources:
limits:
memory: "2000Mi"
cpu: "2000m"
requests:
memory: "1000Mi"
cpu: "1000m"
ports:
- containerPort: 3000
readinessProbe:
httpGet:
port: 3000
path: /api/health
successThreshold: 1
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 6
env:
- name: PG_HOST
valueFrom:
secretKeyRef:
name: server
key: pg_host
- name: PG_USER
valueFrom:
secretKeyRef:
name: server
key: pg_user
- name: PG_PASS
valueFrom:
secretKeyRef:
name: server
key: pg_password
- name: PG_DB
valueFrom:
secretKeyRef:
name: server
key: pg_db
- name: LOCKBOX_MASTER_KEY
valueFrom:
secretKeyRef:
name: server
key: lockbox_key
- name: SECRET_KEY_BASE
valueFrom:
secretKeyRef:
name: server
key: secret_key_base
- name: TOOLJET_HOST
valueFrom:
secretKeyRef:
name: server
key: tj_host
- name: DEPLOYMENT_PLATFORM
value: "openshift"
# Need to define missed HOME directory on openshift platform
# for npm commands to work with aribitrary user
- name: HOME
value: "/home/appuser"
# Set the env values below for Tooljet Database
# - name: ENABLE_TOOLJET_DB
# value: "true"
# - name: TOOLJET_DB
# value: "tooljet_db"
# - name: TOOLJET_DB_USER
# value: "replace_with_tooljet_db_user"
# - name: TOOLJET_DB_HOST
# value: "replace_with_tooljet_db_host"
# - name: TOOLJET_DB_PASS
# value: "replace_with_tooljet_db_pass"
# - name: PGRST_HOST
# value: "replace_with_postgrest_host"
# - name: PGRST_JWT_SECRET
# value: "replace_jwt_secret_here"