Repository navigation
Move side services out of add-on resourceDefinitions into companion apps; drop privileged (#136) - #137
Merged
Conversation
kubero-server only accepts add-on catalog kinds (plus Secret/ConfigMap) in
addons[].resourceDefinitions and refuses host-access fields, so these
templates failed validation on dedicated clusters and their side services
never ran on the shared tier. Each side service is now its own
templateServices companion app, reached as
<nameHint>-{{KUBERO_NAME_SUFFIX}}-kuberoapp on port 80 and, where it needs
the database, bound to the primary's add-ons with usePrimaryAddons.
- n8n: SearXNG becomes the n8n-searxng companion (writes a settings.yml
that enables the JSON API). The code sandbox (privileged Docker-in-Docker
runner) is dropped and N8N_INSTANCE_AI_SANDBOX_ENABLED is false.
- cryptomator: Keycloak becomes the cryptomator-keycloak companion (seed
realm passed as an env var, PG contract env, generated admin password);
Hub datasource credentials use $(PGUSER)/$(PGPASSWORD).
- dittofeed: Temporal becomes the dittofeed-temporal companion on the PG
contract (no superuser literal); the CNPG role gets CREATEDB.
- langfuse: MinIO becomes the langfuse-minio companion on a volume, with a
generated root password shared with Langfuse.
- posthog: Redpanda becomes the posthog-kafka companion.
- unomi: Elasticsearch becomes the unomi-elasticsearch companion without
the privileged sysctl / chown init containers (single-node, mmap off);
the placeholder Valkey add-on that carried it is removed.
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #136 (the "test install" checkbox is still open, so this doesn't close it).
Why
n8n, cryptomator, dittofeed, langfuse, posthog and unomi baked extra Deployments, Services or PVCs into an add-on's
resourceDefinitions. The server accepts only the add-on's own resource there:privileged: truecontainers.How the side services are wired now
Each side service is its own companion app (
templateServices, the pattern Supabase, Plane and the n8n worker already use):http://<nameHint>-{{KUBERO_NAME_SUFFIX}}-kuberoappon port 80.usePrimaryAddons: true.{{KUBERO_GEN_ALNUM:n}}env var in both apps.<name>-api-<suffix>.Per template
n8n-searxng(pinned2026.10.17-1c10abe2d, JSON API on)privileged.N8N_INSTANCE_AI_SANDBOX_ENABLED=false; the AI Assistant works without code execution.cryptomator-keycloak--optimizedandKC_HOSTNAME_BACKCHANNEL_DYNAMIC(Keycloak 26 refuses it without a hostname). The Hub's database credentials now use the injected$(PGUSER)/$(PGPASSWORD).dittofeed-temporal(temporalio/auto-setup:1.22.4)temporal/temporal_visibilitydatabases (the app user getsCREATEDB).langfuse-minio(5Gi volume)LANGFUSE_MINIO_PASSWORDreplaceschangeme.posthog-kafka(v25.1.9)posthog-kafka:9092, but the Service was named<app>-kafka.unomi-elasticsearch(9.1.3, single-node, mmap off, 256m heap, 2Gi)sysctland rootchowninit containers are gone. The fake "Elasticsearch" add-on (really an unused Valkey) is removed.Validation
mainonly these 6 templates fail; on this branch 0 of 301 files fail. No other template violates.dev'svalidateAddonResourceDefinitionsandappSecurityContextViolations, run against every template, companions included:mainfails 6 of 300, this branch 0 of 300.lint-template-addons.pypasses.migrate-to-communal-db-env.py --checkreports the same 6 known failures as before (none added).Known gaps (filed separately)
keycloakdatabase, andHUB_KEYCLOAK_PUBLIC_URLmust be set after deploy.CREATEDB, which shared zones may not allow.