Skip to content

docs(self-hosted): document hostAliases for SSR fix in evaluator overlay#17

Merged
vinyex merged 1 commit into
mainfrom
docs/evaluator-hostaliases
May 12, 2026
Merged

docs(self-hosted): document hostAliases for SSR fix in evaluator overlay#17
vinyex merged 1 commit into
mainfrom
docs/evaluator-hostaliases

Conversation

@vinyex

@vinyex vinyex commented May 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds frontend.hostAliases block to the values-evaluator.yaml example in step 9 of the local-evaluation guide
  • Explains why it's needed (Nuxt SSR cluster-internal fetch to api.plexicus.local fails without /etc/hosts injection)
  • Uses <server-ip> placeholder so evaluators substitute their own ingress LB IP

Why this matters

Every fresh evaluator install hits the same bug: pages render empty/broken because Nuxt SSR can't resolve api.plexicus.local from inside the cluster (it only exists in the evaluator's laptop /etc/hosts). The chart already supports frontend.hostAliases via charts/frontend/templates/deployment.yaml — this PR just documents the required value so evaluators don't have to diagnose the symptom themselves.

The same pattern is already in use on the Plexicus dev cluster (argocd/environments/dev/application.yaml:299).

Test plan

  • YAML block renders cleanly in MDX (no syntax errors)
  • Validated on a fresh Hetzner evaluator install — frontend pod's /etc/hosts now contains the HostAliases entry and resolves api.plexicus.local to the ingress LB IP

🤖 Generated with Claude Code

Fixes a real bug every fresh evaluator install hits: Nuxt SSR running
inside the frontend pod tries to server-side fetch
https://api.plexicus.local/... but the cluster's DNS can't resolve
api.plexicus.local (it only exists in the evaluator's laptop /etc/hosts),
so SSR fetches fail and pages render empty/broken.

The chart already supports `frontend.hostAliases` via
charts/frontend/templates/deployment.yaml — this PR just documents the
required value so evaluators don't have to diagnose the broken-SSR
symptom themselves.

The example uses <server-ip> as a placeholder; evaluators substitute
the ingress LB EXTERNAL-IP from `kubectl -n ingress-nginx get svc
ingress-nginx-controller`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 12, 2026 07:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Documents a required Helm values override for self-hosted evaluator installs so Nuxt SSR inside the frontend pod can resolve api.plexicus.local (by injecting an /etc/hosts entry via hostAliases), preventing blank/broken SSR-rendered pages during local evaluation.

Changes:

  • Adds a frontend.hostAliases example block to values-evaluator.yaml in step 9 of the local-evaluation guide.
  • Explains the SSR/DNS failure mode and how hostAliases fixes it inside the pod.
  • Uses a <server-ip> placeholder and points readers to the ingress-nginx-controller service EXTERNAL-IP.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@vinyex vinyex merged commit d5317dc into main May 12, 2026
6 checks passed
@vinyex vinyex deleted the docs/evaluator-hostaliases branch May 12, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants