forked from tryretool/retool-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debug.yaml
162 lines (149 loc) · 3.93 KB
/
debug.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
---
# Source: retool/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: s-retool
---
# Source: retool/templates/secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: s-retool
labels:
helm.sh/chart: retool-6.0.13
app.kubernetes.io/name: retool
app.kubernetes.io/instance: s
app.kubernetes.io/managed-by: Helm
annotations:
"helm.sh/resource-policy": no-upgrade-existing
type: Opaque
data:
license-key: "RVhQSVJFRC1MSUNFTlNFLUtFWS1UUklBTA=="
google-client-secret: ""
postgresql-password: ""
---
# Source: retool/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
labels:
helm.sh/chart: retool-6.0.13
app.kubernetes.io/name: retool
app.kubernetes.io/instance: s
app.kubernetes.io/managed-by: Helm
name: s-retool
spec:
type: NodePort
ports:
- port: 3000
targetPort: 3000
protocol: TCP
selector:
app.kubernetes.io/name: retool
app.kubernetes.io/instance: s
---
# Source: retool/templates/deployment_backend.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: s-retool
labels:
helm.sh/chart: retool-6.0.13
app.kubernetes.io/name: retool
app.kubernetes.io/instance: s
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: retool
app.kubernetes.io/instance: s
revisionHistoryLimit: 3
template:
metadata:
annotations:
labels:
app.kubernetes.io/name: retool
app.kubernetes.io/instance: s
spec:
serviceAccountName: s-retool
containers:
- name: retool
image: "tryretool/backend:3.16.14"
imagePullPolicy: IfNotPresent
args:
- bash
- -c
- chmod -R +x ./docker_scripts; sync; ./docker_scripts/wait-for-it.sh -t 5 "host.docker.internal":"5432"; ./docker_scripts/start_api.sh
env:
- name: NODE_ENV
value: production
- name: SERVICE_TYPE
value: MAIN_BACKEND,DB_CONNECTOR,DB_SSH_CONNECTOR,JOBS_RUNNER
- name: CLIENT_ID
value:
- name: COOKIE_INSECURE
value: "true"
- name: POSTGRES_HOST
value: "host.docker.internal"
- name: POSTGRES_PORT
value: "5432"
- name: POSTGRES_DB
value: "example_db"
- name: POSTGRES_USER
value: "example_user"
- name: POSTGRES_SSL_ENABLED
value: "false"
- name: LICENSE_KEY
valueFrom:
secretKeyRef:
name: s-retool
key: license-key
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: s-retool
key: jwt-secret
- name: ENCRYPTION_KEY
valueFrom:
secretKeyRef:
name: s-retool
key: encryption-key
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: shawntool-retool
key: postgresql-password
- name: CLIENT_SECRET
valueFrom:
secretKeyRef:
name: s-retool
key: google-client-secret
ports:
- containerPort: 3000
name: retool
protocol: TCP
resources:
limits:
cpu: 2000m
memory: 4000Mi
requests:
cpu: 1024m
memory: 2048Mi
volumeMounts:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- retool
topologyKey: kubernetes.io/hostname
weight: 100
tolerations:
[]
volumes: