Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/retool/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: retool
description: A Helm chart for Kubernetes
type: application
version: 6.9.2
version: 6.10.0
maintainers:
- name: Retool Engineering
email: engineering+helm@retool.com
Expand Down
49 changes: 49 additions & 0 deletions charts/retool/templates/httproute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{{- if .Values.httpRoute.enabled }}
{{- $fullName := include "retool.fullname" . -}}
{{- $svcPort := .Values.service.externalPort -}}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ $fullName }}
labels:
{{- include "retool.labels" . | nindent 4 }}
{{- with .Values.httpRoute.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.httpRoute.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.httpRoute.parentRefs }}
parentRefs:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.httpRoute.hostnames }}
hostnames:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
{{- if ( and ((.Values.multiplayer).enabled) (((.Values.multiplayer).httpRoute).enabled) ) }}
{{- range .Values.multiplayer.httpRoute.rules }}
- matches:
- path:
type: {{ .pathType | default "PathPrefix" }}
value: {{ .path }}
backendRefs:
- name: {{ template "retool.multiplayer.name" $ }}
port: {{ .port }}
{{- end }}
{{- end }}
{{- if .Values.httpRoute.rules }}
{{- toYaml .Values.httpRoute.rules | nindent 4 }}
{{- else }}
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: {{ $fullName }}
port: {{ $svcPort }}
{{- end }}
{{- end }}
32 changes: 32 additions & 0 deletions charts/retool/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,30 @@ ingress:
# 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,
Expand Down Expand Up @@ -520,6 +544,14 @@ multiplayer:
- 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
Expand Down
32 changes: 32 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,30 @@ ingress:
# 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,
Expand Down Expand Up @@ -520,6 +544,14 @@ multiplayer:
- 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
Expand Down
Loading