Skip to main content

Epinio

Self-service source-to-URL deploy path (push code, get a URL, no kubeconfig)

CategoryManagement
Deploy./uis deploy epinio
Undeploy./uis undeploy epinio
Depends oncert-manager
Required byNone
Helm chartepinio/epinio (unpinned)
Default namespaceepinio

What It Does​

Epinio builds and deploys an application directly from source — no Kubernetes manifest, no kubeconfig for the developer. Alongside ArgoCD (which deploys a manifest the application brings) and uis (which provisions platform services), Epinio is UISs third deploy mechanism: for code that brings neither.

Deploy​

# Prerequisites — deploy dependencies first
./uis deploy cert-manager

# Deploy Epinio
./uis deploy epinio

Verify​

# Manual check
kubectl get pods -n epinio -l app.kubernetes.io/name=epinio-server

Build safety — epinio push --git has no rollback​

Epinio has no rollback or revision-history command, and a broken build can take a previously-working app down: Epinio's readiness gate does not protect the old version while staging a new one (measured live, urb-agents#1911 Gate 8 — no configuration fix exists). This is upstream Epinio behavior, not a UIS limitation, and it is specific to one of the two ways to push:

  • epinio push --container-image-url <registry-image> — build happens in CI (Forgejo Actions) before anything reaches Epinio. A broken build never produces an image, so this path is safe against Gate 8's failure mode by construction. Use this if the app must stay up through a bad push.
  • epinio push --git <repo> — Epinio builds and deploys in one step, with no safety net. If the new build is broken, the previous version can go down with it, and the only recovery is pushing a known-good git ref again by hand. This remains the right choice for fast local iteration — just not for anything where a bad push must not take the app down.

See PLAN-service-epinio-002-build-safety for the full decision.

Exposing a pushed app outside the LAN​

Epinio's own auto-generated per-app Ingress only answers on its LAN/nip.io hostname. To give an already-pushed app a second, tunnel-reachable route (the same HostRegexp convention every other externally-exposed UIS service uses), run from the host:

EPINIO_APP_NAME=your-app \
EPINIO_NAMESPACE=your-org \
EPINIO_APP_PORT=8080 \
./uis exec scripts/epinio/epinio-expose-route.sh

This is additive — the app's original LAN route keeps working unchanged. Safe to re-run with the same three values; it updates the existing route rather than creating a second one. See ansible/playbooks/626-epinio-external-route.yml for the mechanism itself.

Storage​

App data and buildpacks are stored in this platform's own Garage install, not the chart's bundled SeaweedFS — Epinio gets its own dedicated Garage key and epinio bucket (EPINIO_GARAGE_ACCESS_KEY/EPINIO_GARAGE_SECRET_KEY), imported and scoped read+write to that one bucket only. This is a separate key from Garage's own account-wide bootstrap key, which is denied bucket-creation rights by design — see the Garage service docs for why. Requires Garage deployed first (./uis deploy garage).

Identity​

Epinio's own bundled Dex can be wired to up to three identity providers — GitHub, Authentik, and Okta — each mapping its own groups/teams to namespace roles, instead of Epinio's default basic auth. Each provider is independently optional and off by default.

ansible-playbook ansible/playbooks/627-setup-epinio-identity.yml \
-e target_host="rancher-desktop" \
-e @epinio-identity-vars.yml \
-e @epinio-identity-secrets.yml

epinio-identity-vars.yml supplies each enabled connector's own structure (client ID, org/teams or groups, role mappings) — none of that is generic, so there is no default to copy from; see 627-setup-epinio-identity.yml's own header for the exact shape. epinio-identity-secrets.yml supplies the matching OAuth client secret(s) (EPINIO_DEX_GITHUB_CLIENT_SECRET etc. — built fresh per run, never committed).

The Authentik connector additionally requires reflector deployed first (./uis deploy reflector) — Dex needs to trust a TLS certificate issued in Authentik's own namespace, which cannot cross namespaces without it.

Configuration​

No configuration documentation yet. Edit this section to add details about Epinio settings, secrets, and customization options.

Undeploy​

./uis undeploy epinio

Troubleshooting​

No troubleshooting documentation yet. Edit this section to add common issues and their solutions.

Learn More​