-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add distributed option to helm-chart and update console (#749)
- Loading branch information
Showing
16 changed files
with
313 additions
and
52 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ apiVersion: v2 | |
name: parseable | ||
description: Helm chart for Parseable Server | ||
type: application | ||
version: 0.9.0 | ||
appVersion: "v0.9.0" | ||
version: 1.0.0 | ||
appVersion: "v1.0.0" | ||
maintainers: | ||
- name: Parseable Team | ||
email: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if eq .Values.parseable.highAvailability.enabled true }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "parseable.fullname" . }}-ingestor-service | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
type: {{ $.Values.parseable.highAvailability.ingestor.service.type }} | ||
ports: | ||
- port: {{ $.Values.parseable.highAvailability.ingestor.service.port }} | ||
targetPort: {{ .Values.parseable.highAvailability.ingestor.port }} | ||
protocol: TCP | ||
selector: | ||
{{- include "parseable.ingestorLabelsSelector" . | nindent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{{- if eq .Values.parseable.highAvailability.enabled true }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "parseable.fullname" . }}-ingestor-headless | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
ports: | ||
- port: 8000 | ||
name: "parseable-port" | ||
clusterIP: None | ||
selector: | ||
{{- include "parseable.ingestorLabelsSelector" . | nindent 4 }} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: {{ include "parseable.fullname" . }}-ingestor | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "parseable.ingestorLabels" . | nindent 4 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
{{- include "parseable.ingestorLabelsSelector" . | nindent 6 }} | ||
serviceName: {{ include "parseable.fullname" . }}-headless | ||
replicas: {{ .Values.parseable.highAvailability.ingestor.count }} | ||
minReadySeconds: 2 | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "parseable.ingestorLabelsSelector" . | nindent 8 }} | ||
spec: | ||
terminationGracePeriodSeconds: 10 | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
securityContext: | ||
{{- toYaml .Values.parseable.securityContext | nindent 8 }} | ||
image: {{ .Values.parseable.image.repository }}:{{ .Values.parseable.image.tag | default .Chart.AppVersion }} | ||
imagePullPolicy: {{ .Values.parseable.image.pullPolicy }} | ||
command: ["/bin/bash", "-c"] | ||
args: ["parseable s3-store --ingestor-endpoint=${HOSTNAME}.{{ include "parseable.fullname" . }}-ingestor-headless.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.parseable.highAvailability.ingestor.port }}"] | ||
env: | ||
{{- range $key, $value := .Values.parseable.highAvailability.ingestor.env }} | ||
- name: {{ $key }} | ||
value: {{ tpl $value $ | quote }} | ||
{{- end }} | ||
{{- range $secret := .Values.parseable.s3ModeSecret }} | ||
{{- range $key := $secret.keys }} | ||
{{- $envPrefix := $secret.prefix | default "" | upper }} | ||
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }} | ||
- name: {{ $envPrefix }}{{ $envKey }} | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ $secret.name }} | ||
key: {{ $key }} | ||
{{- end }} | ||
{{- end }} | ||
- name: P_MODE | ||
value: "ingest" | ||
ports: | ||
- containerPort: {{ .Values.parseable.highAvailability.ingestor.port }} | ||
resources: | ||
{{- toYaml .Values.parseable.highAvailability.ingestor.resources | nindent 12 }} | ||
volumeMounts: | ||
## No data volume for ingestor | ||
- mountPath: "/parseable/staging" | ||
name: stage-volume | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: stage-volume | ||
spec: | ||
accessModes: [ "ReadWriteOnce" ] | ||
storageClassName: "do-block-storage" | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
{{- end }} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{{- if eq .Values.parseable.highAvailability.enabled true }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "parseable.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "parseable.labels" . | nindent 4 }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
{{- include "parseable.labelsSelector" . | nindent 6 }} | ||
template: | ||
metadata: | ||
{{- with .Values.parseable.podAnnotations }} | ||
annotations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
labels: | ||
{{- include "parseable.labelsSelector" . | nindent 8 }} | ||
spec: | ||
{{- with .Values.parseable.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
serviceAccountName: {{ include "parseable.serviceAccountName" . }} | ||
securityContext: | ||
{{- toYaml .Values.parseable.podSecurityContext | nindent 8 }} | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
securityContext: | ||
{{- toYaml .Values.parseable.securityContext | nindent 12 }} | ||
image: "{{ .Values.parseable.image.repository }}:{{ .Values.parseable.image.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.parseable.image.pullPolicy }} | ||
# Uncomment to debug | ||
# command: [ "/bin/sh", "-c", "sleep 1000000" ] | ||
args: ["parseable", "s3-store"] | ||
env: | ||
- name: P_MODE | ||
value: "query" | ||
{{- range $key, $value := .Values.parseable.env }} | ||
- name: {{ $key }} | ||
value: {{ tpl $value $ | quote }} | ||
{{- end }} | ||
{{- range $secret := .Values.parseable.s3ModeSecret }} | ||
{{- range $key := $secret.keys }} | ||
{{- $envPrefix := $secret.prefix | default "" | upper }} | ||
{{- $envKey := $key | upper | replace "." "_" | replace "-" "_" }} | ||
- name: {{ $envPrefix }}{{ $envKey }} | ||
valueFrom: | ||
secretKeyRef: | ||
name: {{ $secret.name }} | ||
key: {{ $key }} | ||
{{- end }} | ||
{{- end }} | ||
ports: | ||
- containerPort: 8000 | ||
resources: | ||
{{- toYaml .Values.parseable.resources | nindent 12 }} | ||
volumeMounts: | ||
- mountPath: "/parseable/staging" | ||
name: stage-volume | ||
volumes: | ||
{{- if .Values.parseable.persistence.staging.enabled }} | ||
- name: stage-volume | ||
persistentVolumeClaim: | ||
claimName: {{ include "parseable.fullname" . }}-staging-pvc | ||
{{- else }} | ||
- name: stage-volume | ||
emptyDir: {} | ||
{{- end }} | ||
{{- with .Values.parseable.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.parseable.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.parseable.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if eq .Values.parseable.highAvailability.enabled true }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "parseable.fullname" . }}-ingestor-service | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
type: {{ $.Values.parseable.service.type }} | ||
ports: | ||
- port: {{ $.Values.parseable.service.port }} | ||
targetPort: 8000 | ||
protocol: TCP | ||
selector: | ||
{{- include "parseable.labelsSelector" . | nindent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.