Skip to content

Commit

Permalink
feat: add gateway component
Browse files Browse the repository at this point in the history
  • Loading branch information
g1eny0ung committed Dec 19, 2023
1 parent c71d381 commit 2e84f88
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
13 changes: 13 additions & 0 deletions charts/hstreamdb/templates/hstreamdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@ spec:
container:
name: {{ .Values.hmeta.name }}
volumeClaimTemplate: {{ include "hstreamdb.hmeta.volumeClaimTemplate" . | indent 6 }}
{{- if .Values.gateway.enabled }}
gateway:
endpoint: {{ include "hstreamdb.fullname" . }}-internal-hserver:6570
image: {{ .Values.gateway.image }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
replicas: {{ .Values.gateway.replicaCount }}
container:
name: {{ .Values.gateway.name }}
env:
{{- with .Values.gateway.env }}
{{- toYaml . | nindent 8 }}
{{- end -}}
{{- end }}
{{- if .Values.console.enabled }}
console:
image: {{ .Values.console.image }}
Expand Down
11 changes: 7 additions & 4 deletions charts/hstreamdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,13 @@ hmeta:
rqlite:
version: 7.21.4

# gateway:
# enabled: false
# # Name of the gateway component.
# name: hstream-gateway
gateway:
enabled: false
# Name of the gateway component.
name: hstream-gateway
image: hstreamdb/hstream-gateway
replicaCount: 1
env:

console:
enabled: false
Expand Down

0 comments on commit 2e84f88

Please sign in to comment.