<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tutorials on SpinKube</title><link>/tags/tutorials/</link><description>Recent content in Tutorials on SpinKube</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 23 Nov 2026 16:15:30 +0800</lastBuildDate><atom:link href="/tags/tutorials/index.xml" rel="self" type="application/rss+xml"/><item><title>Installing on Azure Kubernetes Service</title><link>/docs/install/azure-kubernetes-service/</link><pubDate>Fri, 16 Feb 2024 00:00:00 +0000</pubDate><guid>/docs/install/azure-kubernetes-service/</guid><description>&lt;p>In this tutorial, you install Spin Operator on an Azure Kubernetes Service (AKS) cluster and deploy
a simple Spin application. You will learn how to:&lt;/p>
&lt;ul>
&lt;li>Deploy an AKS cluster&lt;/li>
&lt;li>Install Spin Operator Custom Resource Definitions&lt;/li>
&lt;li>Install and verify containerd shim via Runtime Class Manager&lt;/li>
&lt;li>Deploy a simple Spin App custom resource on your cluster&lt;/li>
&lt;/ul>
&lt;!-- TODO: To learn more about any of these concepts, please visit the [Spin Operator Conceptual article](link-to-concept-article). -->
&lt;h2 id="prerequisites">Prerequisites&lt;a class="td-heading-self-link" href="#prerequisites" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>Please ensure you have the following tools installed before continuing:&lt;/p></description></item><item><title>Installing on Rancher Desktop</title><link>/docs/install/rancher-desktop/</link><pubDate>Fri, 16 Feb 2024 00:00:00 +0000</pubDate><guid>/docs/install/rancher-desktop/</guid><description>&lt;p>&lt;a href="https://rancherdesktop.io/">Rancher Desktop&lt;/a> is an open-source application that provides all the
essentials to work with containers and Kubernetes on your desktop.&lt;/p>
&lt;h3 id="prerequisites">Prerequisites&lt;a class="td-heading-self-link" href="#prerequisites" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;ul>
&lt;li>An operating system compatible with Rancher Desktop (Windows, macOS, or Linux).&lt;/li>
&lt;li>Administrative or superuser access on your computer.&lt;/li>
&lt;/ul>
&lt;h3 id="step-1-installing-rancher-desktop">Step 1: Installing Rancher Desktop&lt;a class="td-heading-self-link" href="#step-1-installing-rancher-desktop" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Download Rancher Desktop&lt;/strong>:
&lt;ul>
&lt;li>Navigate to the &lt;a href="https://github.com/rancher-sandbox/rancher-desktop/releases">Rancher Desktop releases
page&lt;/a>. We tested this documentation with Rancher Desktop &lt;code>1.19.1&lt;/code> with Spin &lt;code>v3.2.0&lt;/code>, but it should work with more recent versions.&lt;/li>
&lt;li>Select the appropriate installer for your operating system.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>&lt;strong>Install Rancher Desktop&lt;/strong>:
&lt;ul>
&lt;li>Run the downloaded installer and follow the on-screen instructions to complete the
installation.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ol>
&lt;h3 id="step-2-configure-rancher-desktop">Step 2: Configure Rancher Desktop&lt;a class="td-heading-self-link" href="#step-2-configure-rancher-desktop" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;ul>
&lt;li>Open Rancher Desktop&lt;/li>
&lt;li>Configure &lt;code>containerd&lt;/code> as your container runtime engine (under &lt;strong>Preferences&lt;/strong> -&amp;gt; &lt;strong>Container Engine&lt;/strong>).&lt;/li>
&lt;li>Make sure that the Enable Wasm option is checked in the &lt;strong>Preferences&lt;/strong> → &lt;strong>Container Engine&lt;/strong>
section. Remember to always apply your changes.&lt;/li>
&lt;/ul>
&lt;p>&lt;img alt="Rancher preferences" src="../rancher-desktop-preferences.png">&lt;/p></description></item><item><title>Selective Deployments in Spin</title><link>/docs/topics/selective-deployments/</link><pubDate>Sun, 10 Nov 2024 00:00:00 +0000</pubDate><guid>/docs/topics/selective-deployments/</guid><description>&lt;p>This article explains how to selectively deploy a subset of components from your Spin App using Selective Deployments. You will learn how to:&lt;/p>
&lt;ul>
&lt;li>Scaffold a Specific Component from a Spin Application into a Custom Resource&lt;/li>
&lt;li>Run a Selective Deployment&lt;/li>
&lt;/ul>
&lt;p>Selective Deployments allow you to control which components within a Spin app are active for a specific instance of the app. With Component Selectors, Spin and SpinKube can declare at runtime which components should be activated, letting you deploy a single, versioned artifact while choosing which parts to enable at startup. This approach separates developer goals (building a well-architected app) from operational needs (optimizing for specific infrastructure).&lt;/p></description></item><item><title>Packaging and deploying apps</title><link>/docs/topics/packaging/</link><pubDate>Fri, 16 Feb 2024 00:00:00 +0000</pubDate><guid>/docs/topics/packaging/</guid><description>&lt;p>This article explains how Spin Apps are packaged and distributed via both public and private
registries. You will learn how to:&lt;/p>
&lt;ul>
&lt;li>Package and distribute Spin Apps&lt;/li>
&lt;li>Deploy Spin Apps&lt;/li>
&lt;li>Scaffold Kubernetes Manifests for Spin Apps&lt;/li>
&lt;li>Use private registries that require authentication&lt;/li>
&lt;/ul>
&lt;h2 id="prerequisites">Prerequisites&lt;a class="td-heading-self-link" href="#prerequisites" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>For this tutorial in particular, you need&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://tinygo.org/">TinyGo&lt;/a> - for building the Spin app&lt;/li>
&lt;li>&lt;a href="https://kubernetes.io/docs/tasks/tools/">kubectl&lt;/a> - the Kubernetes CLI&lt;/li>
&lt;li>&lt;a href="https://developer.fermyon.com/spin/v2/install">spin&lt;/a> - the Spin CLI&lt;/li>
&lt;li>&lt;a href="/docs/spin-plugin-kube/installation">spin kube&lt;/a> - the Kubernetes plugin for &lt;code>spin&lt;/code>&lt;/li>
&lt;/ul>
&lt;h2 id="creating-a-new-spin-app">Creating a new Spin App&lt;a class="td-heading-self-link" href="#creating-a-new-spin-app" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>You use the &lt;code>spin&lt;/code> CLI, to create a new Spin App. The &lt;code>spin&lt;/code> CLI provides different templates, which
you can use to quickly create different kinds of Spin Apps. For demonstration purposes, you will use
the &lt;code>http-go&lt;/code> template to create a simple Spin App.&lt;/p></description></item><item><title>Making HTTPS Requests</title><link>/docs/topics/https-requests/</link><pubDate>Tue, 03 Sep 2024 00:00:00 +0000</pubDate><guid>/docs/topics/https-requests/</guid><description>&lt;p>To enable HTTPS requests, the &lt;a href="https://www.spinkube.dev/docs/glossary/#spin-app-executor-crd">executor&lt;/a> must be configured to use certificates. SpinKube can be configured to use either default or custom certificates.&lt;/p>
&lt;p>If you make a request without properly configured certificates, you&amp;rsquo;ll encounter an error message that reads: &lt;code>error trying to connect: unexpected EOF (unable to get local issuer certificate)&lt;/code>.&lt;/p>
&lt;h2 id="using-default-certificates">Using default certificates&lt;a class="td-heading-self-link" href="#using-default-certificates" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>SpinKube can generate a default CA certificate bundle by setting &lt;code>installDefaultCACerts&lt;/code> to &lt;code>true&lt;/code>. This creates a secret named &lt;code>spin-ca&lt;/code> populated with curl&amp;rsquo;s &lt;a href="https://curl.se/ca/cacert.pem">default bundle&lt;/a>. You can specify a custom secret name by setting &lt;code>caCertSecret&lt;/code>.&lt;/p></description></item><item><title>Assigning variables</title><link>/docs/topics/assigning-variables/</link><pubDate>Fri, 16 Feb 2024 00:00:00 +0000</pubDate><guid>/docs/topics/assigning-variables/</guid><description>&lt;p>By using variables, you can alter application behavior without recompiling your SpinApp. When
running in Kubernetes, you can either provide constant values for variables, or reference them from
Kubernetes primitives such as &lt;code>ConfigMaps&lt;/code> and &lt;code>Secrets&lt;/code>. This tutorial guides your through the
process of assigning variables to your &lt;code>SpinApp&lt;/code>.&lt;/p>
&lt;blockquote>
&lt;p>Note: If you&amp;rsquo;d like to learn how to configure your application with an external variable provider
like &lt;a href="https://vaultproject.io">Vault&lt;/a> or &lt;a href="https://azure.microsoft.com/en-us/products/key-vault">Azure Key
Vault&lt;/a>, see the &lt;a href="/docs/topics/external-variable-providers/">External Variable Provider
guide&lt;/a>&lt;/p></description></item><item><title>External Variable Providers</title><link>/docs/topics/external-variable-providers/</link><pubDate>Wed, 17 Jul 2024 00:00:00 +0000</pubDate><guid>/docs/topics/external-variable-providers/</guid><description>&lt;p>In the &lt;a href="/docs/topics/assigning-variables/">Assigning Variables&lt;/a> guide, you learned how to configure variables
on the SpinApp via its &lt;a href="/docs/reference/spin-app/#spinappspecvariablesindex">variables&lt;/a> section,
either by supplying values in-line or via a Kubernetes ConfigMap or Secret.&lt;/p>
&lt;p>You can also utilize an external service like &lt;a href="https://vaultproject.io">Vault&lt;/a> or &lt;a href="https://azure.microsoft.com/en-us/products/key-vault">Azure Key
Vault&lt;/a> to provide variable values for your
application. This guide will show you how to use and configure both services in tandem with
corresponding sample applications.&lt;/p>
&lt;h2 id="prerequisites">Prerequisites&lt;a class="td-heading-self-link" href="#prerequisites" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>To follow along with this tutorial, you&amp;rsquo;ll need:&lt;/p></description></item><item><title>Using a key value store</title><link>/docs/topics/using-a-key-value-store/</link><pubDate>Mon, 29 Jul 2024 00:00:00 +0000</pubDate><guid>/docs/topics/using-a-key-value-store/</guid><description>&lt;p>Spin applications can utilize a &lt;a href="https://developer.fermyon.com/spin/v2/kv-store-api-guide">standardized API for persisting data in a key value
store&lt;/a>. The default key value store in
Spin is an SQLite database, which is great for quickly utilizing non-relational local storage
without any infrastructure set-up. However, this solution may not be preferable for an app running
in the context of SpinKube, where apps are often scaled beyond just one replica.&lt;/p>
&lt;p>Thankfully, Spin supports configuring an application with an &lt;a href="https://developer.fermyon.com/spin/v2/dynamic-configuration#key-value-store-runtime-configuration">external key value
provider&lt;/a>.
External providers include &lt;a href="https://redis.io/">Redis&lt;/a> or &lt;a href="https://valkey.io/">Valkey&lt;/a> and &lt;a href="https://azure.microsoft.com/en-us/products/cosmos-db">Azure
Cosmos DB&lt;/a>.&lt;/p></description></item><item><title>Connecting to a SQLite database</title><link>/docs/topics/connecting-to-a-sqlite-database/</link><pubDate>Wed, 17 Jul 2024 00:00:00 +0000</pubDate><guid>/docs/topics/connecting-to-a-sqlite-database/</guid><description>&lt;p>Spin applications can utilize a &lt;a href="https://developer.fermyon.com/spin/v2/sqlite-api-guide">standardized API for persisting data in a SQLite
database&lt;/a>. A default database is created by
the Spin runtime on the local filesystem, which is great for getting an application up and running.
However, this on-disk solution may not be preferable for an app running in the context of SpinKube,
where apps are often scaled beyond just one replica.&lt;/p>
&lt;p>Thankfully, Spin supports configuring an application with an &lt;a href="https://developer.fermyon.com/spin/v2/dynamic-configuration#libsql-storage-provider">external SQLite database provider via
runtime
configuration&lt;/a>.
External providers include any &lt;a href="https://libsql.org/">libSQL&lt;/a> databases that can be accessed over
HTTPS.&lt;/p></description></item><item><title>Scaling Spin App With Horizontal Pod Autoscaling (HPA)</title><link>/docs/topics/autoscaling/scaling-with-hpa/</link><pubDate>Fri, 16 Feb 2024 00:00:00 +0000</pubDate><guid>/docs/topics/autoscaling/scaling-with-hpa/</guid><description>&lt;p>Horizontal scaling, in the Kubernetes sense, means deploying more pods to meet demand (different
from vertical scaling whereby more memory and CPU resources are assigned to already running pods).
In this tutorial, we configure
&lt;a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/">HPA&lt;/a> to dynamically
scale the instance count of our SpinApps to meet the demand.&lt;/p>
&lt;h2 id="prerequisites">Prerequisites&lt;a class="td-heading-self-link" href="#prerequisites" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>Ensure you have the following tools installed:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://docs.docker.com/engine/install/">Docker&lt;/a> - for running kind&lt;/li>
&lt;li>&lt;a href="https://kubernetes.io/docs/tasks/tools/">kubectl&lt;/a> - the Kubernetes CLI&lt;/li>
&lt;li>&lt;a href="https://kind.sigs.k8s.io/">kind&lt;/a> - a development Kubernetes distribution that runs on Docker&lt;/li>
&lt;li>&lt;a href="https://helm.sh">Helm&lt;/a> - the package manager for Kubernetes&lt;/li>
&lt;li>&lt;a href="https://pkg.go.dev/github.com/codesenberg/bombardier">Bombardier&lt;/a> - cross-platform HTTP
benchmarking CLI&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>We use kind to run a Kubernetes cluster locally as part of this tutorial, but you can follow these
steps to configure HPA autoscaling on your desired Kubernetes environment.&lt;/p></description></item><item><title>Scaling Spin App With Kubernetes Event-Driven Autoscaling (KEDA)</title><link>/docs/topics/autoscaling/scaling-with-keda/</link><pubDate>Fri, 16 Feb 2024 00:00:00 +0000</pubDate><guid>/docs/topics/autoscaling/scaling-with-keda/</guid><description>&lt;p>&lt;a href="https://keda.sh">KEDA&lt;/a> extends Kubernetes to provide event-driven scaling capabilities, allowing it
to react to events from Kubernetes internal and external sources using &lt;a href="https://keda.sh/docs/2.13/scalers/">KEDA
scalers&lt;/a>. KEDA provides a wide variety of scalers to define
scaling behavior base on sources like CPU, Memory, Azure Event Hubs, Kafka, RabbitMQ, and more. We
use a &lt;code>ScaledObject&lt;/code> to dynamically scale the instance count of our SpinApp to meet the demand.&lt;/p>
&lt;h2 id="prerequisites">Prerequisites&lt;a class="td-heading-self-link" href="#prerequisites" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>Please ensure the following tools are installed on your local machine:&lt;/p></description></item></channel></rss>