From cdd08156306439c38425079db5b069faf3139b19 Mon Sep 17 00:00:00 2001 From: AdheipSingh Date: Sat, 9 Dec 2023 02:08:51 +0530 Subject: [PATCH] add parseable cr helm --- helm/parseable/.helmignore | 23 +++++++++++ helm/parseable/Chart.yaml | 6 +++ helm/parseable/templates/parseable-cr.yaml | 27 +++++++++++++ helm/parseable/values.yaml | 46 ++++++++++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 helm/parseable/.helmignore create mode 100644 helm/parseable/Chart.yaml create mode 100644 helm/parseable/templates/parseable-cr.yaml create mode 100644 helm/parseable/values.yaml diff --git a/helm/parseable/.helmignore b/helm/parseable/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/helm/parseable/.helmignore @@ -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/ diff --git a/helm/parseable/Chart.yaml b/helm/parseable/Chart.yaml new file mode 100644 index 0000000..8e16f9f --- /dev/null +++ b/helm/parseable/Chart.yaml @@ -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" diff --git a/helm/parseable/templates/parseable-cr.yaml b/helm/parseable/templates/parseable-cr.yaml new file mode 100644 index 0000000..a26a5af --- /dev/null +++ b/helm/parseable/templates/parseable-cr.yaml @@ -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 }} diff --git a/helm/parseable/values.yaml b/helm/parseable/values.yaml new file mode 100644 index 0000000..0488f61 --- /dev/null +++ b/helm/parseable/values.yaml @@ -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"