Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Parseable CR Helm Chart #44

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions helm/parseable/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions helm/parseable/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: parseable
description: A Helm chart for Parseable Custom Resource
type: application
version: 0.0.1
appVersion: "v0.0.1"
27 changes: 27 additions & 0 deletions helm/parseable/templates/parseable-cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: parseable.io/v1beta1
kind: ParseableTenant
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
spec:
{{- with .Values.nodes }}
nodes:
{{- toYaml . | nindent 2 }}
{{- end }}

deploymentOrder:
- server

{{- with .Values.k8sConfig }}
k8sConfig:
{{- toYaml . | nindent 2 }}
{{- end }}

{{- with .Values.parseableConfig }}
parseableConfig:
{{- toYaml . | nindent 2 }}
{{- end }}
env:
{{- range $key, $value := .Values.env }}
{{ $key }}: {{ tpl $value $ | quote }}
{{- end }}
46 changes: 46 additions & 0 deletions helm/parseable/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
nodes:
- name: parseable-server
type: server
kind: Deployment
replicas: 1
k8sConfig: parseable-server
parseableConfig: parseable-server-config

k8sConfig:
- name: parseable-server
image: parseable/parseable:v0.4.0
service:
type: ClusterIP
ports:
- protocol: TCP
port: 80
targetPort: 8000
volumes:
- emptyDir: {}
name: stage-volume
- emptyDir: {}
name: data-volume
volumeMount:
- mountPath: /parseable/data
name: data-volume
- mountPath: /parseable/staging
name: stage-volume
resources:
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 100m
memory: 128Mi

parseableConfig:
- name: parseable-server-config
cliArgs:
- local-store

env:
P_ADDR: "0.0.0.0:8000"
P_STAGING_DIR: "/parseable/staging"
P_FS_DIR: "./data"
P_USERNAME: "admin"
P_PASSWORD: "admin"