diff --git a/charts/emeis/.helmignore b/charts/emeis/.helmignore
new file mode 100644
index 0000000..0e8a0eb
--- /dev/null
+++ b/charts/emeis/.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/charts/emeis/Chart.lock b/charts/emeis/Chart.lock
new file mode 100644
index 0000000..3f2b622
--- /dev/null
+++ b/charts/emeis/Chart.lock
@@ -0,0 +1,6 @@
+dependencies:
+- name: postgresql
+ repository: https://charts.bitnami.com/bitnami
+ version: 14.0.0
+digest: sha256:e011d7c1e6309e637473231af15527ba4031c95c94776cccd4aa47198ca8a9dd
+generated: "2024-02-02T15:46:23.679737598+01:00"
diff --git a/charts/emeis/Chart.yaml b/charts/emeis/Chart.yaml
new file mode 100644
index 0000000..61666ea
--- /dev/null
+++ b/charts/emeis/Chart.yaml
@@ -0,0 +1,21 @@
+apiVersion: v2
+name: emeis
+description: Run emeis on Kubernetes
+type: application
+version: 0.1.0
+appVersion: 1.3.4
+keywords:
+ - caluma
+home: https://caluma.io/
+icon: https://avatars0.githubusercontent.com/u/42172011?s=200&v=4
+sources:
+ - https://github.com/projectcaluma/emeis
+ - https://github.com/projectcaluma/charts
+maintainers:
+ - name: Caluma
+ email: contact@caluma.io
+dependencies:
+ - name: postgresql
+ version: ~14.0.0
+ repository: https://charts.bitnami.com/bitnami
+ condition: postgresql.enabled
diff --git a/charts/emeis/README.md b/charts/emeis/README.md
new file mode 100644
index 0000000..0cf0092
--- /dev/null
+++ b/charts/emeis/README.md
@@ -0,0 +1,85 @@
+# emeis
+
+![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.4](https://img.shields.io/badge/AppVersion-1.3.4-informational?style=flat-square)
+
+Run emeis on Kubernetes
+
+**Homepage:**
+
+## Maintainers
+
+| Name | Email | Url |
+| ---- | ------ | --- |
+| Caluma | | |
+
+## Source Code
+
+*
+*
+
+## Requirements
+
+| Repository | Name | Version |
+|------------|------|---------|
+| https://charts.bitnami.com/bitnami | postgresql | ~14.0.0 |
+
+## Values
+
+| Key | Type | Default | Description |
+|-----|------|---------|-------------|
+| affinity | object | `{}` | |
+| autoscaling.enabled | bool | `false` | |
+| autoscaling.maxReplicas | int | `100` | |
+| autoscaling.minReplicas | int | `1` | |
+| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
+| emeis.additionalEnvironmentVariables | list | `[]` | |
+| emeis.allowAnonymousWrite | string | `"true"` | |
+| emeis.allowedHosts | string | `"*"` | |
+| emeis.env | string | `"production"` | |
+| emeis.languages[0] | string | `"de"` | |
+| emeis.languages[1] | string | `"en"` | |
+| emeis.permissionClasses | string | `""` | |
+| emeis.postgresql.database | string | `""` | Gets used when postgresql.enabled = false |
+| emeis.postgresql.existingHost | string | `""` | Gets used when postgresql.enabled = false |
+| emeis.postgresql.username | string | `""` | Gets used when postgresql.enabled = false |
+| emeis.secretKey | string | `""` | |
+| emeis.visibilityClasses | string | `""` | |
+| existingSecret | string | `""` | Name of an existing secret that contains a SECRET_KEY and DATABASE_PASSWORD |
+| fullnameOverride | string | `""` | |
+| image.pullPolicy | string | `"IfNotPresent"` | |
+| image.repository | string | `"ghcr.io/projectcaluma/emeis"` | |
+| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
+| imagePullSecrets | list | `[]` | |
+| ingress.annotations | object | `{}` | |
+| ingress.className | string | `""` | |
+| ingress.enabled | bool | `false` | |
+| ingress.hosts[0].host | string | `"chart-example.local"` | |
+| ingress.hosts[0].paths[0].path | string | `"/emeis/api"` | |
+| ingress.hosts[0].paths[0].pathType | string | `"Prefix"` | |
+| ingress.hosts[0].paths[1].path | string | `"/emeis(/|$)(.*)"` | |
+| ingress.hosts[0].paths[1].pathType | string | `"ImplementationSpecific"` | |
+| ingress.tls | list | `[]` | |
+| nameOverride | string | `""` | |
+| nodeSelector | object | `{}` | |
+| podAnnotations | object | `{}` | |
+| podLabels | object | `{}` | |
+| podSecurityContext | object | `{}` | |
+| postgresql.auth.database | string | `"emeis"` | |
+| postgresql.auth.username | string | `"emeis"` | |
+| postgresql.enabled | bool | `true` | Disable the included PostgreSQL deployment for production |
+| postgresql.primary.initdb.scripts."create_extension_hstore.sh" | string | - | Load HSTORE extension |
+| replicaCount | int | `1` | How many emeis Pods to deploy |
+| resources | object | `{}` | |
+| securityContext | object | `{}` | |
+| service.port | int | `8000` | |
+| service.type | string | `"ClusterIP"` | |
+| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |
+| serviceAccount.automount | bool | `true` | Automatically mount a ServiceAccount's API credentials? |
+| serviceAccount.create | bool | `true` | Specifies whether a service account should be created |
+| serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
+| tolerations | list | `[]` | |
+| volumeMounts | list | `[]` | Additional volumeMounts on the output Deployment definition. |
+| volumes | list | `[]` | Additional volumes on the output Deployment definition. |
+
+----------------------------------------------
+Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
diff --git a/charts/emeis/templates/NOTES.txt b/charts/emeis/templates/NOTES.txt
new file mode 100644
index 0000000..a79a7c0
--- /dev/null
+++ b/charts/emeis/templates/NOTES.txt
@@ -0,0 +1,22 @@
+1. Get the application URL by running these commands:
+{{- if .Values.ingress.enabled }}
+{{- range $host := .Values.ingress.hosts }}
+ {{- range .paths }}
+ http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
+ {{- end }}
+{{- end }}
+{{- else if contains "NodePort" .Values.service.type }}
+ export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "emeis.fullname" . }})
+ export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
+ echo http://$NODE_IP:$NODE_PORT
+{{- else if contains "LoadBalancer" .Values.service.type }}
+ NOTE: It may take a few minutes for the LoadBalancer IP to be available.
+ You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "emeis.fullname" . }}'
+ export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "emeis.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
+ echo http://$SERVICE_IP:{{ .Values.service.port }}
+{{- else if contains "ClusterIP" .Values.service.type }}
+ export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "emeis.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
+ export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
+ echo "Visit http://127.0.0.1:8080 to use your application"
+ kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
+{{- end }}
diff --git a/charts/emeis/templates/_helpers.tpl b/charts/emeis/templates/_helpers.tpl
new file mode 100644
index 0000000..5ba8940
--- /dev/null
+++ b/charts/emeis/templates/_helpers.tpl
@@ -0,0 +1,101 @@
+{{/*
+Expand the name of the chart.
+*/}}
+{{- define "emeis.name" -}}
+{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Create a default fully qualified app name.
+We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
+If release name contains chart name it will be used as a full name.
+*/}}
+{{- define "emeis.fullname" -}}
+{{- if .Values.fullnameOverride }}
+{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- $name := default .Chart.Name .Values.nameOverride }}
+{{- if contains $name .Release.Name }}
+{{- .Release.Name | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
+{{- end }}
+{{- end }}
+{{- end }}
+
+{{/*
+Create chart name and version as used by the chart label.
+*/}}
+{{- define "emeis.chart" -}}
+{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Common labels
+*/}}
+{{- define "emeis.labels" -}}
+helm.sh/chart: {{ include "emeis.chart" . }}
+{{ include "emeis.selectorLabels" . }}
+{{- if .Chart.AppVersion }}
+app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
+{{- end }}
+app.kubernetes.io/managed-by: {{ .Release.Service }}
+{{- end }}
+
+{{/*
+Selector labels
+*/}}
+{{- define "emeis.selectorLabels" -}}
+app.kubernetes.io/name: {{ include "emeis.name" . }}
+app.kubernetes.io/instance: {{ .Release.Name }}
+{{- end }}
+
+{{/*
+Create the name of the service account to use
+*/}}
+{{- define "emeis.serviceAccountName" -}}
+{{- if .Values.serviceAccount.create }}
+{{- default (include "emeis.fullname" .) .Values.serviceAccount.name }}
+{{- else }}
+{{- default "default" .Values.serviceAccount.name }}
+{{- end }}
+{{- end }}
+
+{{/*
+Define the contents for the emeis ConfigMap
+*/}}
+{{- define "emeis.configMap" -}}
+ENV: {{ .Values.emeis.env | quote }}
+ALLOWED_HOSTS: {{ .Values.emeis.allowedHosts | quote }}
+ALLOW_ANONYMOUS_WRITE: {{ .Values.emeis.allowAnonymousWrite | quote }}
+LANGUAGES: {{ join "," .Values.emeis.languages | quote}}
+VISIBILITY_CLASSES: {{ .Values.emeis.visibilityClasses | quote }}
+PERMISSION_CLASSES: {{ .Values.emeis.permissionClasses | quote }}
+{{- if and .Values.postgresql.enabled .Values.emeis.postgresql.existingHost }}
+{{ fail "postgresql.enabled and emeis.postgresql.existingHost are mutually exclusive, please pick one" }}
+{{- end }}
+{{- if .Values.postgresql.enabled }}
+DATABASE_HOST: {{ template "emeis.fullname" . }}-postgresql
+{{- else if .Values.emeis.postgresql.existingHost }}
+DATABASE_HOST: {{ .Values.emeis.postgresql.existingHost | quote }}
+{{- else }}
+{{ fail "neither postgresql.enabled or emeis.postgresql.existingHost are set, please pick one" }}
+{{- end }}
+{{- if .Values.postgresql.enabled }}
+DATABASE_NAME: "{{ .Values.postgresql.auth.database }}"
+{{- else }}
+DATABASE_NAME: "{{ .Values.emeis.postgresql.database }}"
+{{- end }}
+{{- if .Values.postgresql.enabled }}
+DATABASE_USER: "{{ .Values.postgresql.auth.username }}"
+{{- else }}
+DATABASE_USER: "{{ .Values.emeis.postgresql.username }}"
+{{- end }}
+{{- end }}
+
+{{/*
+Define the contents for the emeis Secret
+*/}}
+{{- define "emeis.secret" -}}
+SECRET_KEY: {{ .Values.emeis.secretKey | b64enc | quote }}
+{{- end }}
diff --git a/charts/emeis/templates/configmap.yaml b/charts/emeis/templates/configmap.yaml
new file mode 100644
index 0000000..eb5feff
--- /dev/null
+++ b/charts/emeis/templates/configmap.yaml
@@ -0,0 +1,8 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ include "emeis.fullname" . }}
+ labels:
+ {{- include "emeis.labels" . | nindent 4 }}
+data:
+ {{- include "emeis.configMap" . | nindent 2 }}
diff --git a/charts/emeis/templates/deployment.yaml b/charts/emeis/templates/deployment.yaml
new file mode 100644
index 0000000..ffc0e6a
--- /dev/null
+++ b/charts/emeis/templates/deployment.yaml
@@ -0,0 +1,104 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ include "emeis.fullname" . }}
+ labels:
+ {{- include "emeis.labels" . | nindent 4 }}
+ annotations:
+ checksum/config: {{ include "emeis.configMap" . | sha256sum }}
+ checksum/secret: {{ include "emeis.secret" . | sha256sum }}
+spec:
+ {{- if not .Values.autoscaling.enabled }}
+ replicas: {{ .Values.replicaCount }}
+ {{- end }}
+ selector:
+ matchLabels:
+ {{- include "emeis.selectorLabels" . | nindent 6 }}
+ template:
+ metadata:
+ {{- with .Values.podAnnotations }}
+ annotations:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ labels:
+ {{- include "emeis.labels" . | nindent 8 }}
+ {{- with .Values.podLabels }}
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ spec:
+ {{- with .Values.imagePullSecrets }}
+ imagePullSecrets:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ serviceAccountName: {{ include "emeis.serviceAccountName" . }}
+ securityContext:
+ {{- toYaml .Values.podSecurityContext | nindent 8 }}
+ containers:
+ - name: {{ .Chart.Name }}
+ securityContext:
+ {{- toYaml .Values.securityContext | nindent 12 }}
+ image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ envFrom:
+ - configMapRef:
+ name: {{ include "emeis.fullname" . }}
+ {{- if .Values.existingSecret }}
+ - secretRef:
+ name: {{ .Values.existingSecret }}
+ {{- else }}
+ - secretRef:
+ name: {{ include "emeis.fullname" . }}
+ {{- end }}
+ env:
+ - name: DATABASE_PASSWORD
+ valueFrom:
+ secretKeyRef:
+ {{- if .Values.postgresql.enabled }}
+ name: "{{ template "emeis.fullname" . }}-postgresql"
+ key: password
+ {{- else }}
+ name: {{ .Values.existingSecret | quote }}
+ key: DATABASE_PASSWORD
+ {{- end }}
+ {{- if .Values.emeis.additionalEnvironmentVariables }}
+ {{ toYaml .Values.emeis.additionalEnvironmentVariables | nindent 12 }}
+ {{- end }}
+ ports:
+ - name: http
+ containerPort: {{ .Values.service.port }}
+ protocol: TCP
+ # TODO: we need a proper healthz endpoint to replace these woefully inadequate checks
+ livenessProbe:
+ tcpSocket:
+ port: http
+ #httpGet:
+ # path: /
+ # port: http
+ readinessProbe:
+ tcpSocket:
+ port: http
+ #httpGet:
+ # path: /
+ # port: http
+ resources:
+ {{- toYaml .Values.resources | nindent 12 }}
+ {{- with .Values.volumeMounts }}
+ volumeMounts:
+ {{- toYaml . | nindent 12 }}
+ {{- end }}
+ {{- with .Values.volumes }}
+ volumes:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ {{- with .Values.nodeSelector }}
+ nodeSelector:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ {{- with .Values.affinity }}
+ affinity:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ {{- with .Values.tolerations }}
+ tolerations:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
diff --git a/charts/emeis/templates/hpa.yaml b/charts/emeis/templates/hpa.yaml
new file mode 100644
index 0000000..a76e8b2
--- /dev/null
+++ b/charts/emeis/templates/hpa.yaml
@@ -0,0 +1,32 @@
+{{- if .Values.autoscaling.enabled }}
+apiVersion: autoscaling/v2
+kind: HorizontalPodAutoscaler
+metadata:
+ name: {{ include "emeis.fullname" . }}
+ labels:
+ {{- include "emeis.labels" . | nindent 4 }}
+spec:
+ scaleTargetRef:
+ apiVersion: apps/v1
+ kind: Deployment
+ name: {{ include "emeis.fullname" . }}
+ minReplicas: {{ .Values.autoscaling.minReplicas }}
+ maxReplicas: {{ .Values.autoscaling.maxReplicas }}
+ metrics:
+ {{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
+ - type: Resource
+ resource:
+ name: cpu
+ target:
+ type: Utilization
+ averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
+ {{- end }}
+ {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
+ - type: Resource
+ resource:
+ name: memory
+ target:
+ type: Utilization
+ averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
+ {{- end }}
+{{- end }}
diff --git a/charts/emeis/templates/ingress.yaml b/charts/emeis/templates/ingress.yaml
new file mode 100644
index 0000000..9923513
--- /dev/null
+++ b/charts/emeis/templates/ingress.yaml
@@ -0,0 +1,61 @@
+{{- if .Values.ingress.enabled -}}
+{{- $fullName := include "emeis.fullname" . -}}
+{{- $svcPort := .Values.service.port -}}
+{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
+ {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
+ {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
+ {{- end }}
+{{- end }}
+{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
+apiVersion: networking.k8s.io/v1
+{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
+apiVersion: networking.k8s.io/v1beta1
+{{- else -}}
+apiVersion: extensions/v1beta1
+{{- end }}
+kind: Ingress
+metadata:
+ name: {{ $fullName }}
+ labels:
+ {{- include "emeis.labels" . | nindent 4 }}
+ {{- with .Values.ingress.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+spec:
+ {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
+ ingressClassName: {{ .Values.ingress.className }}
+ {{- end }}
+ {{- if .Values.ingress.tls }}
+ tls:
+ {{- range .Values.ingress.tls }}
+ - hosts:
+ {{- range .hosts }}
+ - {{ . | quote }}
+ {{- end }}
+ secretName: {{ .secretName }}
+ {{- end }}
+ {{- end }}
+ rules:
+ {{- range .Values.ingress.hosts }}
+ - host: {{ .host | quote }}
+ http:
+ paths:
+ {{- range .paths }}
+ - path: {{ .path }}
+ {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
+ pathType: {{ .pathType }}
+ {{- end }}
+ backend:
+ {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
+ service:
+ name: {{ $fullName }}
+ port:
+ number: {{ $svcPort }}
+ {{- else }}
+ serviceName: {{ $fullName }}
+ servicePort: {{ $svcPort }}
+ {{- end }}
+ {{- end }}
+ {{- end }}
+{{- end }}
diff --git a/charts/emeis/templates/secret.yaml b/charts/emeis/templates/secret.yaml
new file mode 100644
index 0000000..6ba19d6
--- /dev/null
+++ b/charts/emeis/templates/secret.yaml
@@ -0,0 +1,10 @@
+{{- if not .Values.existingSecret }}
+apiVersion: v1
+kind: Secret
+metadata:
+ name: {{ include "emeis.fullname" . }}
+ labels:
+ {{- include "emeis.labels" . | nindent 4 }}
+data:
+ {{- include "emeis.secret" . | nindent 2 }}
+{{- end }}
diff --git a/charts/emeis/templates/service.yaml b/charts/emeis/templates/service.yaml
new file mode 100644
index 0000000..881030f
--- /dev/null
+++ b/charts/emeis/templates/service.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "emeis.fullname" . }}
+ labels:
+ {{- include "emeis.labels" . | nindent 4 }}
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ - port: {{ .Values.service.port }}
+ targetPort: http
+ protocol: TCP
+ name: http
+ selector:
+ {{- include "emeis.selectorLabels" . | nindent 4 }}
diff --git a/charts/emeis/templates/serviceaccount.yaml b/charts/emeis/templates/serviceaccount.yaml
new file mode 100644
index 0000000..f4ea9a9
--- /dev/null
+++ b/charts/emeis/templates/serviceaccount.yaml
@@ -0,0 +1,13 @@
+{{- if .Values.serviceAccount.create -}}
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: {{ include "emeis.serviceAccountName" . }}
+ labels:
+ {{- include "emeis.labels" . | nindent 4 }}
+ {{- with .Values.serviceAccount.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
+{{- end }}
diff --git a/charts/emeis/values.yaml b/charts/emeis/values.yaml
new file mode 100644
index 0000000..b4d25f3
--- /dev/null
+++ b/charts/emeis/values.yaml
@@ -0,0 +1,146 @@
+# Default values for emeis.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+# -- How many emeis Pods to deploy
+replicaCount: 1
+
+image:
+ repository: ghcr.io/projectcaluma/emeis
+ pullPolicy: IfNotPresent
+ # -- Overrides the image tag whose default is the chart appVersion.
+ tag: ""
+
+imagePullSecrets: []
+nameOverride: ""
+fullnameOverride: ""
+
+serviceAccount:
+ # -- Specifies whether a service account should be created
+ create: true
+ # -- Automatically mount a ServiceAccount's API credentials?
+ automount: true
+ # -- Annotations to add to the service account
+ annotations: {}
+ # -- The name of the service account to use.
+ # If not set and create is true, a name is generated using the fullname template
+ name: ""
+
+podAnnotations: {}
+podLabels: {}
+
+podSecurityContext: {}
+ # fsGroup: 2000
+
+securityContext: {}
+ # capabilities:
+ # drop:
+ # - ALL
+ # readOnlyRootFilesystem: true
+ # runAsNonRoot: true
+ # runAsUser: 1000
+
+service:
+ type: ClusterIP
+ port: 8000
+
+ingress:
+ enabled: false
+ className: ""
+ annotations: {}
+ # kubernetes.io/ingress.class: nginx
+ # kubernetes.io/tls-acme: "true"
+ hosts:
+ - host: chart-example.local
+ paths:
+ - path: /emeis/api
+ pathType: Prefix
+ - path: /emeis(/|$)(.*)
+ pathType: ImplementationSpecific
+ tls: []
+ # - secretName: chart-example-tls
+ # hosts:
+ # - chart-example.local
+
+resources: {}
+ # We usually recommend not to specify default resources and to leave this as a conscious
+ # choice for the user. This also increases chances charts run on environments with little
+ # resources, such as Minikube. If you do want to specify resources, uncomment the following
+ # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
+ # limits:
+ # cpu: 100m
+ # memory: 128Mi
+ # requests:
+ # cpu: 100m
+ # memory: 128Mi
+
+autoscaling:
+ enabled: false
+ minReplicas: 1
+ maxReplicas: 100
+ targetCPUUtilizationPercentage: 80
+ # targetMemoryUtilizationPercentage: 80
+
+# -- Additional volumes on the output Deployment definition.
+volumes: []
+# - name: foo
+# secret:
+# secretName: mysecret
+# optional: false
+
+# -- Additional volumeMounts on the output Deployment definition.
+volumeMounts: []
+# - name: foo
+# mountPath: "/etc/foo"
+# readOnly: true
+
+nodeSelector: {}
+
+tolerations: []
+
+affinity: {}
+
+# -- Name of an existing secret that contains a SECRET_KEY and DATABASE_PASSWORD
+existingSecret: ""
+
+emeis:
+ env: production
+ secretKey: ""
+ allowedHosts: "*"
+ allowAnonymousWrite: "true"
+ languages:
+ - de
+ - en
+ visibilityClasses: ""
+ permissionClasses: ""
+ postgresql:
+ # -- Gets used when postgresql.enabled = false
+ username: ""
+ # -- Gets used when postgresql.enabled = false
+ existingHost: ""
+ # -- Gets used when postgresql.enabled = false
+ database: ""
+ additionalEnvironmentVariables: []
+
+postgresql:
+ # -- Disable the included PostgreSQL deployment for production
+ enabled: true
+ auth:
+ database: emeis
+ username: emeis
+ primary:
+ initdb:
+ scripts:
+ # -- Load HSTORE extension
+ # @default -- -
+ create_extension_hstore.sh: |
+ # !/bin/sh
+ #
+ # This script is being used to temporarily switch socket connections to trusted
+ # to enable the hstore extension in the database above.
+ set -xeuf -o pipefail
+ sed -E -i 's/local +all +all +md5/local all all trust/' /opt/bitnami/postgresql/conf/pg_hba.conf
+ pg_ctl reload
+ psql --username=postgres --dbname="${POSTGRES_DATABASE}" --command 'CREATE EXTENSION IF NOT EXISTS hstore;' --echo-errors
+ sed -E -i 's/local +all +all +trust/local all all md5/' /opt/bitnami/postgresql/conf/pg_hba.conf
+ pg_ctl reload