forked from tryretool/retool-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdr.yaml
More file actions
151 lines (146 loc) · 3.94 KB
/
dr.yaml
File metadata and controls
151 lines (146 loc) · 3.94 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
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
NAME: s
LAST DEPLOYED: Thu Jan 18 14:46:49 2024
NAMESPACE: default
STATUS: pending-install
REVISION: 1
TEST SUITE: None
HOOKS:
MANIFEST:
---
# Source: retool/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: s-retool
---
# 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: my-salsa
key: license-key
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: my-salsa
key: jwt-secret
- name: ENCRYPTION_KEY
valueFrom:
secretKeyRef:
name: my-salsa
key: encryption-key
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: my-salsa
key: pg-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:
NOTES:
1. Get the application URL by running these commands:
export NODE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services s-retool)
export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT