We previously published an article demonstrating how you could run Spin apps as cron job using the cron trigger for Spin . Although this works great when using Spin as a runtime, it falls short when using Kubernetes with SpinKube as runtime for your WebAssembly apps. In this article, we’ll use the Spin command trigger, and explore a distributed application that uses the command trigger for Spin to run several parts of an distributed application either once (as Kubernetes Job ) or on a schedule (as Kubernetes CronJob ).
Prerequisites
To follow along the code and samples show as part of this article, you need the following:
The canary release of Spin installed on your machine
Either follow these installation instructions or use the version manager plugin for Spin ( verman )
Access to a Kubernetes cluster with SpinKube deployed to it (You can find detailed installation instructions for deploying SpinKube to a wide range of different Kubernetes distributions )
kubectl version 1.31.2 or later
docker (for…