SpinKube connects the Spin WebAssembly framework to Kubernetes. Its kube command-line plugin scaffolds Kubernetes resources for Spin applications, while SpinKube’s CRDs and operator let Kubernetes deploy, scale, and manage those workloads with familiar orchestration patterns. section 8.2 section 8.5
A typical SpinKube deployment follows this sequence:
- Build the Spin application with spin build. section 8.2.2
- Publish the application as an OCI image to a container registry with spin registry push. section 8.2.2
- Generate a SpinApp manifest with spin kube scaffold --from, rather than writing the Kubernetes resource by hand. section 8.2.2
- Apply the generated manifest to the cluster and inspect readiness with kubectl get spinapps. section 8.2.2
- Test the deployed service through kubectl port-forward and curl. section 8.2.2
Deploying hello-world-spin
A minimal HTTP Spin application can be built, pushed to a registry, and scaffolded into a SpinApp resource. The generated manifest specifies apiVersion core.spinkube.dev/v1alpha1, kind SpinApp, the image, executor containerd-shim-spin, and replicas: 2. Applying it produces two ready replicas; port-forwarding the service and calling localhost:8083/ returns “Hello World from Spin in Kubernetes!”. section 8.2.2
spin plugins update spin plugins install kube spin plugins list --installed
The command listing provides the practical installation path for updating Spin plugins, installing kube, and verifying the installed plugin. section 8.2
