Skip to content

Commit 48689fe

Browse files
committed
update Parseable helm chart for distributed mode
1 parent a678290 commit 48689fe

File tree

10 files changed

+94
-769
lines changed

10 files changed

+94
-769
lines changed

helm-releases/operator-0.0.3.tgz

0 Bytes
Binary file not shown.

helm-releases/parseable-1.0.0.tgz

46.6 KB
Binary file not shown.

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: parseable
33
description: Helm chart for Parseable Server
44
type: application
5-
version: 0.9.0
6-
appVersion: "v0.9.0"
5+
version: 1.0.0
6+
appVersion: "v1.0.0"
77
maintainers:
88
- name: Parseable Team
99

helm/templates/ingestor-service.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
apiVersion: v1
33
kind: Service
44
metadata:
5-
name: {{ include "parseable.fullname" . }}
5+
name: {{ include "parseable.fullname" . }}-ingestor-service
66
namespace: {{ .Release.Namespace }}
77
spec:
8-
type: {{ $.Values.parseable.service.type }}
8+
type: {{ $.Values.parseable.highAvailability.ingestor.service.type }}
99
ports:
10-
- port: {{ $.Values.parseable.service.port }}
11-
targetPort: 8000
10+
- port: {{ $.Values.parseable.highAvailability.ingestor.service.port }}
11+
targetPort: {{ .Values.parseable.highAvailability.ingestor.port }}
1212
protocol: TCP
1313
selector:
1414
{{- include "parseable.ingestorLabelsSelector" . | nindent 4 }}

helm/templates/ingestor-statefulset.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: Service
44
metadata:
5-
name: {{ include "parseable.fullname" . }}-headless
5+
name: {{ include "parseable.fullname" . }}-ingestor-headless
66
namespace: {{ .Release.Namespace }}
77
spec:
88
ports:
@@ -25,7 +25,7 @@ spec:
2525
{{- include "parseable.ingestorLabelsSelector" . | nindent 6 }}
2626
serviceName: {{ include "parseable.fullname" . }}-headless
2727
replicas: {{ .Values.parseable.highAvailability.ingestor.count }}
28-
minReadySeconds: 10
28+
minReadySeconds: 2
2929
template:
3030
metadata:
3131
labels:
@@ -38,9 +38,8 @@ spec:
3838
{{- toYaml .Values.parseable.securityContext | nindent 8 }}
3939
image: {{ .Values.parseable.image.repository }}:{{ .Values.parseable.image.tag | default .Chart.AppVersion }}
4040
imagePullPolicy: {{ .Values.parseable.image.pullPolicy }}
41-
# Uncomment to debug
42-
# command: [ "/bin/sh", "-c", "sleep 1000000" ]
43-
args: ["parseable", "s3-store"]
41+
command: ["/bin/bash", "-c"]
42+
args: ["parseable s3-store --ingestor-endpoint=${HOSTNAME}.{{ include "parseable.fullname" . }}-ingestor-headless.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.parseable.highAvailability.ingestor.port }}"]
4443
env:
4544
{{- range $key, $value := .Values.parseable.highAvailability.ingestor.env }}
4645
- name: {{ $key }}
@@ -59,14 +58,12 @@ spec:
5958
{{- end }}
6059
- name: P_MODE
6160
value: "ingest"
62-
- name: P_INGESTOR_URL
63-
value: "$HOSTNAME:$PORT"
6461
ports:
65-
- containerPort: 8000
62+
- containerPort: {{ .Values.parseable.highAvailability.ingestor.port }}
6663
resources:
6764
{{- toYaml .Values.parseable.highAvailability.ingestor.resources | nindent 12 }}
6865
volumeMounts:
69-
## No data volume for ingestor
66+
## No data volume for ingestor
7067
- mountPath: "/parseable/staging"
7168
name: stage-volume
7269
volumeClaimTemplates:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{{- if eq .Values.parseable.highAvailability.enabled true }}
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: {{ include "parseable.fullname" . }}-ingestor-service
6+
namespace: {{ .Release.Namespace }}
7+
spec:
8+
type: {{ $.Values.parseable.service.type }}
9+
ports:
10+
- port: {{ $.Values.parseable.service.port }}
11+
targetPort: 8000
12+
protocol: TCP
13+
selector:
14+
{{- include "parseable.labelsSelector" . | nindent 4 }}
15+
{{- end }}

helm/values.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
parseable:
22
image:
33
repository: parseable/parseable
4-
tag: edge-debug
4+
tag: v1.0.0
55
pullPolicy: Always
66
## Set to true if you want to deploy Parseable in local mode (store logs
77
## on local mount point instead of S3 bucket)
8-
local: false
8+
local: true
99
## Set to true if you want to deploy Parseable in a HA mode (multiple ingestors)
1010
## Please note that highAvailability is not supported in local mode
1111
highAvailability:
12-
enabled: true
12+
enabled: false
1313
ingestor:
14+
port: 8000
1415
count: 3
1516
env:
1617
RUST_LOG: warn
18+
## Use this endpoint to send events to ingestors
19+
## Console (UI) is available on the other service (that points to the query pod)
1720
service:
1821
type: ClusterIP
1922
port: 80

0 commit comments

Comments
 (0)