Switch SpatioView Hotel on for a hotel
SpatioView Hotel (the spatioviewhotel app, served at /spatio-view) is the spatio-view module of the hotel stack.
Its files are already in git, but adding a file to git deploys nothing by itself: a hotel runs SpatioView only when
its IBC_MODULES lists spatio-view. This page shows how to release a version, switch it on for one hotel, check it
and roll it back. How modules work in general, and where IBC_MODULES comes from, is in Site modules.
Each hotel runs its own k3s and Argo CD, deployed from the ibc-iac repo (see Hotel on-site stack).
Facts marked (not verified) were not tested on a real hotel.
Before you start¶
You need:
- Developer access to the
spatioviewhotelGitLab project (to tag and press the manual jobs). - For a hotel without a git override: SSH access to the hotel server, with
sudo. - The hotel's site name (
IBC_SITE_NAME, the address prefix:marina.castis.io→marina).
What is already in place¶
These were added on 2026-11-23. You don't need to change them to switch on one hotel.
| Repo | What | Where |
|---|---|---|
ibc-iac |
Deployment spatio-view and Service spatio-view-service (port 80) |
application/spatioviewhotel/base/ |
ibc-iac |
ConfigMap, HPA (1 to 2 replicas), image tag; namespace production |
application/spatioviewhotel/overlays/ |
ibc-iac |
Argo CD Application, tagged ibc/module: spatio-view, listed in gitops/apps/kustomization.yaml |
gitops/apps/spatioviewhotel.yaml |
ibc-iac |
APISIX route /spatio-view with websocket, tagged ibc/module: spatio-view |
apisix/private/route/spatioview-route.yaml |
ibc-iac |
Module line spatio-view /spatio-view, not marked legacy, so licenses without a modules claim don't get it (Site modules) |
setup-agent/modules.txt |
spatioviewhotel |
Release CI copied from PlayoutAdmin, keeping only the deploy:ibc customer job; first tag v0.0.1 |
.gitlab-ci/ (guide: its README.md) |
playtelly-iac |
Cloud production overlay (the folder update_tag:production writes into) |
services/application/spatioviewhotel/overlays/prod/ |
playtelly-iac |
Argo CD app and APISIX route for cloud production | argocd/apps/prod/nuc/spatioviewhotel-prod.yml, apisix/prod/private/spatio-view-route.yaml |
- The
ibc-iacmanifests copyapplication/tellyboardadminandapisix/private/route/tellyboard-route.yaml. Config values (COREAPI_URL,VITE_TELLYID_URL,VITE_AUTH_URL,VITE_AUTH_API_URL) come fromplaytelly-iac/services/application/spatioviewhotel/ENVIRONMENT.md, withyour-domain.example.comreplaced byIBC_DOMAIN(the hotel's address, for examplemarina.castis.io). - The route must carry the
ibc/moduletag:routes.yamlrenders the whole route folder, so an untagged route would go live on every hotel. - In
playtelly-iac,root-app-prodandapisix-nucrecurse those folders frommain, so a live file there deploys to cloud production at once. While they were being prepared they had a.disabledextension, which Argo CD ignores.
Release a new version¶
- In
spatioviewhotel, mergestagingintomainwith a merge commit (no squash, no rebase). -
Tag the staging commit, not the merge commit, and push the tag:
<STAGING_SHA>is the last commit ofstaging.promote:productionneeds the imagestaging-<STAGING_SHA>, and the commit must be inmain. The tag pipeline runspromote:production, which relabels the signed staging image asprod-vX.Y.Zwithout rebuilding. Never move a pushed tag; ship the next patch instead. 3. In the tag pipeline, pressupdate_tag:production(cloud) and/ordeploy:ibc(hotels). Pressing is the approval.deploy:ibcwritesprod-vX.Y.Zinto theibc-iacoverlay and needs the GitLab CI/CD variableIBC_IAC_TOKEN.
Result: the overlay in ibc-iac (or playtelly-iac) holds newTag: prod-vX.Y.Z. Every hotel that has the module
pulls it within about 3 minutes.
Note
Until the first deploy:ibc run, the ibc-iac overlay holds the staging tag staging-5d67a927. It exists in
Nexus, so the pod starts.
Switch it on for one hotel¶
The hotel's own value wins over git, so pick the way that matches the hotel:
| The hotel has… | Use |
|---|---|
No IBC_MODULES in /etc/ibc/site.env (labs, hotels installed before 2026-10-06) |
Option A (git): no login, and the change is recorded in git. Option B also works |
Its own IBC_MODULES (written from its license) |
Option B; a git override has no effect |
Check which one with sudo grep '^IBC_MODULES=' /etc/ibc/site.env on the hotel. No output means it has no value, and
it runs the default list playout,tellyboard from setup-agent/defaults.env.
Keep the names the hotel already has. The list is complete: a hotel whose list is spatio-view alone runs only
SpatioView.
Option A: in git¶
-
In
ibc-iac, createsites/<SITE_NAME>/site.env: -
Merge it into the branch the hotel follows (
main,canaryorstable).
Result: Argo CD on that hotel deploys SpatioView in about 3 minutes, with no login to the hotel. See Override settings for one hotel.
Option B: on the hotel¶
The value lives in two places that must match: /etc/ibc/site.env and the Secret argocd/ibc-site. This is how
marina was switched on, on 2026-11-23.
Warning
Run these on the hotel over SSH, never on your laptop: there, kubectl talks to whatever cluster your laptop is
set to. Never print the whole site.env, because it holds passwords. IBC_MODULES alone is safe to print.
-
Copy the Secret's file into a private temporary file:
-
In
$WORK, setIBC_MODULES=playout,tellyboard,spatio-view: change the line, or append it if there is none. -
Write the Secret back:
sudo kubectl -n argocd create secret generic ibc-site --from-file=site.env="$WORK" --dry-run=client -o yaml \ | sudo kubectl apply -f -Expected:
secret/ibc-site configured. 4. Make the same change in/etc/ibc/site.env:if sudo grep -q '^IBC_MODULES=' /etc/ibc/site.env; then sudo sed -i 's/^IBC_MODULES=.*/IBC_MODULES=playout,tellyboard,spatio-view/' /etc/ibc/site.env else echo 'IBC_MODULES=playout,tellyboard,spatio-view' | sudo tee -a /etc/ibc/site.env >/dev/null fi sudo grep '^IBC_MODULES=' /etc/ibc/site.envExpected:
IBC_MODULES=playout,tellyboard,spatio-view. 5. Restart the repo server, force a refresh and remove the temporary file: -
Wait about 3 minutes, then check it (next section).
A license update overwrites a hand-set IBC_MODULES with the license's list, and licenses can't carry spatio-view
yet (see Known gaps). So after option B, the next license update removes SpatioView from that hotel.
Check it worked¶
On the hotel server:
sudo grep '^IBC_MODULES=' /etc/ibc/site.env
sudo kubectl -n argocd get secret ibc-site -o jsonpath='{.data.site\.env}' | base64 -d | grep '^IBC_MODULES='
sudo kubectl get applications -n argocd | grep -i spatio
sudo kubectl -n production get pods | grep spatio-view
curl -sI https://<HOTEL_DOMAIN>/spatio-view/
<HOTEL_DOMAIN> is the hotel's address, for example marina.castis.io. Expected:
- Both
IBC_MODULESlines are the same and includespatio-view. - The Application is
SyncedandHealthy. - The
spatio-view-…pod isRunning. curlreturnsHTTP/2 200.
| You see | Cause | Fix |
|---|---|---|
Pod Pending, event Insufficient memory |
Small machine: the scheduler counts memory requests, not usage | Free memory or lower the requests in the overlay |
Pod ImagePullBackOff |
The tag in the overlay is not in Nexus | Run the release again so deploy:ibc writes a tag that exists |
| No Application after 3 minutes | The two IBC_MODULES copies differ, or the name is misspelled |
Compare the two lines and the spelling against setup-agent/modules.txt |
Roll back¶
Set the hotel's list back to what it was (for example playout,tellyboard) in the same place you changed it. Argo CD
removes the app and the route (prune is on). SpatioView keeps no state, so no data is lost.
Known gaps¶
- Licenses can't carry
spatio-viewyet: coreapi's edge API must accept the name first (playtelly-iac/docs/edge/modules.md). Until then it is set by hand, and a license update removes it. - Nothing enforces the module: authapi and coreapi don't read
modules, soIBC_MODULESonly decides what is deployed (Site modules). - Launcher link not decided:
VITE_SPATIO_URLinapplication/orgconsole/overlays/configmap.ymlis still empty, and may belong to the ticketing admin at/spatio. A portal tile for SpatioView Hotel needs its own variable. - Demo installs get SpatioView too: the demo license lists every module in
modules.txt. - Cloud production (not verified): the
playtelly-iacfiles are live, so the pod staysImagePullBackOffuntilpromote:productionhas producedprod-vX.Y.Zandupdate_tag:productionhas recorded it.
Related¶
- Site modules: how modules are chosen and how to add the next product.
- Override settings for one hotel: the
sites/folder. - Site variables: who owns each value.