-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathvalues.yaml
More file actions
1655 lines (1477 loc) · 61.5 KB
/
Copy pathvalues.yaml
File metadata and controls
1655 lines (1477 loc) · 61.5 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# nameOverride:
# fullnameOverride:
config:
licenseKey: "EXPIRED-LICENSE-KEY-TRIAL"
# licenseKeySecretName is the name of the secret where the Retool license key is stored (can be used instead of licenseKey)
# licenseKeySecretName:
# licenseKeySecretKey is the key in the k8s secret, default: license-key
# licenseKeySecretKey:
useInsecureCookies: false
# Timeout for queries, in ms.
# dbConnectorTimeout: 120000
# max postgres pool connections for backend
postgresPoolMaxSize: 10
auth:
google:
# whether to populate CLIENT_ID and CLIENT_SECRET env vars (default: true for backwards compatibility)
enabled: true
clientId:
clientSecret:
# clientSecretSecretName is the name of the secret where the google client secret is stored (can be used instead of clientSecret)
# clientSecretSecretName:
# clientSecretSecretKey is the key in the k8s secret, default: google-client-secret
# clientSecretSecretKey:
encryptionKey:
# encryptionKeySecretName is the name of the secret where the encryption key is stored (can be used instead of encryptionKey)
# encryptionKeySecretName:
# encryptionKeySecretKey is the key in the k8s secret, default: encryption-key
# encryptionKeySecretKey:
jwtSecret:
# jwtSecretSecretName is the name of the secret where the jwt secret is stored (can be used instead of jwtSecret)
# jwtSecretSecretName:
# jwtSecretSecretKey is the key in the k8s secret, default: jwt-secret
# jwtSecretSecretKey:
# IMPORTANT: Incompatible with postgresql subchart
# Please disable the subchart in order to use a managed or external postgres instance.
postgresql:
{}
# Specify if postgresql subchart is disabled
# host:
# port:
# db:
# user:
# password:
# ssl_enabled: whether to enable SSL for connecting to the Retool Postgres database, equivalent to the POSTGRES_SSL_ENABLED environment variable. Place here instead of in the env block.
# passwordSecretName is the name of the secret where the pg password is stored (can be used instead of password)
# passwordSecretName:
# passwordSecretKey is the key in the k8s secret, default: postgresql-password
# passwordSecretKey:
image:
repository: "tryretool/backend"
# You need to pick a specific tag here, this chart will not make a decision for you
tag: ""
pullPolicy: "IfNotPresent"
commandline:
args: []
env: {}
# Optionally specify additional environment variables to be populated from Kubernetes secrets.
# Useful for passing in SCIM_AUTH_TOKEN or other secret environment variables from Kubernetes secrets.
environmentSecrets:
[]
# - name: SCIM_AUTH_TOKEN
# secretKeyRef:
# name: retool-scim-auth-token
# key: auth-token
# - name: GITHUB_APP_PRIVATE_KEY
# secretKeyRef:
# name: retool-github-app-private-key
# key: private-key
# Optionally specify environmental variables. Useful for variables that are not key-value, as env: {} above requires.
# Can also include environment secrets here instead of in environmentSecrets
environmentVariables:
[]
# - name: SCIM_AUTH_TOKEN
# valueFrom:
# secretKeyRef:
# name: retool-scim-auth-token
# key: auth-token
# - name: GITHUB_APP_PRIVATE_KEY
# valueFrom:
# secretKeyRef:
# name: retool-github-app-private-key
# key: private-key
# - name: POD_HOST_IP
# valueFrom:
# fieldRef:
# fieldPath: status.hostIP
# Enables support for the legacy external secrets (enabled) and the modern External Secrets Operator (externalSecretsOperator.enabled).
# These are mutually exclusive as both enable reading in environments variables via External Secrets.
externalSecrets:
# Support for legacy external secrets, note this is deprecated in favour of External Secrets Operator: https://github.com/godaddy/kubernetes-external-secrets
# This mode only allows a single secret name to be provided.
enabled: false
# If external secrets are currently enabled, it is disallowed to specify regular configuration secrets as a safeguard from clobbering.
# This flag allows bypassing that check and specifying both an ExternalSecret and a regular secret for different secrets.
includeConfigSecrets: false
name: retool-config
# Array of secrets to be use as env variables. (Optional)
secrets:
[]
# - name: retool-config
# - name: retool-db
# Support for External Secrets Operator: https://github.com/external-secrets/external-secrets
externalSecretsOperator:
enabled: false
# RefreshInterval is the amount of time before the values reading again from the SecretStore provider
# Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h" (from time.ParseDuration)
# May be set to zero to fetch and create it once
refreshInterval: "1m"
# SecretStoreRef defines the default SecretStore to use when fetching the secret data.
secretStoreRef:
name: aws-secretsmanager
kind: SecretStore # or ClusterSecretStore
# Array of options to use for the ExternalSecret objects and their
# corresponding secretRef in pod envFrom.
#
# Example with only required fields:
#
# secretRef:
# - name: retool-config
# path: global-retool-config
#
# Example with all optional fields:
#
# secretRef
# - name: extra-secrets
# path: global-extra-secrets
# creationPolicy: Owner
# deletionPolicy: Retain
# optional: true
#
secretRef: []
# When true, uses kubernetes-client CRDs and not external-secrets CRDs
# Defaults to true
useLegacyCR: true
# Legacy External Secrets Backend Types: https://github.com/external-secrets/kubernetes-external-secrets
# Default set to AWS Secrets Manager.
backendType: secretsManager
files: {}
deployment:
labels: {}
annotations: {}
service:
type: ClusterIP
externalPort: 3000
internalPort: 3000
# externalIPs:
# - 192.168.0.1
#
## LoadBalancer IP if service.type is LoadBalancer
# loadBalancerIP: 10.2.2.2
annotations: {}
labels: {}
## Limit load balancer source ips to list of CIDRs (where available)
# loadBalancerSourceRanges: []
selector: {}
# portName: service-port
ingress:
enabled: true
# For k8s 1.18+
# ingressClassName:
labels: {}
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
# - host: retool.example.com
# paths:
# - path: /
tls:
# - secretName: retool.example.com
# hosts:
# - retool.example.com
# servicePort: service-port
pathType: ImplementationSpecific
# For supporting other ingress controllers that require customizing the .backend.service.name and .backend.service.port.name,
# like AWS ALB extraPaths allows that customization, and it takes precedence in the list of paths of for the host,
# this is in order to allow a rule like ssl-redirect from port 80-->443 to be first ( otherwise there wouldn't be a redirect )
# extraPaths:
# - path: /*
# backend:
# service:
# name: ssl-redirect
# port:
# name: use-annotation
# pathType: ImplementationSpecific
# Gateway API HTTPRoute resource (alternative to ingress)
# Requires a Gateway API implementation (e.g., GKE Gateway Controller, Istio, Envoy Gateway, NGINX Gateway Fabric)
httpRoute:
enabled: false
labels: {}
annotations: {}
# parentRefs defines which Gateway(s) this route attaches to
# parentRefs:
# - name: my-gateway
# namespace: default
# sectionName: https
# hostnames:
# - retool.example.com
# rules allows full customization of HTTPRoute rules; when omitted, a default
# catch-all rule routes all traffic to the retool backend service
# rules:
# - matches:
# - path:
# type: PathPrefix
# value: /
# backendRefs:
# - name: my-service
# port: 3000
postgresql:
# We highly recommend you do NOT use this subchart as is to run Postgres in a container
# for your production instance of Retool; it is a default. Please use a managed Postgres,
# or self-host more permanently. Use enabled: false and set in config above to do so.
enabled: true
ssl_enabled: false
auth:
database: hammerhead_production
username: postgres
password: retool
# IMPORTANT: When setting username to `postgres` a random password will be generated unless the postgresPassword field is uncommented
# postgresPassword: retool
service:
port: 5432
# Use the offical docker image rather than bitnami/docker
# since Retool depends on the uuid-ossp extension
image:
repository: "postgres"
tag: "13"
postgresqlDataDir: "/data/pgdata"
primary:
persistence:
enabled: true
mountPath: "/data/"
serviceAccount:
# Specifies whether a service account should be created
create: true
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
# If set and create is false, the service account must be existing
name:
annotations: {}
labels: {}
automountToken: false
# NetworkPolicy applied to the main Retool backend pods. Enforced only by CNIs
# that implement egress NetworkPolicy (Cilium, Calico, AWS VPC CNI network-policy
# agent); a no-op on CNIs that don't.
networkPolicy:
# Block egress to the cloud instance-metadata endpoint (169.254.169.254 -- AWS
# IMDS, GCP metadata.google.internal, Azure IMDS) from the backend pods. They
# execute user-defined resource requests and are the primary SSRF surface, so
# this closes the SSRF -> metadata credential-theft vector. Allows all other
# egress (only that one IP is denied).
#
# Tri-state:
# null (default) -> auto: ON when blob storage is keyless (no static
# credential set), OFF otherwise.
# true / false -> force on/off.
#
# Auto-ON is safe for TOKEN-FEDERATED identities (EKS IRSA, GKE Workload
# Identity, Azure Workload Identity): they resolve credentials via a projected
# token file + the provider STS/IAM endpoint, not the metadata service.
#
# But "no static credential" also covers METADATA-BASED identities that the
# block breaks. Set this to false if blob storage authenticates via an EC2
# instance profile, a GCE default service account, or an Azure IMDS-based
# managed identity -- those read credentials from 169.254.169.254 and are
# misdetected as keyless. Also set false if a data source connection relies on
# the metadata endpoint (e.g. an IAM-role connection using the instance profile).
# Defense in depth -- pair with IMDS hop-limit=1 at the node level and the
# application-layer SSRF filter.
blockCloudMetadataEgress: null
# Additional CIDRs to deny in backend egress (beyond the metadata IP). e.g.
# private ranges you don't want reachable from user-defined requests.
blockedRanges: []
# IPv6 CIDRs to deny. Empty leaves IPv6 egress fully allowed (metadata is IPv4).
blockedRanges6: []
livenessProbe:
enabled: true
path: /api/checkHealth
# host and scheme are optional. On IPv6-primary or dual-stack clusters, set
# host to 127.0.0.1 so the kubelet probes the IPv4 loopback. Some services
# (e.g. code-executor) listen on IPv4 only, so probing the Pod's IPv6 address
# fails with "connection refused" and the pod CrashLoops. Leave unset for the
# default behavior (the kubelet probes the Pod IP).
# host: 127.0.0.1
# scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 10
failureThreshold: 3
readinessProbe:
enabled: true
path: /api/checkHealth
# Optional; see livenessProbe above. Set host: 127.0.0.1 on IPv6/dual-stack clusters.
# host: 127.0.0.1
# scheme: HTTP
initialDelaySeconds: 30
timeoutSeconds: 10
periodSeconds: 10
successThreshold: 5
preStopHook:
enabled: true
# To avoid increasing livenessProbe initialDelaySeconds the good practice is to use a startupProbe.
startupProbe:
enabled: false
path: /api/checkHealth
# Optional; see livenessProbe above. Set host: 127.0.0.1 on IPv6/dual-stack clusters.
# host: 127.0.0.1
# scheme: HTTP
initialDelaySeconds: 60
timeoutSeconds: 10
periodSeconds: 10
successThreshold: 1
extraContainers: []
extraVolumeMounts: []
extraVolumes: []
# These resource specifications will apply to the main backend, jobs-runner, dbconnector, and workflows-backend pods unless container specific resources are set.
resources:
# If you have more than 1 replica, the minimum recommended resources configuration is as follows:
# - cpu: 2048m
# - memory: 4096Mi
# If you only have 1 replica, please double the above numbers.
limits:
cpu: 4096m
memory: 8192Mi
requests:
cpu: 2048m
memory: 4096Mi
priorityClassName: ""
# Affinity for pod assignment
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: "app.kubernetes.io/name"
operator: In
values:
- retool
topologyKey: "kubernetes.io/hostname"
# Tolerations for pod assignment
# Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []
# Node labels for pod assignment
# Ref: https://kubernetes.io/docs/user-guide/node-selection/
nodeSelector:
kubernetes.io/arch: amd64
# Common annotations for all pods.
podAnnotations: {}
revisionHistoryLimit: 3
# Optional pod disruption budget, for ensuring higher availability of the
# Retool application. Specify either minAvailable or maxUnavailable, as
# either an integer pod count (1) or a string percentage ("50%").
# Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
#
# Example:
# podDisruptionBudget:
# maxUnavailable: 1
# Common labels for all pods (backend and job runner) for pod assignment
podLabels: {}
# Increasing replica count will deploy a separate pod for backend and jobs
# Example 1: with 1 replicas, you will end up with 1 combined backend and jobs pod (unless jobRunner.enabled is true, see below)
# Example 2: with 2 replicas, you will end up with 2 backends + 1 jobs pod
# Example 3: with 3 replicas, you will end up with 3 backends + 1 jobs pod
replicaCount: 2
jobRunner:
# explicitly enable this pod if exactly 1 api backend container and
# 1 jobs runner container is desired. otherwise a replicaCount of 2
# will already launch a job runner pod
# enabled: true
# If necessary, specify the resources to provision the jobRunner pod separately from the main backend pods.
resources:
limits:
cpu: 2000m
memory: 4096Mi
requests:
cpu: 1000m
memory: 2048Mi
# Annotations for job runner pods
annotations: {}
# Labels for job runner pods
labels: {}
backend:
# Annotations for backend pods
annotations: {}
# Labels for backend pods
labels: {}
# Make backend pods wait the specified time before kubernetes will forcibly kill them when they need to be rescheduled
# By default this is a 2 minutes + 15 seconds + 1 second (136) grace period to allow outstanding queries to complete
# Change this to 10 minutes 15 seconds + 1 second (616) if you are using long-running queries with a 10 minute timeout
terminationGracePeriodSeconds: 136
ui:
# Annotations for ui pods
annotations: {}
# Labels for ui pods
labels: {}
workflows:
# enabled by default from Chart version 6.0.2 and Retool image 3.6.11 onwards
# explicitly set other fields as needed
# enabled: true
# ADVANCED: The temporal cluster can be scaled separately in the subchart (charts/retool-temporal-services-helm/values.yaml)
# If your needs require scaling temporal, reach out to us for guidance -- it is likely the bottleneck is DB or worker replicaCount
worker:
# A replicaCount of 1 will launch 6 pods -- 1 workflow backend, 1 workflow worker, and 4 pods that make up the executor temporal cluster
# Scaling this number will increase the number of workflow workers, e.g. a replicaCount of 4
# will launch 9 pods -- 1 workflow backend, 4 workflow workers, and 4 for temporal cluster
replicaCount: 1
# Override the connection pool size used by workflow workers when calling the dbconnector service
postgresPoolMaxSize: 100
backend:
# A replicaCount of 1 will launch 6 pods -- 1 workflow backend, 1 workflow worker, and 4 pods that make up the executor temporal cluster
# Scaling this number will increase the number of workflow backends, e.g. a replicaCount of 4
# will launch 9 pods -- 4 workflow backend, 1 workflow workers, and 4 for temporal cluster
replicaCount: 1
# Override the connection pool size used by workflow backends when calling the dbconnector service
postgresPoolMaxSize: 100
# If necessary, specify the resources to provision the workflows-backend pod separately from the main backend pods.
# resources:
# limits:
# cpu: 4096m
# memory: 8192Mi
# requests:
# cpu: 2048m
# memory: 4096Mi
# Timeout for queries, in ms. This will set the timeout for workflows-related pods only
# If this value is not set but config.dbConnectorTimeout is, we will set workflows pod timeouts
# to .Values.config.dbConnectorTimeout
# dbConnectorTimeout: 120000
# Annotations for workflows worker and workflow backend pods
annotations: {}
# Labels for workflows worker and workflow backend pods
labels: {}
# Config for workflows worker pods. Node heap size limits can be overridden here
# otelCollector can be set to an OpenTelemetry Collector in your k8s cluster. This will configure Temporal metrics collection which
# provides observability into Workflows worker performance, particularly useful in high QPS use-cases
# environmentVariables will only be set on the workflows worker
# only change the CONCURRENT_*_LIMIT values if you have higher load usecases and deploy
# code_executor. Otherwise, the worker may OOM if the Workflows blocks use too much memory.
config: {}
# config: {
# nodeOptions: --max_old_space_size=1024
# otelCollector: {
# enabled: true
# endpoint: http://$(HOST_IP):4317
# }
# environmentVariables: []
# - name: WORKFLOW_TEMPORAL_CONCURRENT_TASKS_LIMIT
# value: "100"
# - name: WORKFLOW_TEMPORAL_CONCURRENT_ACTIVITIES_LIMIT
# value: "100"
# }
# Resources for the workflow worker only - these are sane inputs that bias towards stability
# Can adjust but may see OOM errors if memory too low for heavy workflow load
# To make adjustments to workflows backend, use workflows.backend.resources key.
resources:
limits:
cpu: 2000m
memory: 8192Mi
requests:
cpu: 1000m
memory: 2048Mi
# Config for optional standalone dbconnector deployment.
dbconnector:
# By default (disabled), the main backend makes resource queries directly; if
# enabled, only dbconnector pods will make resource queries on behalf of main
# backend and workflow-backend pods.
enabled: false
java:
# Disable this to disable Retool's Java dbconnector. Applies whether
# dbconnector.enabled is true or false.
enabled: true
port: 3007
# Desired pod count for dbconnector deployment.
replicas: 1
# (Optional) If set, make dbconnector pods wait the specified time before
# kubernetes will forcibly kill them when they need to be rescheduled. Setting
# this to a long duration will minimize disruption to any long-running
# resource queries during updates, at the cost of making updates take longer.
# terminationGracePeriodSeconds: 960
# If necessary, specify the resources to provision the workflows-backend pod
# separately from the main backend pods. If unspecified, uses the same
# resources configured for main backend.
# resources:
# limits:
# cpu: 4096m
# memory: 8192Mi
# requests:
# cpu: 2048m
# memory: 4096Mi
config:
nodeOptions: '--max_old_space_size=1024'
postgresPoolMaxSize: 100
httpAgentMaxSockets: 1000
# Which port to listen on. Used for both Pods and Service for dbconnector.
port: 3002
# Extra annotations specific to standalone dbconnector pods.
annotations: {}
multiplayer:
# Enable this to use Retool's experimental multiplayer editing feature.
# This feature is not ready for production use; please check with the Retool team before enablement.
enabled: false
replicaCount: 1
# Resources for multiplayer pods
resources:
requests:
cpu: "200m"
memory: "256Mi"
limits:
memory: "2048Mi"
# Set environment variables for multiplayer pods, e.g. defining which origin to use
# environmentVariables:
# WEBSOCKET_ALLOWED_ORIGIN: "retool.foo.com"
# Annotations for multiplayer pods
annotations: {}
# Labels for multiplayer pods
labels: {}
# Paths to route to multiplayer pods; defaults to /api/multiplayer. Can specify both path and port.
ingress:
# This conditional is dependent on multiplayer.enabled.
enabled: true
paths:
- path: /api/multiplayer
port: 80
# HTTPRoute rules for multiplayer when using Gateway API instead of ingress
httpRoute:
# This conditional is dependent on multiplayer.enabled.
enabled: true
rules:
- path: /api/multiplayer
port: 80
service:
externalPort: 80
internalPort: 3001
annotations: {}
labels: {}
# MCP enablement examples:
#
# Simplest: use the chart-managed OAuth introspection token. BASE_DOMAIN must
# be the public Retool origin already served by your ingress:
#
# env:
# BASE_DOMAIN: https://retool.example.com
# mcp:
# enabled: true
#
# With an explicit public host and an existing Kubernetes Secret:
#
# mcp:
# enabled: true
# config:
# oauthMainDomain: retool.example.com
# oauthIntrospectionAuthTokenSecretName: retool-mcp-oauth
# oauthIntrospectionAuthTokenSecretKey: token
#
# The chart injects the token into both MCP and the backend. The MCP ingress
# routes below are enabled by default; reproduce their mapping when ingress is
# managed outside this chart.
mcp:
# Set to true to deploy the MCP server.
enabled: false
replicaCount: 1
annotations: {}
labels: {}
# Additional MCP environment variables, including valueFrom entries.
# Use for settings not exposed under mcp.config.
environmentVariables: []
# MCP settings translated to environment variables. RETOOL_BACKEND_URL
# defaults to http://<fullname>:<service.externalPort>. Other unset settings
# use the MCP runtime defaults:
# maxTransportSessions: 1000
# sessionIdleTimeoutMs: 3600000 (1 hour)
# sessionSweepIntervalMs: 60000 (1 minute)
# sessionGaugeEmitIntervalMs: 30000 (30 seconds)
config: {}
# Example overrides:
# config:
# # Internal URL used by the MCP server to call the Retool backend.
# # Defaults to the release's internal Retool service when unset.
# retoolBackendUrl:
#
# # Optional override for MCP git-server API calls. When unset:
# # - If rr.gitServer.separate.enabled is true, the chart automatically
# # sets RETOOL_GIT_SERVER_URL to the split git-server Service URL.
# # - If rr.gitServer.separate.enabled is false, MCP automatically uses
# # retoolBackendUrl.
# retoolGitServerUrl:
#
# # Public Retool origin for client-facing upload URLs when the request Host
# # header is insufficient. Do not include /mcp.
# mcpServiceExternalUrl:
#
# # Deprecated alias for mcpServiceExternalUrl.
# retoolUrl:
#
# # Public Retool host serving OAuth metadata and /api/oauth2/*. Defaults to
# # env.BASE_DOMAIN and is usually the Retool application host, not an
# # oauth.* subdomain. URL-shaped values are accepted with the scheme removed.
# oauthMainDomain:
#
# # Secret containing the OAuth introspection token shared by MCP and the
# # backend. When chart-owned secrets are enabled, omitting this generates a
# # token. If the token is instead set through mcp.environmentVariables, set
# # the same backend value through top-level env, environmentVariables, or
# # environmentSecrets.
# oauthIntrospectionAuthTokenSecretName:
# oauthIntrospectionAuthTokenSecretKey: oauthIntrospectionAuthToken
#
# # Literal token for development only; prefer the secret-backed setting.
# oauthIntrospectionAuthToken:
#
# # Secret containing the private key used to sign agent sandbox requests.
# # Defaults to the rr.agentSandbox external Secret and jwt-private-key key.
# agentSandboxJwtPrivateKeySecretName:
# agentSandboxJwtPrivateKeySecretKey: jwt-private-key
#
# # Literal private key for development only. Defaults to
# # rr.agentSandbox.jwtPrivateKey when the agent sandbox is enabled.
# agentSandboxJwtPrivateKey:
#
# # Node.js options for the MCP server process.
# nodeOptions: --max_old_space_size=1024
#
# # Restrict the enabled toolsets. All available toolsets are enabled when unset.
# enabledToolsets:
# - apps
# - resources
# # Maximum concurrent transport sessions.
# maxTransportSessions: 1000
# sessionIdleTimeoutMs: 1800000
# sessionSweepIntervalMs: 60000
# sessionGaugeEmitIntervalMs: 30000
# MCP pod resources. The server does not horizontally scale yet, so its
# default memory limit is higher than multiplayer's.
resources:
requests:
cpu: "200m"
memory: "256Mi"
limits:
memory: "4096Mi"
# Backend API Service for the OAuth authorization-server metadata route.
backendMetadata:
service:
enabled: true
portName: http-api
externalPort: 3001
internalPort: 3001
annotations: {}
labels: {}
# Retool 4.0.7 and later support a simplified ingress setup: route all public
# paths, including /mcp and /.well-known, to the main Retool Service on port
# 3000. The main backend must also be able to relay /mcp to the in-cluster MCP
# Service. When mcp.enabled is true, the chart configures the backend with
# MCP_SERVICE_INGRESS_DOMAIN=http://<fullname>-mcp:<service.externalPort>.
# You can override it through the top-level env, environmentSecrets, or
# environmentVariables settings.
#
# With that setting, omit or disable the MCP-specific ingress or HTTPRoute
# rules below and keep only the normal "/" route to <fullname>:3000. Replace
# <fullname> with this chart release's full name.
#
# Retool versions before 4.0.7 require the explicit MCP routes below,
# rendered before the main Retool route. External ingress must preserve this
# order and target mapping:
# Exact /.well-known/oauth-authorization-server -> <fullname>-backend-internal:3001
# Exact /.well-known/oauth-protected-resource -> <fullname>-mcp:4010
# Prefix /mcp -> <fullname>-mcp:4010
# Prefix / -> <fullname>:3000
ingress:
# Also requires mcp.enabled.
enabled: true
paths:
- path: /.well-known/oauth-authorization-server
pathType: Exact
target: backendInternal
- path: /.well-known/oauth-protected-resource
pathType: Exact
- path: /mcp
pathType: Prefix
# Equivalent Gateway API routes.
httpRoute:
# Also requires mcp.enabled.
enabled: true
rules:
- path: /.well-known/oauth-authorization-server
pathType: Exact
target: backendInternal
- path: /.well-known/oauth-protected-resource
pathType: Exact
- path: /mcp
service:
externalPort: 4010
internalPort: 4010
annotations: {}
labels: {}
codeExecutor:
# Code executor normally tracks the top-level `image` parameters. Override the
# tag only when you need a one-off or patched build (e.g. a support build whose
# tag differs from the backend's); running a code executor version that does not
# match the backend is not generally supported.
image:
repository: tryretool/code-executor-service
# defaults to top level image.tag
tag: null
# pull policy will use the value set in the top-level image.pullPolicy
replicaCount: 1
# Annotations for code executor pods
annotations: {}
# Labels for code executor pods
labels: {}
# Config for code executor. Node heap size limits can be overridden here
config: {}
# config: {
# nodeOptions: --max_old_space_size=1024
# }
volumes: {}
volumeMounts: {}
# Config affinity and anti-affinity rules for the code executor pods
affinity: {}
# Resources for the code executor. Most common issues will be seen with CPU usage as this will
# most likely be CPU bound. Adjust the CPU if latency increases under load.
resources:
limits:
cpu: 2000m
memory: 2048Mi
requests:
cpu: 1000m
memory: 1024Mi
# The code executor runs workflow code inside nsjail sandboxes, which require
# elevated privileges to create. By default these are granted by running the
# container as privileged (securityContext.privileged: true). Set
# useSeccompProfile: true to instead grant only what nsjail needs, far more
# granularly than the privileged flag: a slightly relaxed version of Docker's
# default seccomp profile, the NET_ADMIN capability for network isolation, and an
# unmasked /proc for process resource monitoring. This requires Kubernetes 1.33 or
# higher (for the ProcMountType and UserNamespacesSupport feature gates) -- do not
# enable it on older clusters. Pinning codeExecutor.securityContext overrides both
# paths and is used verbatim.
useSeccompProfile: false
seccompLocalhostProfile: profiles/nsjail-seccomp.json
# Deploy a DaemonSet that loads AppArmor profiles for nsjail on every node.
# When enabled, the code-executor and js-executor annotations switch from
# "unconfined" to "localhost/retool-executor", which satisfies Ubuntu 24.04+'s
# kernel.apparmor_restrict_unprivileged_userns=1 restriction by providing an
# explicit userns rule. Requires useSeccompProfile: true for code-executor to
# take effect (js-executor always uses the seccomp/AppArmor path). The
# DaemonSet itself renders whenever this is true and either workflows is
# enabled (for code-executor) or rr.jsExecutor is enabled -- it is not tied
# to workflows alone, since js-executor doesn't require workflows to run.
appArmorProfileInstaller: false
# === RR (Retool agent runtime) =============================================
# Master switch for the whole RR stack. Set `rr.enabled: true` to turn on the
# components nested below — jsExecutor, agent, and agentSandbox — with a
# single line. Each component's own `enabled` (left null by default) inherits
# this switch; set a component's `enabled` to true/false to override the master
# for that component only. The gitServer and blobStorage blocks below
# provide the React Retool git server and the object storage the stack needs.
rr:
enabled: false
# JS Executor
jsExecutor:
# Inherits .Values.rr.enabled when left unset (null); set true/false to override.
enabled: null
image:
repository: tryretool/js-executor-service
# defaults to top level image.tag
tag: null
pullPolicy: IfNotPresent
replicaCount: 1
seccompLocalhostProfile: profiles/nsjail-seccomp.json
# JS-executor-specific environment; not inherited from the top-level
# .Values.env / .Values.environmentSecrets / .Values.environmentVariables.
env: {}
environmentSecrets: []
environmentVariables: []
# Annotations for JS executor pods
annotations: {}
# Labels for JS executor pods
labels: {}
volumes: {}
volumeMounts: {}
# Config affinity and anti-affinity rules for the JS executor pods
affinity: {}
# Resources for the JS executor. Memory request and limit are kept equal:
# JSE reads its memory limit and rejects requests at 80% of it, so the
# request must reserve the full amount to avoid premature rejections.
resources:
limits:
cpu: '2'
memory: 6Gi
requests:
cpu: '2'
memory: 6Gi
# RR Agent: server-side agent loop worker (independent from agents above).
agent:
# Inherits .Values.rr.enabled when left unset (null); set true/false to override.
enabled: null
# Labels for RR agent worker pods
labels: {}
# RR agent configuration
config: {}
# Annotations for RR agent worker pods
annotations: {}
# RR agent worker configuration
worker:
replicaCount: 1
resources:
limits:
cpu: 2000m
memory: 4096Mi
requests:
cpu: 1000m
memory: 2048Mi
# Agent Sandbox Service: sandboxed code execution for AI agents.
# Deploys a controller (manages sandbox lifecycle), proxy (HTTP proxy for sandbox egress),
# and ephemeral Job-based sandboxes. Uses Postgres for controller/proxy state.
agentSandbox:
# Inherits .Values.rr.enabled when left unset (null); set true/false to override.
enabled: null
image:
repository: tryretool/agent-sandbox-service
# defaults to top level image.tag
tag: null
pullPolicy: IfNotPresent
# Lightweight init image used by the prepuller and seccomp DaemonSets.
# Pinning by digest is recommended for production.
initImage:
repository: busybox
tag: '1.37.0'
# Manifest list digest — set to '' in test environments where images are
# pre-loaded (containerd 2.0 can't resolve digest references for side-loaded images).
digest: ''
# DaemonSets set hostNetwork: true by default
hostNetwork: true
# Annotations for agent sandbox pods
annotations: {}
# Labels for agent sandbox pods
labels: {}
# === Secrets ============================================================
# Provide each secret as a plaintext value below, OR set externalSecret.name
# to a pre-existing Secret with keys jwt-public-key, jwt-private-key,
# encryption-key, api-secret. A plaintext value always wins over the external
# secret for that key. externalSecret.name covers ONLY these app secrets --
# it does not source Postgres. To read a DSN from that same Secret, point
# postgres.urlSecretName at it (see Postgres Option 3 below).
externalSecret:
name: '' # optional: existing Secret holding the keys below
jwtPublicKey: '' # REQUIRED (ES256) unless provided via externalSecret
jwtPrivateKey: '' # REQUIRED (ES256) unless provided via externalSecret
encryptionKey: '' # REQUIRED: 64 hex chars (openssl rand -hex 32, NOT base64). Proxy throws when serving a sandbox without it; must match the backend's AGENT_SANDBOX_ENCRYPTION_KEY. May instead be supplied via externalSecret.name (encryption-key entry).
apiSecret: '' # optional: admin/test endpoints
# === Postgres state backend =============================================
# By DEFAULT (all options below left blank) the agent sandbox reuses the
# backend's Postgres connection from config.postgresql / the postgresql
# subchart -- same instance and database, separate schema (see schema below).
# So enabling it on an existing deployment needs nothing here. (Exception:
# if the backend's DB password is supplied via external secrets / envFrom, it
# can't be inherited by a separate pod -- set an option below in that case.)
# To point the sandbox at a different database, set exactly ONE option:
postgres:
# -- Option 1: plaintext DSN --
url: ''
# -- Option 2: assemble from fields --
# The password is passed via PGPASSWORD (never embedded in the URL), so any
# characters are safe and a password-only secret can be reused as-is.
# Set either password or passwordSecretName.
# user/database are embedded in the DSN verbatim (user may contain '@', e.g.
# Azure user@servername); for values with : / ? # use Option 1 or 3.
host: ''
port: 5432
database: ''
user: ''
password: ''
passwordSecretName: ''
passwordSecretKey: 'password'
# -- Option 3: DSN from an existing Secret --