Skip to content

Commit

Permalink
feat: add console component
Browse files Browse the repository at this point in the history
  • Loading branch information
g1eny0ung committed Oct 24, 2023
1 parent 4f3bda6 commit a23a783
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 4 deletions.
19 changes: 19 additions & 0 deletions charts/hstreamdb/templates/hstream-console-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.console.enabled -}}

apiVersion: v1
kind: Service
metadata:
name: {{ .Values.console.name }}
namespace: {{ .Release.Namespace | quote }}
labels:
{{- include "hstreamdb.labels" . | nindent 4 }}
spec:
type: NodePort
ports:
{{- with .Values.console.servicePorts }}
{{- toYaml . | nindent 4 }}
{{- end }}
selector:
hstream.io/component: console

{{- end }}
9 changes: 9 additions & 0 deletions charts/hstreamdb/templates/hstreamdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ spec:
container:
name: {{ .Values.hmeta.name }}
volumeClaimTemplate: {{- include "hstreamdb.hmeta.volumeClaimTemplate" . | indent 6 }}
console:
image: hstreamdb/hstream-console
imagePullPolicy: {{ .Values.image.pullPolicy }}
replicas: {{ .Values.console.replicaCount }}
container:
name: {{ .Values.console.name }}
env:
- name: HSTREAM_PRIVATE_ADDRESS
value: {{ include "hstreamdb.fullname" . }}-internal-hserver:6570
13 changes: 9 additions & 4 deletions charts/hstreamdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,12 @@ hmeta:
# # Name of the gateway component.
# name: hstream-gateway

# console:
# enabled: false
# # Name of the console component.
# name: hstream-console
console:
enabled: false
# Name of the console component.
name: hstreamdb-console
replicaCount: 1
servicePorts:
- name: http
port: 5177
nodePort: 31777

0 comments on commit a23a783

Please sign in to comment.