Skip to content

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 spatioviewhotel GitLab 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-iac manifests copy application/tellyboardadmin and apisix/private/route/tellyboard-route.yaml. Config values (COREAPI_URL, VITE_TELLYID_URL, VITE_AUTH_URL, VITE_AUTH_API_URL) come from playtelly-iac/services/application/spatioviewhotel/ENVIRONMENT.md, with your-domain.example.com replaced by IBC_DOMAIN (the hotel's address, for example marina.castis.io).
  • The route must carry the ibc/module tag: routes.yaml renders the whole route folder, so an untagged route would go live on every hotel.
  • In playtelly-iac, root-app-prod and apisix-nuc recurse those folders from main, so a live file there deploys to cloud production at once. While they were being prepared they had a .disabled extension, which Argo CD ignores.

Release a new version

  1. In spatioviewhotel, merge staging into main with a merge commit (no squash, no rebase).
  2. Tag the staging commit, not the merge commit, and push the tag:

    git tag -a vX.Y.Z <STAGING_SHA> -m "vX.Y.Z" && git push origin vX.Y.Z
    

    <STAGING_SHA> is the last commit of staging. promote:production needs the image staging-<STAGING_SHA>, and the commit must be in main. The tag pipeline runs promote:production, which relabels the signed staging image as prod-vX.Y.Z without rebuilding. Never move a pushed tag; ship the next patch instead. 3. In the tag pipeline, press update_tag:production (cloud) and/or deploy:ibc (hotels). Pressing is the approval. deploy:ibc writes prod-vX.Y.Z into the ibc-iac overlay and needs the GitLab CI/CD variable IBC_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

  1. In ibc-iac, create sites/<SITE_NAME>/site.env:

    IBC_MODULES='playout,tellyboard,spatio-view'
    
  2. Merge it into the branch the hotel follows (main, canary or stable).

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.

  1. Copy the Secret's file into a private temporary file:

    umask 077; WORK=$(mktemp)
    sudo kubectl -n argocd get secret ibc-site -o jsonpath='{.data.site\.env}' | base64 -d > "$WORK"
    
  2. In $WORK, set IBC_MODULES=playout,tellyboard,spatio-view: change the line, or append it if there is none.

  3. 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.env
    

    Expected: IBC_MODULES=playout,tellyboard,spatio-view. 5. Restart the repo server, force a refresh and remove the temporary file:

    sudo kubectl -n argocd rollout restart deployment/argocd-repo-server
    sudo kubectl -n argocd annotate applications --all argocd.argoproj.io/refresh=hard --overwrite
    rm -f "$WORK"
    
  4. 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_MODULES lines are the same and include spatio-view.
  • The Application is Synced and Healthy.
  • The spatio-view-… pod is Running.
  • curl returns HTTP/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-view yet: 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, so IBC_MODULES only decides what is deployed (Site modules).
  • Launcher link not decided: VITE_SPATIO_URL in application/orgconsole/overlays/configmap.yml is 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-iac files are live, so the pod stays ImagePullBackOff until promote:production has produced prod-vX.Y.Z and update_tag:production has recorded it.