Kubernetes deployment
Kubernetes is an alternative deployment mechanism for running Owl on a non-SPHERE testbed or another system with a Kubernetes cluster.
The current SPHERE deployment runs RabbitMQ and the Owl server as containers on a node inside the user's experiment, rather than deploying those services into a Kubernetes cluster. For use on SPHERE, follow that experiment deployment guide.
The Helm instructions below deploy RabbitMQ and the Owl backend into your chosen Kubernetes cluster. The Owl chart installs a Deployment and Service, with optional Ingress. It does not deploy the browser viewer. See server setup for backend behavior and viewer deployment for the XDC interface.
Prepare the cluster
You need kubectl access, Helm, a container image accessible to the cluster, and dynamic volume provisioning for RabbitMQ's persistent storage.
Download the chart
Install Git on the workstation where you run Helm and kubectl. The chart is in the separate Owl server deployment repository. Download it and enter the chart directory:
mkdir -p ~/src/owl/deploy
git clone https://gitlab.com/mergetb/frontends/owl/deploy/owlserver.git ~/src/owl/deploy/owlserver
cd ~/src/owl/deploy/owlserver
If you already have the checkout, enter its directory instead of cloning it
again. For a private repository, authenticate with a GitLab account and a token
with read_repository access when prompted for a password. The remaining Helm
commands run from this directory; . refers to this local chart.
Review values.yaml before installation:
| Value | Purpose |
|---|---|
image.repository, image.tag | Use the Owl server image you intend to deploy; the checked-in registry address is an example. |
imagePullSecrets | Registry credentials if needed. |
owl.rabbitservice | RabbitMQ service and password Secret name; defaults to rabbit-rabbitmq. |
owl.rabbitport | Stream protocol port; defaults to 5552. |
service.port | Keep 80, the port on which the current server binary listens. |
ingress.enabled | Defaults to true. Set false for a private backend behind the XDC viewer's access checks. |
ingress.hosts, ingress.tls | Set for your site only if intentionally exposing through an appropriately protected gateway. |
The backend does not implement authentication. A reachable Ingress gives direct access to its RPCs, including deletion, unless your deployment adds access controls.
Install
Run from ~/src/owl/deploy/owlserver/. This example uses namespace owl and RabbitMQ
release name rabbit, which produces the service/Secret name expected by the
Owl chart:
kubectl create namespace owl
helm install --atomic -n owl -f rabbit.values rabbit \
oci://registry-1.docker.io/bitnamicharts/rabbitmq
The bundled rabbit.values enables rabbitmq_stream and
rabbitmq_stream_management and exposes port 5552. Review the RabbitMQ chart
and image versions for your cluster before installation.
Create a local override file named site-values.yaml, for example:
image:
repository: YOUR_REGISTRY/owlserver
tag: YOUR_SERVER_TAG
ingress:
enabled: false
Then install Owl:
helm install --atomic -n owl -f site-values.yaml owlserver .
kubectl -n owl get pods,services
The RabbitMQ chart generates a rabbit-rabbitmq Secret containing
rabbitmq-password. The Owl template reads that Secret and uses the fixed
username user. If changing the RabbitMQ release name or using an existing
broker, align the service, Secret, key, and username; username and Secret key
are currently fixed in templates/_helpers.tpl rather than exposed as values.
The supplied install.sh installs RabbitMQ and Owl with defaults. It attempts
RabbitMQ before creating the namespace in its Owl command. Create the namespace
first and review defaults if using that helper; the explicit commands above
also let you supply image and ingress overrides.
Upgrade and verify
After updating your overrides:
helm upgrade --atomic -n owl --reuse-values -f site-values.yaml owlserver .
For the default release name, forward a local port to test with the CLI:
kubectl -n owl port-forward service/owlserver 8081:80
In another terminal, use owl --server http://localhost:8081 --owlid owl-check
with the server verification commands.
The XDC proxy must be configured with a backend hostname and port reachable
from the XDC; it does not use this temporary local port-forward.
The update.sh helper uses namespace owl, reuses values, and also upgrades
RabbitMQ. Review and upgrade the two services deliberately for your deployment.
Remove the deployment
To remove the releases:
helm uninstall -n owl owlserver
helm uninstall -n owl rabbit
RabbitMQ's persistent volume claims are retained after uninstall. Inspect them
with kubectl -n owl get pvc; delete the specific claims separately only when
you intend to discard stored data. Removing the broker's data erases all Owl
stream history on it.