From a5cbf544416c73a0c5b047afb987dac6a7eb0bd8 Mon Sep 17 00:00:00 2001 From: Adam Kamali Date: Wed, 21 Oct 2026 01:29:09 +0000 Subject: [PATCH] templates: size heavy companions, state plane's exposure (#138) templateServices[].size (a pod size of the platform catalog) for the companions the default leaves short: cryptomator's Keycloak, unomi's Elasticsearch, posthog's worker/ingestion/plugins and langfuse's worker (all medium). Platforms that predate the field ignore it. plane says exposeInternet: false on its primary (the proxy is the public entry); dashboards that predate the field keep the api internal through the proxy's own flags. cryptomator's comment now describes the rule; its Keycloak stays unset (public) on purpose. Agent: claude Co-Authored-By: Claude Opus 5.5 --- services/cryptomator/app.yaml | 10 +++++++--- services/langfuse/app.yaml | 1 + services/plane/app.yaml | 4 ++++ services/posthog/app.yaml | 3 +++ services/unomi/app.yaml | 8 ++++++-- 5 files changed, 21 insertions(+), 5 deletions(-) diff --git a/services/cryptomator/app.yaml b/services/cryptomator/app.yaml index 0fa4aed5..5d735a3e 100644 --- a/services/cryptomator/app.yaml +++ b/services/cryptomator/app.yaml @@ -165,13 +165,17 @@ spec: # the add-on's initdb creates. The command writes the seed realm from # CRYPTOMATOR_REALM_JSON into Keycloak's import folder, then starts it # (the image ships bash, which kc.sh needs anyway). - # exposeInternet is left unset on purpose: the dashboard then gives this - # companion its own public URL (browsers must reach Keycloak to sign in) - # without making it the group's public entry, so the Hub stays public too. + # Public, like the Hub: a web service whose exposeInternet is unset gets + # its own public URL (browsers must reach Keycloak to sign in). Leave it + # unset rather than `true`: dashboards that predate stack-templates#138 + # read a companion's `true` as "this is the group's entry" and hide the Hub. + # `size` names a pod size of the platform catalog (requests/limits, still + # capped by the plan); Keycloak's JVM needs more than the default. templateServices: - id: keycloak nameHint: cryptomator-keycloak serviceType: web + size: medium usePrimaryAddons: true image: repository: ghcr.io/cryptomator/keycloak diff --git a/services/langfuse/app.yaml b/services/langfuse/app.yaml index d6db6630..282d72a1 100644 --- a/services/langfuse/app.yaml +++ b/services/langfuse/app.yaml @@ -330,6 +330,7 @@ spec: - id: worker nameHint: langfuse-worker serviceType: worker + size: medium exposeInternet: false image: repository: ghcr.io/langfuse/langfuse-worker diff --git a/services/plane/app.yaml b/services/plane/app.yaml index 9d61e866..05d3e160 100644 --- a/services/plane/app.yaml +++ b/services/plane/app.yaml @@ -297,6 +297,10 @@ spec: run: securityContext: readOnlyRootFilesystem: false + # The api is internal: the proxy below is the group's public entry. Read by + # dashboards from stack-templates#138 on; older ones keep the api internal + # because of the proxy's own flags. + exposeInternet: false # Catalog-only (not written to the KuberoApp CR). Dashboard expands these into # docker multi-app cards; addons stay on the primary api card above. # exposeInternet:false → web replicas, no Ingress (proxy is the public entry). diff --git a/services/posthog/app.yaml b/services/posthog/app.yaml index acede124..5e2406dc 100644 --- a/services/posthog/app.yaml +++ b/services/posthog/app.yaml @@ -365,6 +365,7 @@ spec: - id: worker nameHint: posthog-worker serviceType: worker + size: medium exposeInternet: false image: repository: ghcr.io/posthog/posthog @@ -383,6 +384,7 @@ spec: - id: ingestion nameHint: posthog-ingestion serviceType: worker + size: medium exposeInternet: false image: repository: ghcr.io/posthog/posthog-node @@ -412,6 +414,7 @@ spec: - id: plugins nameHint: posthog-plugins serviceType: web + size: medium exposeInternet: false image: repository: ghcr.io/posthog/posthog-node diff --git a/services/unomi/app.yaml b/services/unomi/app.yaml index e49add74..c9fa5748 100644 --- a/services/unomi/app.yaml +++ b/services/unomi/app.yaml @@ -101,12 +101,16 @@ spec: # mmap is turned off so the node's default max_map_count is enough. The # chown init container is not needed either: app pods run with fsGroup # 1000, the image's user. Settings use the image's ES_SETTING_* env form - # (a double underscore is a literal underscore). Heap is kept small for the - # default service size; raise ES_JAVA_OPTS together with the service size. + # (a double underscore is a literal underscore). `size` names a pod size + # of the platform catalog: the extra memory beyond the heap goes to the + # filesystem cache. The heap stays small so it also fits plans whose + # per-service ceiling is 1 GiB; raise ES_JAVA_OPTS (up to about half the + # memory) for real data. templateServices: - id: elasticsearch nameHint: unomi-elasticsearch serviceType: web + size: medium exposeInternet: false image: repository: docker.io/library/elasticsearch