nedb-classic
Helm chartv0.3.1App 1.0
A Helm chart for NE.Databridge Classic Deployments
About this chart
nedb-classic
A Helm chart for NE.Databridge Classic Deployments
Requirements
Kubernetes: >= 1.23.15 < 1.30.0
| Repository | Name | Version |
|---|---|---|
| https://charts.bitnami.com/bitnami | common | 2.x.x |
| https://charts.bitnami.com/bitnami | postgresql | 15.x |
| https://grafana.github.io/helm-charts | grafana | 7.x.x |
| https://prometheus-community.github.io/helm-charts | prometheus | 25.x.x |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| binaryConfigurationFiles | object | {} | Add/replace NE.Databridge binary configuration files Example binaryConfigurationFiles: cacerts: data: |
| configurationFiles."application.yml" | string | "#nedb\ndebug: false\nlogging:\n level:\n root: ERROR\n de.nextevolution: INFO\n\nserver:\n servlet:\n context-path: '/'\n port: 8080\n\nmanagement:\n endpoints:\n web:\n exposure:\n include: env,health,info,loggers,prometheus\n endpoint:\n health:\n show-details: always\n probes:\n enabled: true\n health:\n livenessState:\n enabled: true\n readinessState:\n enabled: true\n\nspring:\n # main:\n # web-application-type: 'servlet'\n jmx:\n enabled: true\n# required kpi setting to prevent error:\n# Parameter 0 of constructor in de.nextevolution.event.aspect.SpringKpiEventAspect required a bean of type 'de.nextevolution.monitor.SpringKpiMonitorConfig' that could not be found.\nkpi:\n monitoring:\n enabled: true\n micrometer:\n class: de.nextevolution.kpi.micrometer.MicrometerKpiPublisher\n description: eval:nedb#%SERVICE_NAME%\n tag:\n service: eval:%SERVICE_NAME%\n hostname: eval:%HOSTNAME:or:COMPUTER_NAME%\n tier: test\n filter: .*\n interval: 10\n slices: 30\n\nnedb:\n springbridge:\n scope: \"*\"\n # translate:\n # - \"nedb.worker.module-threads:ne.databridge.moduleWorkerCount\"\n # - \"nedb.worker.worker-threads:ne.databridge.processingWorkerCount\"\n # assign:\n # - \"ne.databridge:databridge\"\n # - \"default.message:databridge\"\n # - \"default.converter:databridge\"\n # - \"default.constraint:databridge\"\n # - \"default.constraint:databridge\"\n # default:\n # converter:\n # - trim: de.nextevolution.databridge.converter.TrimConverter[optional=false]\n\n rest:\n attachmentField: \"_ATTACHMENTS\"\n resultField: \"_RESULTS\"\n maxQueueSize: 200\n worker:\n module-threads: 2\n worker-threads: 4" | |
| configurationFiles."log4j.properties" | string | "log4j.rootLogger=INFO, CONSOLE\n\nlog4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender\nlog4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout\nlog4j.appender.CONSOLE.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%-5p] %c: %X{LOGID} %m%n\nlog4j.appender.CONSOLE.Threshold=INFO" | |
| configurationFilesPath | string | "/app/conf" | Custom configuration files used to override default settings |
| diagnosticMode | object | {"args":["infinity"],"command":["sleep"],"enabled":false} | Enable diagnostic mode in the statefulset |
| diagnosticMode.args | list | ["infinity"] | @param diagnosticMode.args Args to override all containers in the statefulset |
| diagnosticMode.command | list | ["sleep"] | @param diagnosticMode.command Command to override all containers in the statefulset |
| diagnosticMode.enabled | bool | false | @param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden) |
| extraEnv | list | `[{"name":"JAVA_OPTS","value":"-Xms1024m -Xmx1800m"},{"name":"SPRING_CONFIG_LOCATION","value":"/app/conf/application.yml"},{"name":"NE_HOME","value":"/app"},{"name":"NE_DATABRIDGE_MODULEWORKERCOUNT","value":"10"},{"name":"NE_DATABRIDGE_PROCESSINGWORKERCOUNT","value":"10"},{"name":"KPI_MONITORING","value":"on"},{"name":"KPI_MONITORING_SMALL","value":"1"},{"name":"KPI_MONITORING_MEDIUM","value":"1"},{"name":"KPI_MONITORING_LARGE","value":"1"},{"name":"KPI_MONITORING_PORT","value":"off"},{"name":"KPI_MICROMETER_CLASS","value":"de.nextevolution.kpi.micrometer.MicrometerKpiPublisher"},{"name":"KPI_MICROMETER_DESCRIPTION","value":"eval:nedb#%SERVICE_NAME%"},{"name":"KPI_MICROMETER_TAG_SERVICE","value":"%SERVICE_NAME%"},{"name":"KPI_MICROMETER_TAG_HOSTNAME","value":"%HOSTNAME:or:COMPUTER_NAME%"},{"name":"KPI_MICROMETER_TAG_TIER","value":"test"},{"name":"KPI_MICROMETER_FILTER","value":".*(enrich | record |
| extraVolumeMounts | list | [] | Add extra volume mounts to the application's pod Example: extraVolumeMounts: - name: my-volume mountPath: /opt/nextevolution/nedb/my-stuff |
| extraVolumes | list | [] | Add extra volumes to the application's pod Example: extraVolumes: - name: my-volume emptyDir: {} |
| global.imagePullSecrets[0] | string | "nextevolution" | |
| grafana.adminPassword | string | "nedb" | |
| grafana.adminUser | string | "admin" | |
| grafana.dashboardProviders."dashboardproviders.yaml".apiVersion | int | 1 | |
| grafana.dashboardProviders."dashboardproviders.yaml".providers[0].disableDeletion | bool | false | |
| grafana.dashboardProviders."dashboardproviders.yaml".providers[0].editable | bool | true | |
| grafana.dashboardProviders."dashboardproviders.yaml".providers[0].folder | string | "" | |
| grafana.dashboardProviders."dashboardproviders.yaml".providers[0].name | string | "default" | |
| grafana.dashboardProviders."dashboardproviders.yaml".providers[0].options.path | string | "/var/lib/grafana/dashboards/default" | |
| grafana.dashboardProviders."dashboardproviders.yaml".providers[0].orgId | int | 1 | |
| grafana.dashboardProviders."dashboardproviders.yaml".providers[0].type | string | "file" | |
| grafana.datasources."datasources.yaml".apiVersion | int | 1 | |
| grafana.datasources."datasources.yaml".datasources[0].access | string | "proxy" | |
| grafana.datasources."datasources.yaml".datasources[0].isDefault | bool | true | |
| grafana.datasources."datasources.yaml".datasources[0].name | string | "Databridge Prometheus Server" | |
| grafana.datasources."datasources.yaml".datasources[0].type | string | "prometheus" | |
| grafana.datasources."datasources.yaml".datasources[0].url | string | "http://prometheus-server" | |
| grafana.enabled | bool | false | |
| grafana.rbac.create | bool | false | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "docker-proxy.nextevolution.de/product/nedatabridge/nedb-data-connect-kafka/main" | |
| image.tag | string | "latest" | |
| ingress | object | {"annotations":{},"apiVersion":null,"certManager":false,"enabled":false,"hostname":"nedb.local","path":"/","pathType":"Prefix","secrets":[],"tls":false} | Configure the ingress resource that allows you to access the NE.DB installation. Set up the URL ref: http://kubernetes.io/docs/user-guide/ingress/ |
| ingress.annotations | object | {} | Ingress annotations done as key:value pairs For a full list of possible ingress annotations, please see ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/nginx-configuration/annotations.md If certManager is set to true, annotation kubernetes.io/tls-acme: "true" will automatically be set |
| ingress.apiVersion | string | nil | Override API Version (automatically detected if not set) |
| ingress.certManager | bool | false | Set this to true in order to add the corresponding annotations for cert-manager |
| ingress.enabled | bool | false | Set to true to enable ingress record generation |
| ingress.hostname | string | "nedb.local" | When the ingress is enabled, a host pointing to this will be created |
| ingress.path | string | "/" | The Path to NE.DB. You may need to set this to '/*' in order to use this with ALB ingress controllers. |
| ingress.pathType | string | "Prefix" | Ingress Path type |
| ingress.secrets | list | [] | ---BEGIN RSA PRIVATE KEY----- name should line up with a tlsSecret set further up If you're using cert-manager, this is unneeded, as it will create the secret for you if it is not set It is also possible to create and manage the certificates outside of this helm chart Please see README.md for more information |
| ingress.tls | bool | false | Enable TLS configuration for the hostname defined at ingress.hostname parameter TLS certificates will be retrieved from a TLS secret with name: {{- printf "%s-tls" .Values.ingress.hostname }} You can use the ingress.secrets parameter to create this TLS secret or relay on cert-manager to create it |
| initContainers | list | [] | Extra init containers Example initContainers: - name: do-something image: busybox command: ['do', 'something'] |
| livenessProbe.enabled | bool | true | |
| livenessProbe.failureThreshold | int | 3 | |
| livenessProbe.initialDelaySeconds | int | 5 | |
| livenessProbe.path | string | "/actuator/health/liveness" | |
| livenessProbe.periodSeconds | int | 5 | |
| livenessProbe.successThreshold | int | 1 | |
| livenessProbe.timeoutSeconds | int | 3 | |
| persistence | object | {"VolumeName":"","accessMode":"ReadWriteOnce","annotations":{},"enabled":false,"existingClaim":"","mountPath":"/app/data","size":"100Gi","storageClass":"","subPath":""} | Enable persistence using Persistent Volume Claims ref: http://kubernetes.io/docs/user-guide/persistent-volumes/ |
| persistence.existingClaim | string | "" | A manually managed Persistent Volume and Claim Requires persistence.enabled: true If defined, PVC must be created manually before volume will be bound |
| persistence.mountPath | string | "/app/data" | The path the volume will be mounted at, useful when using different PostgreSQL images. |
| persistence.storageClass | string | "" | Persistent Volume Storage Class If defined, storageClassName: If set to "-", storageClassName: "", which disables dynamic provisioning If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner. (gp2 on AWS, standard on GKE, AWS & OpenStack) Storage class of PV to bind. By default it looks for standard storage class. If the PV uses a different storage class, specify that here. |
| persistence.subPath | string | "" | The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services. |
| podSecurityContext | object | {} | databridge pod securityContext (applies to container securityContext) |
| postgresql.enabled | bool | false | |
| postgresql.persistence.size | string | "8Gi" | |
| postgresql.persistence.storageClass | string | nil | |
| postgresql.postgresqlDatabase | string | "nedb" | |
| postgresql.postgresqlPassword | string | "password" | |
| postgresql.postgresqlPort | int | 5432 | |
| postgresql.postgresqlUsername | string | "nedb" | |
| postgresql.resources.limits.memory | string | "2048Mi" | |
| postgresql.securityContext | object | {} | |
| postgresql.volumePermissions.securityContext | object | {} | |
| prometheus.enabled | bool | false | |
| readinessProbe.enabled | bool | true | |
| readinessProbe.failureThreshold | int | 3 | |
| readinessProbe.initialDelaySeconds | int | 5 | |
| readinessProbe.path | string | "/actuator/health/readiness" | |
| readinessProbe.periodSeconds | int | 5 | |
| readinessProbe.successThreshold | int | 1 | |
| readinessProbe.timeoutSeconds | int | 3 | |
| replicaCount | int | 1 | |
| resources.limits | object | {"cpu":"1000m","memory":"1Gi"} | 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:'. |
| resources.requests.cpu | string | "100m" | |
| resources.requests.memory | string | "512Mi" | |
| route.enabled | bool | false | |
| route.hostname | string | "" | |
| securityContext | object | {} | databridge container securityContext |
| service.annotations."prometheus.io/path" | string | "/actuator/prometheus" | |
| service.annotations."prometheus.io/port" | string | "8080" | |
| service.annotations."prometheus.io/scrape" | string | "true" | |
| service.enabled | bool | true | |
| service.port | int | 8080 | |
| service.type | string | "ClusterIP" | |
| serviceAccount | object | {"annotations":{},"create":false} | application's pods ServiceAccount ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ |
| serviceAccount.annotations | object | {} | The name of the ServiceAccount to |
Deploy nedb-classic with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nedb-classic on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartnedb-classic is pinned at v0.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply