nedb-classic

by joaquinito2051

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

RepositoryNameVersion
https://charts.bitnami.com/bitnamicommon2.x.x
https://charts.bitnami.com/bitnamipostgresql15.x
https://grafana.github.io/helm-chartsgrafana7.x.x
https://prometheus-community.github.io/helm-chartsprometheus25.x.x

Values

KeyTypeDefaultDescription
binaryConfigurationFilesobject{}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"
configurationFilesPathstring"/app/conf"Custom configuration files used to override default settings
diagnosticModeobject{"args":["infinity"],"command":["sleep"],"enabled":false}Enable diagnostic mode in the statefulset
diagnosticMode.argslist["infinity"]@param diagnosticMode.args Args to override all containers in the statefulset
diagnosticMode.commandlist["sleep"]@param diagnosticMode.command Command to override all containers in the statefulset
diagnosticMode.enabledboolfalse@param diagnosticMode.enabled Enable diagnostic mode (all probes will be disabled and the command will be overridden)
extraEnvlist`[{"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":".*(enrichrecord
extraVolumeMountslist[]Add extra volume mounts to the application's pod Example: extraVolumeMounts: - name: my-volume mountPath: /opt/nextevolution/nedb/my-stuff
extraVolumeslist[]Add extra volumes to the application's pod Example: extraVolumes: - name: my-volume emptyDir: {}
global.imagePullSecrets[0]string"nextevolution"
grafana.adminPasswordstring"nedb"
grafana.adminUserstring"admin"
grafana.dashboardProviders."dashboardproviders.yaml".apiVersionint1
grafana.dashboardProviders."dashboardproviders.yaml".providers[0].disableDeletionboolfalse
grafana.dashboardProviders."dashboardproviders.yaml".providers[0].editablebooltrue
grafana.dashboardProviders."dashboardproviders.yaml".providers[0].folderstring""
grafana.dashboardProviders."dashboardproviders.yaml".providers[0].namestring"default"
grafana.dashboardProviders."dashboardproviders.yaml".providers[0].options.pathstring"/var/lib/grafana/dashboards/default"
grafana.dashboardProviders."dashboardproviders.yaml".providers[0].orgIdint1
grafana.dashboardProviders."dashboardproviders.yaml".providers[0].typestring"file"
grafana.datasources."datasources.yaml".apiVersionint1
grafana.datasources."datasources.yaml".datasources[0].accessstring"proxy"
grafana.datasources."datasources.yaml".datasources[0].isDefaultbooltrue
grafana.datasources."datasources.yaml".datasources[0].namestring"Databridge Prometheus Server"
grafana.datasources."datasources.yaml".datasources[0].typestring"prometheus"
grafana.datasources."datasources.yaml".datasources[0].urlstring"http://prometheus-server"
grafana.enabledboolfalse
grafana.rbac.createboolfalse
image.pullPolicystring"IfNotPresent"
image.repositorystring"docker-proxy.nextevolution.de/product/nedatabridge/nedb-data-connect-kafka/main"
image.tagstring"latest"
ingressobject{"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.annotationsobject{}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.apiVersionstringnilOverride API Version (automatically detected if not set)
ingress.certManagerboolfalseSet this to true in order to add the corresponding annotations for cert-manager
ingress.enabledboolfalseSet to true to enable ingress record generation
ingress.hostnamestring"nedb.local"When the ingress is enabled, a host pointing to this will be created
ingress.pathstring"/"The Path to NE.DB. You may need to set this to '/*' in order to use this with ALB ingress controllers.
ingress.pathTypestring"Prefix"Ingress Path type
ingress.secretslist[]---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.tlsboolfalseEnable 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
initContainerslist[]Extra init containers Example initContainers: - name: do-something image: busybox command: ['do', 'something']
livenessProbe.enabledbooltrue
livenessProbe.failureThresholdint3
livenessProbe.initialDelaySecondsint5
livenessProbe.pathstring"/actuator/health/liveness"
livenessProbe.periodSecondsint5
livenessProbe.successThresholdint1
livenessProbe.timeoutSecondsint3
persistenceobject{"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.existingClaimstring""A manually managed Persistent Volume and Claim Requires persistence.enabled: true If defined, PVC must be created manually before volume will be bound
persistence.mountPathstring"/app/data"The path the volume will be mounted at, useful when using different PostgreSQL images.
persistence.storageClassstring""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.subPathstring""The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services.
podSecurityContextobject{}databridge pod securityContext (applies to container securityContext)
postgresql.enabledboolfalse
postgresql.persistence.sizestring"8Gi"
postgresql.persistence.storageClassstringnil
postgresql.postgresqlDatabasestring"nedb"
postgresql.postgresqlPasswordstring"password"
postgresql.postgresqlPortint5432
postgresql.postgresqlUsernamestring"nedb"
postgresql.resources.limits.memorystring"2048Mi"
postgresql.securityContextobject{}
postgresql.volumePermissions.securityContextobject{}
prometheus.enabledboolfalse
readinessProbe.enabledbooltrue
readinessProbe.failureThresholdint3
readinessProbe.initialDelaySecondsint5
readinessProbe.pathstring"/actuator/health/readiness"
readinessProbe.periodSecondsint5
readinessProbe.successThresholdint1
readinessProbe.timeoutSecondsint3
replicaCountint1
resources.limitsobject{"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.cpustring"100m"
resources.requests.memorystring"512Mi"
route.enabledboolfalse
route.hostnamestring""
securityContextobject{}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.enabledbooltrue
service.portint8080
service.typestring"ClusterIP"
serviceAccountobject{"annotations":{},"create":false}application's pods ServiceAccount ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
serviceAccount.annotationsobject{}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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnedb-classic is pinned at v0.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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