o-neko

by subshell GmbH

Helm chartv2.5.7App 1.8.2Verified publisher

A Helm chart for O-Neko

About this chart

O-Neko

O-Neko lets everyone preview and try out new features of your software by creating on-demand test environments for feature branches. O-Neko is Kubernetes-native and allows for flexible project configurations via Helm charts. Make sure developers, testers, project managers, product owners and clients are on the same page! Preview and test before you merge!

O-Neko on GitHub

TL;DR

$ helm repo add subshell-public https://subshell.github.io/helm-charts
$ helm install my-release subshell-public/o-neko

Introduction

This chart installs O-Neko in Kubernetes using Helm.

Requirements

For O-Neko to work properly you will need a running MongoDB instance.

To install O-Neko using this Helm chart you will need to create three secrets using your favorite method of doing it:

A secret containing the MongoDB credentials, e.g.:

kubectl create secret generic mongodb-credentials --from-literal=mongodb-password="SECRET" --from-literal=mongodb-root-password="SECRET" --from-literal=mongodb-replica-set-key="SECRET"

A "credentialsCoderKey" secret used for symmetrical encryption of sensitive data in the database, e.g.:

kubectl create secret generic o-neko-credentials-coder-key --from-literal=key="SECRET"

A secret containing the MongoDB URI (incl. the MongoDB password), e.g.:

kubectl create secret generic oneko-mongodb-uri --from-literal=uri="mongodb://o-neko:[email protected]:27017,o-neko-db-mongodb-1.mongodb-headless:27017,o-neko-db-mongodb-2.mongodb-headless:27017/o-neko?"

Parameters

Common parameters

NameDescriptionValue
nameOverrideString to partially override the name""
fullnameOverrideString to fully override the release name""
imagePullSecretsDocker registry secret names as an array[]
javaOptionsString with Java VM Options passed to the application-XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=80.0 -XX:+ExitOnOutOfMemoryError -XX:+PerfDisableSharedMem
hostAliasesHost aliases available to the applicationnil
resources.limitsThe resource limits for the container{}
resources.requestsThe resource requests for the container{}

O-Neko parameters

NameDescriptionValue
oneko.image.nameO-Neko image repositorysubshellgmbh/o-neko
oneko.image.tagO-Neko image tag1.8.0
oneko.image.imagePullPolicyImage Pull PolicyIfNotPresent
oneko.envarray of environment variables passed to the container
oneko.env[0].namedefault environment variable name for activation json loggingSPRING_PROFILES_ACTIVE
oneko.env[0].valuename of the Spring profile used to activate json loggingjson-logs
oneko.helm.gcs.secret.nameThe secret name of the Google Service Account used, if using Helm GCSnil
oneko.helm.gcs.secret.serviceAccountFieldThe field in the secret of the Google Service Accountnil
oneko.mongodb.secret.nameName of the secret holding the MongoDB connection URInil
oneko.mongodb.secret.uriFieldName of the field in the secret containing the MongoDB URIuri
oneko.credentialsCoderKeySecret.nameName of the secretnil
oneko.credentialsCoderKeySecret.fieldNameName of the field in the secretkey
oneko.configThe application.yaml containing the O-Neko application configuration

Probes

NameDescriptionValue
startupProbe.failureThresholdFailure threshold for startupProbe10
startupProbe.initialDelaySecondsInitial delay seconds for startupProbe10
startupProbe.timeoutSecondsTimeout seconds for startupProbe1
startupProbe.periodSecondsPeriod seconds for startupProbe2
readinessProbe.failureThresholdFailure threshold for readinessProbe3
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe5
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe5
readinessProbe.periodSecondsPeriod seconds for readinessProbe5
livenessProbe.failureThresholdFailure threshold for livenessProbe3
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe15
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe10
livenessProbe.periodSecondsPeriod seconds for livenessProbe60

Traffic Exposure parameters

NameDescriptionValue
service.annotationsannotations for the service{}
service.typeKubernetes service typenil
service.sessionAffinitythe service's sessionAffinityNone
service.sessionAffinityConfigadditional sessionAffinity configuration{}
service.loadBalancerIPA loadBalancerIP configurationnil
service.clusterIPThe service's clusterIPnil
ingress.ingressClassNamename of the ingressClass used for the ingressnil
ingress.hostsArray with hostnames used for the ingressnil
ingress.tlsTLS configuration of the ingress as an arraynil
ingress.annotationsannotations for the ingress{}

Metrics

NameDescriptionValue
serviceMonitor.enabledWhether the serviceMonitor resource should be deployedfalse
serviceMonitor.intervalPrometheus scrape interval10s
serviceMonitor.pathHTTP path prometheus should use to scrape the application's metrics/actuator/prometheus

Deploy o-neko with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has o-neko 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 charto-neko is pinned at v2.5.7 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