Skip to content

Commit

Permalink
Merge pull request #1 from xiangwanpeng/feat/tatris
Browse files Browse the repository at this point in the history
  • Loading branch information
xzchaoo authored Jun 13, 2023
2 parents 9977c2c + bd314b5 commit 04d2d4a
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/holoinsight/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ icon: https://github.com/traas-stack/holoinsight/raw/main/docs/logo/logo.png
annotations:
"artifacthub.io/license": Apache-2.0

version: 0.2.3
version: 0.2.4

appVersion: "0.2.0"
80 changes: 80 additions & 0 deletions charts/holoinsight/templates/tatris.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{{ if .Values.db.tatris.enabled | default true }}

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: holoinsight-tatris
namespace: {{ .Release.namespace }}
spec:
serviceName: holoinsight-tatris
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: holoinsight-tatris
template:
metadata:
name: holoinsight-tatris
labels:
app.kubernetes.io/name: holoinsight-tatris
{{- include "chart_common_labels" . | indent 8 }}
spec:
restartPolicy: Always
containers:
- name: tatris
image: {{ .Values.db.tatris.image }}
imagePullPolicy: Always
lifecycle:
postStart:
exec:
command:
- /bin/sh
- -c
- sudo ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
env:
- name: discovery.type
value: single-node
ports:
- containerPort: 6060
readinessProbe:
tcpSocket:
port: 6060
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 10
periodSeconds: 3
initialDelaySeconds: 10
{{- if .Values.db.tatris.env }}
{{- toYaml .Values.db.tatris.env | nindent 10 }}
{{- end }}
{{- if .Values.db.tatris.resources }}
resources:
{{- toYaml .Values.db.tatris.resources | nindent 10 }}
{{- end }}
volumeMounts:
- mountPath: /etc/localtime
name: tz-config
volumes:
- hostPath:
path: /usr/share/zoneinfo/Asia/Shanghai
type: ""
name: tz-config

---
apiVersion: v1
kind: Service
metadata:
name: tatris
namespace: {{ .Release.namespace }}
labels:
name: holoinsight-tatris
spec:
clusterIP: None
ports:
- name: p6060
protocol: TCP
port: 6060
selector:
app.kubernetes.io/name: holoinsight-tatris


{{- end }}
10 changes: 6 additions & 4 deletions charts/holoinsight/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ server:
storage:
elasticsearch:
enable: true
hosts: es
port: 9200
hosts: tatris
port: 6060
security:
whiteHosts: server,gateway,gateway.holoinsight-server
Expand All @@ -67,7 +67,6 @@ collector:
# replicas defaults to 1. Production-level deployment must be set greater than 1 to achieve high availability.
replicas: 1


# db is the config of the database that holoinsight-server depends on.
# When deploying at production level, you should manually prepare these databases and configure them in high availability mode instead of using the database provided by this Helm Chart.
# The database provided by this Helm Chart is only configured with a single instance and has no persistent storage. Once restarted, it means data loss.
Expand All @@ -83,8 +82,11 @@ db:
enabled: true
image: ceresdb/ceresdb-server:v1.0.0
es:
enabled: true
enabled: false
image: elasticsearch:7.16.1
tatris:
enabled: true
image: tatrisio/tatris:latest
mongo:
enabled: true
image: mongo:4.4.18

0 comments on commit 04d2d4a

Please sign in to comment.