<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SpinKube</title><link>/</link><description>Recent content on SpinKube</description><generator>Hugo</generator><language>en</language><atom:link href="/index.xml" rel="self" type="application/rss+xml"/><item><title>Advice for new contributors</title><link>/docs/contrib/new-contributors/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/contrib/new-contributors/</guid><description>&lt;p>This page contains more general advice on ways you can contribute to SpinKube, and how to approach
that.&lt;/p>
&lt;p>If you are looking for a reference on the details of making code contributions, see the &lt;a href="/docs/contrib/writing-code/">Writing
code&lt;/a> documentation.&lt;/p>
&lt;h2 id="first-steps">First steps&lt;a class="td-heading-self-link" href="#first-steps" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>Start with these steps to be successful as a contributor to SpinKube.&lt;/p>
&lt;h3 id="join-the-conversation">Join the conversation&lt;a class="td-heading-self-link" href="#join-the-conversation" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;p>It can be argued that collaboration and communication are the most crucial aspects of open source
development. Gaining consensus on the direction of the project, and that your work is aligned with
that direction, is key to getting your work accepted. This is why it is important to join the
conversation early and often.&lt;/p></description></item><item><title>Overview</title><link>/docs/overview/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/overview/</guid><description>&lt;h1 id="project-overview">Project Overview&lt;a class="td-heading-self-link" href="#project-overview" aria-label="Heading self-link">&lt;/a>&lt;/h1>
&lt;p>&lt;a href="https://github.com/spinframework">SpinKube&lt;/a> is an open source project that streamlines the
experience of deploying and operating Wasm workloads on Kubernetes, using &lt;a href="https://github.com/spinframework/spin-operator">Spin
Operator&lt;/a> in tandem with
&lt;a href="https://github.com/containerd/runwasi">runwasi&lt;/a> and &lt;a href="https://github.com/spinframework/runtime-class-manager">runtime class
manager&lt;/a>.&lt;/p>
&lt;p>With SpinKube, you can leverage the advantages of using WebAssembly (Wasm) for your workloads:&lt;/p>
&lt;ul>
&lt;li>Artifacts are significantly smaller in size compared to container images.&lt;/li>
&lt;li>Artifacts can be quickly fetched over the network and started much faster (*Note: We are aware of
several optimizations that still need to be implemented to enhance the startup time for
workloads).&lt;/li>
&lt;li>Substantially fewer resources are required during idle times.&lt;/li>
&lt;/ul>
&lt;p>Thanks to SpinKube, we can do all of this while integrating with Kubernetes primitives including
DNS, probes, autoscaling, metrics, and many more cloud native and CNCF projects.&lt;/p></description></item><item><title>SpinApp</title><link>/docs/reference/spin-app/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/reference/spin-app/</guid><description>&lt;p>Resource Types:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="/docs/reference/spin-app/#spinapp">SpinApp&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="spinapp">SpinApp&lt;a class="td-heading-self-link" href="#spinapp" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>SpinApp is the Schema for the spinapps API&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;th>Required&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>&lt;tr>
 &lt;td>&lt;b>apiVersion&lt;/b>&lt;/td>
 &lt;td>string&lt;/td>
 &lt;td>core.spinkube.dev/v1alpha1&lt;/td>
 &lt;td>true&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;b>kind&lt;/b>&lt;/td>
 &lt;td>string&lt;/td>
 &lt;td>SpinApp&lt;/td>
 &lt;td>true&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;b>&lt;a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta">metadata&lt;/a>&lt;/b>&lt;/td>
 &lt;td>object&lt;/td>
 &lt;td>Refer to the Kubernetes API documentation for the fields of the `metadata` field.&lt;/td>
 &lt;td>true&lt;/td>
 &lt;/tr>&lt;tr>
 &lt;td>&lt;b>&lt;a href="#spinappspec">spec&lt;/a>&lt;/b>&lt;/td>
 &lt;td>object&lt;/td>
 &lt;td>
 SpinAppSpec defines the desired state of SpinApp&lt;br/>
 &lt;/td>
 &lt;td>false&lt;/td>
 &lt;/tr>&lt;tr>
 &lt;td>&lt;b>&lt;a href="#spinappstatus">status&lt;/a>&lt;/b>&lt;/td>
 &lt;td>object&lt;/td>
 &lt;td>
 SpinAppStatus defines the observed state of SpinApp&lt;br/>
 &lt;/td>
 &lt;td>false&lt;/td>
 &lt;/tr>&lt;/tbody>
&lt;/table>
&lt;h3 id="spinappspec">&lt;code>SpinApp.spec&lt;/code>&lt;a class="td-heading-self-link" href="#spinappspec" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;p>&lt;small>&lt;a href="/docs/reference/spin-app/#spinapp">back to parent&lt;/a>&lt;/small>&lt;/p></description></item><item><title>Quickstart</title><link>/docs/install/quickstart/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/install/quickstart/</guid><description>&lt;p>This Quickstart guide demonstrates how to set up a development Kubernetes cluster, install SpinKube and
deploy your first Spin application. This example creates a kind cluster with the Spin containerd shim pre-installed on all nodes. In production, you should use the runtime class manager to install and manage the lifecycle of the containerd shim. Jump to the &lt;a href="/docs/install/installing-with-helm/">Helm installation&lt;/a> for more production cluster installation instructions.&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>For this Quickstart guide, you will need:&lt;/p></description></item><item><title>SpinAppExecutor</title><link>/docs/reference/spin-app-executor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/reference/spin-app-executor/</guid><description>&lt;p>Resource Types:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="/docs/reference/spin-app-executor/#spinappexecutor">SpinAppExecutor&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="spinappexecutor">SpinAppExecutor&lt;a class="td-heading-self-link" href="#spinappexecutor" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>SpinAppExecutor is the Schema for the spinappexecutors API&lt;/p>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Name&lt;/th>
 &lt;th>Type&lt;/th>
 &lt;th>Description&lt;/th>
 &lt;th>Required&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>&lt;tr>
 &lt;td>&lt;b>apiVersion&lt;/b>&lt;/td>
 &lt;td>string&lt;/td>
 &lt;td>core.spinkube.dev/v1alpha1&lt;/td>
 &lt;td>true&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;b>kind&lt;/b>&lt;/td>
 &lt;td>string&lt;/td>
 &lt;td>SpinAppExecutor&lt;/td>
 &lt;td>true&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>&lt;b>&lt;a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#objectmeta-v1-meta">metadata&lt;/a>&lt;/b>&lt;/td>
 &lt;td>object&lt;/td>
 &lt;td>Refer to the Kubernetes API documentation for the fields of the `metadata` field.&lt;/td>
 &lt;td>true&lt;/td>
 &lt;/tr>&lt;tr>
 &lt;td>&lt;b>&lt;a href="#spinappexecutorspec">spec&lt;/a>&lt;/b>&lt;/td>
 &lt;td>object&lt;/td>
 &lt;td>
 SpinAppExecutorSpec defines the desired state of SpinAppExecutor&lt;br/>
 &lt;/td>
 &lt;td>false&lt;/td>
 &lt;/tr>&lt;tr>
 &lt;td>&lt;b>status&lt;/b>&lt;/td>
 &lt;td>object&lt;/td>
 &lt;td>
 SpinAppExecutorStatus defines the observed state of SpinAppExecutor&lt;br/>
 &lt;/td>
 &lt;td>false&lt;/td>
 &lt;/tr>&lt;/tbody>
&lt;/table>
&lt;h3 id="spinappexecutorspec">&lt;code>SpinAppExecutor.spec&lt;/code>&lt;a class="td-heading-self-link" href="#spinappexecutorspec" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;p>&lt;small>&lt;a href="/docs/reference/spin-app-executor/#spinappexecutor">back to parent&lt;/a>&lt;/small>&lt;/p></description></item><item><title>CLI Reference</title><link>/docs/reference/cli-reference/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/reference/cli-reference/</guid><description>&lt;h2 id="spin-kube-completion">spin kube completion&lt;a class="td-heading-self-link" href="#spin-kube-completion" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>spin kube completion --help
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Generate the autocompletion script &lt;span style="color:#31748f">for&lt;/span> kube &lt;span style="color:#31748f">for&lt;/span> the specified shell.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>See each sub-command&lt;span style="color:#eb6f92">&amp;#39;&lt;/span>s &lt;span style="color:#ebbcba">help&lt;/span> &lt;span style="color:#31748f">for&lt;/span> details on how to use the generated script.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Usage:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> kube completion &lt;span style="color:#908caa">[&lt;/span>command&lt;span style="color:#908caa">]&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Available Commands:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> bash Generate the autocompletion script &lt;span style="color:#31748f">for&lt;/span> bash
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> fish Generate the autocompletion script &lt;span style="color:#31748f">for&lt;/span> fish
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> powershell Generate the autocompletion script &lt;span style="color:#31748f">for&lt;/span> powershell
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> zsh Generate the autocompletion script &lt;span style="color:#31748f">for&lt;/span> zsh
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Flags:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -h, --help &lt;span style="color:#ebbcba">help&lt;/span> &lt;span style="color:#31748f">for&lt;/span> completion
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="spin-kube-completion-bash">spin kube completion bash&lt;a class="td-heading-self-link" href="#spin-kube-completion-bash" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>spin kube completion bash --help
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Generate the autocompletion script &lt;span style="color:#31748f">for&lt;/span> the bash shell.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>This script depends on the &lt;span style="color:#f6c177">&amp;#39;bash-completion&amp;#39;&lt;/span> package.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>If it is not installed already, you can install it via your OS&lt;span style="color:#eb6f92">&amp;#39;&lt;/span>s package manager.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>To load completions in your current shell session:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	&lt;span style="color:#ebbcba">source&lt;/span> &amp;lt;&lt;span style="color:#908caa">(&lt;/span>kube completion bash&lt;span style="color:#908caa">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>To load completions &lt;span style="color:#31748f">for&lt;/span> every new session, execute once:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#6e6a86">#### Linux:&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	kube completion bash &amp;gt; /etc/bash_completion.d/kube
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#6e6a86">#### macOS:&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	kube completion bash &amp;gt; &lt;span style="color:#31748f">$(&lt;/span>brew --prefix&lt;span style="color:#31748f">)&lt;/span>/etc/bash_completion.d/kube
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>You will need to start a new shell &lt;span style="color:#31748f">for&lt;/span> this setup to take effect.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Usage:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> kube completion bash
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Flags:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -h, --help &lt;span style="color:#ebbcba">help&lt;/span> &lt;span style="color:#31748f">for&lt;/span> bash
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --no-descriptions disable completion descriptions
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="spin-kube-completion-fish">spin kube completion fish&lt;a class="td-heading-self-link" href="#spin-kube-completion-fish" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>spin kube completion fish --help
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Generate the autocompletion script &lt;span style="color:#31748f">for&lt;/span> the fish shell.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>To load completions in your current shell session:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	kube completion fish &lt;span style="color:#908caa">|&lt;/span> &lt;span style="color:#ebbcba">source&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>To load completions &lt;span style="color:#31748f">for&lt;/span> every new session, execute once:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	kube completion fish &amp;gt; ~/.config/fish/completions/kube.fish
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>You will need to start a new shell &lt;span style="color:#31748f">for&lt;/span> this setup to take effect.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Usage:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> kube completion fish &lt;span style="color:#908caa">[&lt;/span>flags&lt;span style="color:#908caa">]&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Flags:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -h, --help &lt;span style="color:#ebbcba">help&lt;/span> &lt;span style="color:#31748f">for&lt;/span> fish
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --no-descriptions disable completion descriptions
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="spin-kube-completion-powershell">spin kube completion powershell&lt;a class="td-heading-self-link" href="#spin-kube-completion-powershell" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>spin kube completion powershell --help
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Generate the autocompletion script &lt;span style="color:#31748f">for&lt;/span> powershell.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>To load completions in your current shell session:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	kube completion powershell &lt;span style="color:#908caa">|&lt;/span> Out-String &lt;span style="color:#908caa">|&lt;/span> Invoke-Expression
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>To load completions &lt;span style="color:#31748f">for&lt;/span> every new session, add the output of the above &lt;span style="color:#ebbcba">command&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>to your powershell profile.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Usage:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> kube completion powershell &lt;span style="color:#908caa">[&lt;/span>flags&lt;span style="color:#908caa">]&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Flags:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -h, --help &lt;span style="color:#ebbcba">help&lt;/span> &lt;span style="color:#31748f">for&lt;/span> powershell
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --no-descriptions disable completion descriptions
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="spin-kube-completion-zsh">spin kube completion zsh&lt;a class="td-heading-self-link" href="#spin-kube-completion-zsh" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>spin kube completion zsh --help
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Generate the autocompletion script &lt;span style="color:#31748f">for&lt;/span> the zsh shell.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>If shell completion is not already enabled in your environment you will need
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>to &lt;span style="color:#ebbcba">enable&lt;/span> it. You can execute the following once:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	&lt;span style="color:#ebbcba">echo&lt;/span> &lt;span style="color:#f6c177">&amp;#34;autoload -U compinit; compinit&amp;#34;&lt;/span> &amp;gt;&amp;gt; ~/.zshrc
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>To load completions in your current shell session:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	&lt;span style="color:#ebbcba">source&lt;/span> &amp;lt;&lt;span style="color:#908caa">(&lt;/span>kube completion zsh&lt;span style="color:#908caa">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>To load completions &lt;span style="color:#31748f">for&lt;/span> every new session, execute once:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#6e6a86">#### Linux:&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	kube completion zsh &amp;gt; &lt;span style="color:#f6c177">&amp;#34;&lt;/span>&lt;span style="color:#f6c177">${&lt;/span>&lt;span style="color:#ebbcba">fpath&lt;/span>&lt;span style="color:#908caa">[1]&lt;/span>&lt;span style="color:#f6c177">}&lt;/span>&lt;span style="color:#f6c177">/_kube&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#6e6a86">#### macOS:&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>	kube completion zsh &amp;gt; &lt;span style="color:#31748f">$(&lt;/span>brew --prefix&lt;span style="color:#31748f">)&lt;/span>/share/zsh/site-functions/_kube
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>You will need to start a new shell &lt;span style="color:#31748f">for&lt;/span> this setup to take effect.
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Usage:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> kube completion zsh &lt;span style="color:#908caa">[&lt;/span>flags&lt;span style="color:#908caa">]&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Flags:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -h, --help &lt;span style="color:#ebbcba">help&lt;/span> &lt;span style="color:#31748f">for&lt;/span> zsh
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --no-descriptions disable completion descriptions
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="spin-kube-help">spin kube help&lt;a class="td-heading-self-link" href="#spin-kube-help" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>spin kube --help
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Manage apps running on Kubernetes
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Usage:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> kube &lt;span style="color:#908caa">[&lt;/span>command&lt;span style="color:#908caa">]&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Available Commands:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> completion Generate the autocompletion script &lt;span style="color:#31748f">for&lt;/span> the specified shell
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#ebbcba">help&lt;/span> Help about any &lt;span style="color:#ebbcba">command&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> scaffold scaffold SpinApp manifest
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> version Display version information
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Flags:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -h, --help &lt;span style="color:#ebbcba">help&lt;/span> &lt;span style="color:#31748f">for&lt;/span> kube
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --kubeconfig string the path to the kubeconfig file
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -n, --namespace string the namespace scope
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -v, --version version &lt;span style="color:#31748f">for&lt;/span> kube
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="spin-kube-scaffold">spin kube scaffold&lt;a class="td-heading-self-link" href="#spin-kube-scaffold" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>spin kube scaffold --help
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>scaffold SpinApp manifest
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Usage:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> kube scaffold &lt;span style="color:#908caa">[&lt;/span>flags&lt;span style="color:#908caa">]&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Flags:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --autoscaler string The autoscaler to use. Valid values are &lt;span style="color:#f6c177">&amp;#39;hpa&amp;#39;&lt;/span> and &lt;span style="color:#f6c177">&amp;#39;keda&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --autoscaler-target-cpu-utilization int32 The target CPU utilization percentage to maintain across all pods &lt;span style="color:#908caa">(&lt;/span>default 60&lt;span style="color:#908caa">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --autoscaler-target-memory-utilization int32 The target memory utilization percentage to maintain across all pods &lt;span style="color:#908caa">(&lt;/span>default 60&lt;span style="color:#908caa">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --cpu-limit string The maximum amount of CPU resource units the Spin application is allowed to use
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --cpu-request string The amount of CPU resource units requested by the Spin application. Used to determine which node the Spin application will run on
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --executor string The executor used to run the Spin application &lt;span style="color:#908caa">(&lt;/span>default &lt;span style="color:#f6c177">&amp;#34;containerd-shim-spin&amp;#34;&lt;/span>&lt;span style="color:#908caa">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -f, --from string Reference in the registry of the Spin application
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -h, --help &lt;span style="color:#ebbcba">help&lt;/span> &lt;span style="color:#31748f">for&lt;/span> scaffold
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -s, --image-pull-secret strings secrets in the same namespace to use &lt;span style="color:#31748f">for&lt;/span> pulling the image
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --max-replicas int32 Maximum number of replicas &lt;span style="color:#31748f">for&lt;/span> the spin app. Autoscaling must be enabled to use this flag &lt;span style="color:#908caa">(&lt;/span>default 3&lt;span style="color:#908caa">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --memory-limit string The maximum amount of memory the Spin application is allowed to use
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> --memory-request string The amount of memory requested by the Spin application. Used to determine which node the Spin application will run on
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -o, --out string path to file to write manifest yaml
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -r, --replicas int32 Minimum number of replicas &lt;span style="color:#31748f">for&lt;/span> the spin app &lt;span style="color:#908caa">(&lt;/span>default 2&lt;span style="color:#908caa">)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> -c, --runtime-config-file string path to runtime config file
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="spin-kube-version">spin kube version&lt;a class="td-heading-self-link" href="#spin-kube-version" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>spin kube version
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div></description></item><item><title>Installing the `spin kube` plugin</title><link>/docs/install/spin-kube-plugin/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/install/spin-kube-plugin/</guid><description>&lt;p>The &lt;code>kube&lt;/code> plugin for &lt;code>spin&lt;/code> (The Spin CLI) provides first class experience for working with Spin
apps in the context of Kubernetes.&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 Spin CLI (&lt;a href="https://developer.fermyon.com/spin/v2/upgrade">version 2.3.1 or
newer&lt;/a>) installed on your machine.&lt;/p>
&lt;h2 id="install-the-plugin">Install the plugin&lt;a class="td-heading-self-link" href="#install-the-plugin" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>Before you install the plugin, you should fetch the list of latest Spin plugins from the
spin-plugins repository:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#6e6a86"># Update the list of latest Spin plugins&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>spin plugins update
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Plugin information updated successfully
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Go ahead and install the &lt;code>kube&lt;/code> using &lt;code>spin plugin install&lt;/code>:&lt;/p></description></item><item><title>Installing with Helm</title><link>/docs/install/installing-with-helm/</link><pubDate>Fri, 16 Feb 2024 00:00:00 +0000</pubDate><guid>/docs/install/installing-with-helm/</guid><description>&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 guide in particular, you will need:&lt;/p>
&lt;ul>
&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://helm.sh">Helm&lt;/a> - the package manager for Kubernetes&lt;/li>
&lt;/ul>
&lt;h2 id="install-spin-operator-with-helm">Install Spin Operator With Helm&lt;a class="td-heading-self-link" href="#install-spin-operator-with-helm" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>The following instructions are for installing Spin Operator using a Helm chart (using &lt;code>helm install&lt;/code>).&lt;/p>
&lt;h3 id="prepare-the-cluster">Prepare the Cluster&lt;a class="td-heading-self-link" href="#prepare-the-cluster" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;p>Before installing the chart, you&amp;rsquo;ll need to ensure the following are installed:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://github.com/cert-manager/cert-manager">cert-manager&lt;/a> to automatically provision and manage
TLS certificates (used by spin-operator&amp;rsquo;s admission webhook system). For detailed installation
instructions see &lt;a href="https://cert-manager.io/docs/installation/">the cert-manager documentation&lt;/a>.&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.20.0/cert-manager.yaml
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;ul>
&lt;li>&lt;a href="https://github.com/spinframework/runtime-class-manager">Runtime Class Manager&lt;/a> is required to install WebAssembly shims on Kubernetes nodes that don&amp;rsquo;t already include them. See more details at the project&amp;rsquo;s &lt;a href="https://github.com/spinframework/runtime-class-manager/blob/main/README.md">README.md&lt;/a>.&lt;/li>
&lt;/ul>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#6e6a86"># Install Runtime Class Manager&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>helm upgrade --install runtime-class-manager &lt;span style="color:#31748f">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#31748f">&lt;/span> --namespace runtime-class-manager &lt;span style="color:#31748f">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#31748f">&lt;/span> --create-namespace &lt;span style="color:#31748f">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#31748f">&lt;/span> --version 0.2.0 &lt;span style="color:#31748f">\
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#31748f">&lt;/span> oci://ghcr.io/spinframework/charts/runtime-class-manager
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#6e6a86"># Create Shim resource for installing the containerd-shim-spin binary&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>kubectl apply -f https://github.com/spinframework/containerd-shim-spin/releases/download/v0.27.2/runtime-class-manager-shim-v1alpha1-v0.27.2.yaml
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#6e6a86"># Label all Nodes where the shim should be installed (and thus where Spin Apps may run)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#6e6a86"># Note: this specific key and value matches the nodeSelector configuration used in the Shim resource above&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>kubectl label node --all &lt;span style="color:#ebbcba">spin&lt;/span>&lt;span style="color:#908caa">=&lt;/span>&lt;span style="color:#ebbcba">true&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>You should now see a &lt;code>wasmtime-spin-v2&lt;/code> RuntimeClass and all labeled Nodes should be ready to run Spin Apps.&lt;/p></description></item><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 Linode Kubernetes Engine (LKE)</title><link>/docs/install/linode-kubernetes-engine/</link><pubDate>Tue, 23 Jul 2024 00:00:00 +0000</pubDate><guid>/docs/install/linode-kubernetes-engine/</guid><description>&lt;p>This guide walks through the process of installing and configuring SpinKube on Linode Kubernetes
Engine (LKE).&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>This guide assumes that you have an &lt;a href="https://login.linode.com/">Akamai Linode&lt;/a> account that is
configured and has sufficient permissions for creating a new LKE cluster.&lt;/p>
&lt;p>You will also need recent versions of &lt;code>kubectl&lt;/code> and &lt;code>helm&lt;/code> installed on your system.&lt;/p>
&lt;h2 id="creating-an-lke-cluster">Creating an LKE Cluster&lt;a class="td-heading-self-link" href="#creating-an-lke-cluster" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>LKE has a managed control plane, so you only need to create the pool of worker nodes. In this
tutorial, we will create a 2-node LKE cluster using the smallest available worker nodes. This should
be fine for installing SpinKube and running up to around 100 Spin apps.&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>Installing on Microk8s</title><link>/docs/install/microk8s/</link><pubDate>Wed, 19 Jun 2024 00:00:00 +0000</pubDate><guid>/docs/install/microk8s/</guid><description>&lt;p>This guide walks through the process of installing and configuring Microk8s and SpinKube.&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>This guide assumes you are running Ubuntu 24.04, and that you have Snap enabled (which is the
default).&lt;/p>
&lt;blockquote>
&lt;p>The testing platform for this installation was an Akamai Edge Linode running 4G of memory and 2
cores.&lt;/p>
&lt;/blockquote>
&lt;h2 id="installing-spin">Installing Spin&lt;a class="td-heading-self-link" href="#installing-spin" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>You will need to &lt;a href="https://developer.fermyon.com/spin/quickstart">install Spin&lt;/a>. The easiest way is
to just use the following one-liner to get the latest version of Spin:&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>Writing code</title><link>/docs/contrib/writing-code/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/contrib/writing-code/</guid><description>&lt;p>Interested in giving back to the community a little? Maybe you&amp;rsquo;ve found a bug in SpinKube that you&amp;rsquo;d
like to see fixed, or maybe there&amp;rsquo;s a small feature you want added.&lt;/p>
&lt;p>Contributing back to SpinKube itself is the best way to see your own concerns addressed. This may
seem daunting at first, but it&amp;rsquo;s a well-traveled path with documentation, tooling, and a community
to support you. We&amp;rsquo;ll walk you through the entire process, so you can learn by example.&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>Writing documentation</title><link>/docs/contrib/writing-documentation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/contrib/writing-documentation/</guid><description>&lt;p>We place high importance on the consistency and readability of documentation. We treat our
documentation like we treat our code: we aim to improve it as often as possible.&lt;/p>
&lt;p>Documentation changes generally come in two forms:&lt;/p>
&lt;ol>
&lt;li>General improvements: typo corrections, error fixes and better explanations through clearer
writing and more examples.&lt;/li>
&lt;li>New features: documentation of features that have been added to the project since the last
release.&lt;/li>
&lt;/ol>
&lt;p>This section explains how writers can craft their documentation changes in the most useful and least
error-prone ways.&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>Connecting to your app</title><link>/docs/topics/routing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/topics/routing/</guid><description>&lt;p>This topic guide shows you how to connect to your application deployed to SpinKube, including how to
use port-forwarding for local development, or Ingress rules for a production setup.&lt;/p>
&lt;h2 id="run-the-sample-application">Run the sample application&lt;a class="td-heading-self-link" href="#run-the-sample-application" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>Let&amp;rsquo;s deploy a sample application to your Kubernetes cluster. We will use this application
throughout the tutorial to demonstrate how to connect to it.&lt;/p>
&lt;p>Refer to the &lt;a href="/docs/install/quickstart/">quickstart guide&lt;/a> if you haven&amp;rsquo;t set up a Kubernetes cluster
yet.&lt;/p></description></item><item><title>Monitoring your app</title><link>/docs/topics/monitoring-your-app/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/topics/monitoring-your-app/</guid><description>&lt;p>This topic guide shows you how to configure SpinKube so your Spin apps export observability data. This data will export to an OpenTelemetry collector which will send it to Jaeger.&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 you have the following tools installed before continuing:&lt;/p>
&lt;ul>
&lt;li>A Kubernetes cluster running SpinKube. See the &lt;a href="https://www.spinkube.dev/docs/install/">installation guides&lt;/a> for more information&lt;/li>
&lt;li>The &lt;a href="https://kubernetes.io/docs/tasks/tools/">kubectl CLI&lt;/a>&lt;/li>
&lt;li>The &lt;a href="https://helm.sh">Helm CLI&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="about-opentelemetry-collector">About OpenTelemetry Collector&lt;a class="td-heading-self-link" href="#about-opentelemetry-collector" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>From the OpenTelemetry &lt;a href="https://opentelemetry.io/docs/collector/">documentation&lt;/a>:&lt;/p>
&lt;blockquote>
&lt;p>The OpenTelemetry Collector offers a vendor-agnostic implementation of how to receive, process and export telemetry data. It removes the need to run, operate, and maintain multiple agents/collectors. This works with improved scalability and supports open source observability data formats (e.g. Jaeger, Prometheus, Fluent Bit, etc.) sending to one or more open source or commercial backends.&lt;/p></description></item><item><title>Troubleshooting</title><link>/docs/contrib/troubleshooting/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/contrib/troubleshooting/</guid><description>&lt;p>The following is a list of common error messages and potential troubleshooting suggestions that
might assist you with your work.&lt;/p>
&lt;h2 id="spinkube-support-policy">SpinKube Support Policy&lt;a class="td-heading-self-link" href="#spinkube-support-policy" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>SpinKube provides support on a best-effort basis. For users who installed SpinKube manually following the documentation, please report issues in the &lt;a href="https://github.com/spinframework/spin-operator/issues/new">Spin Operator repository&lt;/a>. For installations via the Azure Marketplace, please open an issue in the &lt;a href="https://github.com/spinframework/azure/issues/new">Azure repository&lt;/a> for assistance. If your issue is urgent, feel free to raise it in &lt;a href="https://cloud-native.slack.com/archives/C06PC7JA1EE">Slack&lt;/a>.&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>SpinKube at a glance</title><link>/docs/topics/architecture/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/topics/architecture/</guid><description>&lt;h2 id="spin-operator">spin-operator&lt;a class="td-heading-self-link" href="#spin-operator" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>&lt;a href="https://github.com/spinframework/spin-operator/">Spin Operator&lt;/a> is a &lt;a href="https://kubernetes.io/docs/concepts/extend-kubernetes/operator/">Kubernetes
operator&lt;/a> which empowers platform
engineers to deploy &lt;a href="https://developer.fermyon.com/spin">Spin applications&lt;/a> as custom resources to
their Kubernetes clusters. Spin Operator provides an elegant solution for platform engineers looking
to improve efficiency without compromising on performance while maintaining workload portability.&lt;/p>
&lt;h3 id="why-spin-operator">Why Spin Operator?&lt;a class="td-heading-self-link" href="#why-spin-operator" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;p>By bringing the power of the Spin framework to Kubernetes clusters, Spin Operator provides
application developers and platform engineers with the best of both worlds. For developers, this
means easily building portable serverless functions that leverage the power and performance of Wasm
via the Spin developer tool. For platform engineers, this means using idiomatic Kubernetes
primitives (secrets, autoscaling, etc.) and tooling to manage these workloads at scale in a
production environment, improving their overall operational efficiency.&lt;/p></description></item><item><title>Executor Compatibility Matrices</title><link>/docs/install/compatibility-matrices/</link><pubDate>Fri, 08 Nov 2024 00:00:00 +0000</pubDate><guid>/docs/install/compatibility-matrices/</guid><description>&lt;h2 id="containerd-shim-spin-executor">&lt;code>containerd-shim-spin&lt;/code> Executor&lt;a class="td-heading-self-link" href="#containerd-shim-spin-executor" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>The &lt;a href="https://github.com/spinframework/containerd-shim-spin">Spin containerd shim&lt;/a> project is a containerd shim implementation for Spin.&lt;/p>
&lt;h3 id="spin-operator-and-shim-feature-map">Spin Operator and Shim Feature Map&lt;a class="td-heading-self-link" href="#spin-operator-and-shim-feature-map" aria-label="Heading self-link">&lt;/a>&lt;/h3>
&lt;p>If a feature is configured in a &lt;code>SpinApp&lt;/code> that is not supported in the version of the shim being
used, the application may not execute as expected. The following maps out the versions of the &lt;a href="https://github.com/spinframework/containerd-shim-spin">Spin
containerd shim&lt;/a>, Spin Operator, and &lt;code>spin kube&lt;/code>
plugin that have support for specific features.&lt;/p></description></item><item><title>Glossary</title><link>/docs/glossary/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/glossary/</guid><description>&lt;p>The following glossary of terms is in the context of deploying, scaling, automating and managing
Spin applications in containerized environments.&lt;/p>
&lt;h2 id="chart">Chart&lt;a class="td-heading-self-link" href="#chart" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>A Helm chart is a package format used in Kubernetes for deploying applications. It contains all the
necessary files, configurations, and dependencies required to deploy and manage an application on a
Kubernetes cluster. Helm charts provide a convenient way to define, install, and upgrade complex
applications in a consistent and reproducible manner.&lt;/p></description></item><item><title>Five New Things in SpinKube</title><link>/blog/2024/11/12/five-new-things-in-spinkube/</link><pubDate>Tue, 12 Nov 2024 00:00:00 +0000</pubDate><guid>/blog/2024/11/12/five-new-things-in-spinkube/</guid><description>&lt;p>Since we publicly &lt;a href="/blog/2024/03/13/introducing-spinkube/">released&lt;/a> SpinKube in March we&amp;rsquo;ve been hard at work steadily making it better. Spin Operator &lt;a href="https://github.com/spinframework/spin-operator/releases/tag/v0.4.0">&lt;code>v0.4.0&lt;/code>&lt;/a>, Containerd shim for Spin &lt;a href="https://github.com/spinframework/containerd-shim-spin/releases/tag/v0.17.0">&lt;code>v0.17.0&lt;/code>&lt;/a>, and &lt;code>spin kube&lt;/code> plugin &lt;a href="https://github.com/spinframework/spin-plugin-kube/releases/tag/v0.3.0">&lt;code>v0.3.0&lt;/code>&lt;/a> have all just been released. To celebrate that, here&amp;rsquo;s five new things in SpinKube you should know about.&lt;/p>
&lt;h2 id="selective-deployments">Selective Deployments&lt;a class="td-heading-self-link" href="#selective-deployments" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>SpinKube now supports selectively deploying a subset of a Spin apps components. Consider this simple example Spin application (named salutation in the &lt;a href="https://github.com/spinframework/spin-operator/tree/main/apps/salutations">example repo&lt;/a>) composed of two HTTP-triggered components: &lt;code>hello&lt;/code> and &lt;code>goodbye&lt;/code>. In the newly added &lt;code>components&lt;/code> field you can select which components you would like to be a part of the deployment. Here&amp;rsquo;s an example of what the YAML for a selectively deployed app might look like:&lt;/p></description></item><item><title>SpinKube on KinD: Rancher Desktop Super Powers</title><link>/blog/2024/04/01/spinkube-on-kind-rancher-desktop-super-powers/</link><pubDate>Mon, 01 Apr 2024 00:00:00 +0000</pubDate><guid>/blog/2024/04/01/spinkube-on-kind-rancher-desktop-super-powers/</guid><description>&lt;p>The goal of this guide is show a way to bring &lt;a href="https://www.spinkube.dev/">SpinKube&lt;/a> to
&lt;a href="https://kind.sigs.k8s.io/">KinD&lt;/a> without the need of a custom image, like the &lt;a href="https://www.spinkube.dev/docs/spin-operator/quickstart/">SpinKube on
KinD&lt;/a> example.&lt;/p>
&lt;p>Instead, the Rancher Desktop (RD) Spin plugin will be used alongside KinD cluster configuration.&lt;/p>
&lt;p>Finally, this guide will have three major sections covering the following:&lt;/p>
&lt;ul>
&lt;li>KinD configurations: contains the different configurations, depending on your OS&lt;/li>
&lt;li>RD on WSL: targets only Windows users&lt;/li>
&lt;li>RD on LIMA: targets both Linux and MacOS users&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>In order to follow this guide, the following applications need to be installed:&lt;/p></description></item><item><title>Introducing SpinKube</title><link>/blog/2024/03/13/introducing-spinkube/</link><pubDate>Wed, 13 Mar 2024 00:00:00 +0000</pubDate><guid>/blog/2024/03/13/introducing-spinkube/</guid><description>&lt;p>Today we&amp;rsquo;re introducing SpinKube - an open source platform for efficiently running Spin-based
WebAssembly (Wasm) applications on Kubernetes. Built with love by folks from Microsoft, SUSE,
LiquidReply, and Fermyon.&lt;/p>
&lt;p>SpinKube combines the application lifecycle management of the &lt;a href="https://github.com/spinframework/spin-operator">Spin Operator&lt;/a>, the
efficiency of the &lt;a href="https://github.com/spinframework/containerd-shim-spin">containerd-shim-spin&lt;/a>, and the node lifecycle management of
the forthcoming &lt;a href="https://github.com/spinframework/runtime-class-manager">runtime-class-manager&lt;/a> (formerly &lt;a href="https://kwasm.sh/">KWasm&lt;/a>) to provide
an excellent developer and operator experience alongside excellent density and scaling
characteristics regardless of processor architecture or deployment environment.&lt;/p></description></item><item><title>Using the `spin kube` plugin</title><link>/docs/topics/autoscaling/autoscaling/</link><pubDate>Mon, 26 Feb 2024 00:00:00 +0000</pubDate><guid>/docs/topics/autoscaling/autoscaling/</guid><description>&lt;h2 id="horizontal-autoscaling-support">Horizontal autoscaling support&lt;a class="td-heading-self-link" href="#horizontal-autoscaling-support" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>In Kubernetes, a horizontal autoscaler automatically updates a workload resource (such as a
Deployment or StatefulSet) with the aim of automatically scaling the workload to match demand.&lt;/p>
&lt;p>Horizontal scaling means that the response to increased load is to deploy more resources. This is
different from vertical scaling, which for Kubernetes would mean assigning more memory or CPU to the
resources that are already running for the workload.&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><item><title>Compatibility</title><link>/docs/misc/compatibility/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/misc/compatibility/</guid><description>&lt;p>See the following list of compatible Kubernetes distributions and platforms for running the &lt;a href="https://github.com/spinframework/spin-operator/">Spin
Operator&lt;/a>:&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://docs.aws.amazon.com/eks/">Amazon Elastic Kubernetes Service (EKS)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://azure.microsoft.com/en-us/products/kubernetes-service">Azure Kubernetes Service (AKS)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.civo.com/kubernetes">Civo Kubernetes&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://www.digitalocean.com/products/kubernetes">Digital Ocean Kubernetes (DOKS)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://cloud.google.com/kubernetes-engine">Google Kubernetes Engine (GKE)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://k3d.io">k3d&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://kind.sigs.k8s.io/">kind&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://minikube.sigs.k8s.io/docs/">minikube&lt;/a> (explicitly pass &lt;code>--container-runtime=containerd&lt;/code>
and ensure you&amp;rsquo;re on minikube version &lt;code>&amp;gt;= 1.33&lt;/code>)&lt;/li>
&lt;li>&lt;a href="https://www.scaleway.com/en/kubernetes-kapsule/">Scaleway Kubernetes Kapsule&lt;/a>&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>&lt;strong>Disclaimer&lt;/strong>: Please note that this is a working list of compatible Kubernetes distributions and
platforms. For managed Kubernetes services, it&amp;rsquo;s important to be aware that cloud providers may
choose to discontinue support for specific dependencies, such as container runtimes. While we
strive to maintain the accuracy of this documentation, it is ultimately your responsibility to
verify with your Kubernetes provider whether the required dependencies are still supported.&lt;/p></description></item><item><title>Integrations</title><link>/docs/misc/integrations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/misc/integrations/</guid><description>&lt;h1 id="spinkube-integrations">SpinKube Integrations&lt;a class="td-heading-self-link" href="#spinkube-integrations" aria-label="Heading self-link">&lt;/a>&lt;/h1>
&lt;h2 id="keda">KEDA&lt;a class="td-heading-self-link" href="#keda" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;p>&lt;a href="https://keda.sh/">Kubernetes Event-Driven Autoscaling (KEDA)&lt;/a> provides event-driven autoscaling for
Kubernetes workloads. It allows Kubernetes to automatically scale applications in response to
external events such as messages in a queue, enabling more efficient resource utilization and
responsive scaling based on actual demand, rather than static metrics. KEDA serves as a bridge
between Kubernetes and various event sources, making it easier to scale applications dynamically in
a cloud-native environment. If you would like to see how SpinKube integrates with KEDA, please read
the &lt;a href="/docs/topics/autoscaling/scaling-with-keda/">&amp;ldquo;Scaling With KEDA&amp;rdquo; tutorial&lt;/a> which deploys a SpinApp and the
KEDA ScaledObject instance onto a cluster. The tutorial also uses Bombardier to generate traffic to
test how well KEDA scales our SpinApp.&lt;/p></description></item><item><title>Search Results</title><link>/search/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/search/</guid><description/></item><item><title>SpinKube</title><link>/about/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/about/</guid><description>&lt;link rel="preload" as="image" href="/about/featured-background_hu1091484155924553188.jpg" media="(max-width: 1200px)">
&lt;link rel="preload" as="image" href="/about/featured-background_hu8533604575283119954.jpg" media="(min-width: 1200px)">
&lt;style>
#td-cover-block-0 {
 background-image: url(/about/featured-background_hu1091484155924553188.jpg);
}
@media only screen and (min-width: 1200px) {
 #td-cover-block-0 {
 background-image: url(/about/featured-background_hu8533604575283119954.jpg);
 }
}
&lt;/style>
&lt;section id="td-cover-block-0" class="row td-cover-block td-cover-block--height-full js-td-cover td-overlay td-overlay--dark -bg-dark">
 &lt;div class="col-12">
 &lt;div class="container td-overlay__inner">
 &lt;div class="text-center">
 &lt;h1 class="display-1 mt-0 mt-md-5 pb-4">Welcome to SpinKube&lt;/h1>
 
 &lt;div class="pt-3 lead">
 
 &lt;p>&lt;a class="btn
btn-lg btn-primary me-3 mb-4" href="/docs/"> SpinKube Documentation &lt;i class="fas
fa-arrow-alt-circle-right ms-2">&lt;/i> &lt;/a>&lt;/p>
&lt;p class="lead mt-5">A new open source project that streamlines the experience of developing, deploying, and operating Wasm workloads on Kubernetes.&lt;/p>
&lt;p>&lt;a class="btn btn-link text-info" href="#td-block-1" aria-label="Read more">&lt;i class="fa-solid fa-circle-chevron-down" style="font-size: 400%">&lt;/i>&lt;/a>&lt;/p>

 
 &lt;/div>
 &lt;/div>
 &lt;/div>
 &lt;/div>
 
&lt;/section>

&lt;div>&lt;a id="td-block-1" class="td-offset-anchor">&lt;/a>&lt;/div>
&lt;section class="row td-box td-box--primary position-relative td-box--height-auto">
&lt;div class="col-12">
&lt;div class="container text-center td-arrow-down">
&lt;div class="h4 mb-0">
&lt;p>SpinKube comprises the following open source projects.&lt;/p></description></item><item><title>Spintainer Executor</title><link>/docs/misc/spintainer-executor/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/misc/spintainer-executor/</guid><description>&lt;h1 id="the-spintainer-executor">The Spintainer Executor&lt;a class="td-heading-self-link" href="#the-spintainer-executor" aria-label="Heading self-link">&lt;/a>&lt;/h1>
&lt;p>The Spintainer (a play on the words Spin and container) executor is a &lt;a href="../../reference/spin-app-executor">SpinAppExecutor&lt;/a> that runs Spin applications directly in a container rather than via the &lt;a href="../../topics/architecture#containerd-shim-spin">shim&lt;/a>. This is useful for a number of reasons:&lt;/p>
&lt;ul>
&lt;li>Provides the flexibility to:
&lt;ul>
&lt;li>Use any Spin version you want.&lt;/li>
&lt;li>Use any custom triggers or plugins you want.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Allows you to use SpinKube even if you don&amp;rsquo;t have the cluster permissions to install the shim.&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>Note: We recommend using the shim for most use cases. The spintainer executor is best saved as a workaround.&lt;/p></description></item><item><title>Upgrading to v0.4.0</title><link>/docs/misc/upgrading-to-v0.4.0/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>/docs/misc/upgrading-to-v0.4.0/</guid><description>&lt;p>Spin Operator v0.4.0 introduces a breaking API change. The SpinApp and SpinAppExecutor are moving from the &lt;code>spinoperator.dev&lt;/code> to &lt;code>spinkube.dev&lt;/code> domains. This is a breaking change and therefore requires a re-install of the Spin Operator when upgrading to v0.4.0.&lt;/p>
&lt;h2 id="migration-steps">Migration steps&lt;a class="td-heading-self-link" href="#migration-steps" aria-label="Heading self-link">&lt;/a>&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Uninstall any existing SpinApps.&lt;/p>
&lt;blockquote>
&lt;p>Note: Back em&amp;rsquo; up! TODO&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>kubectl get spinapps.core.spinoperator.dev -o yaml &amp;gt; spinapps.yaml
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/blockquote>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>kubectl delete spinapp.core.spinoperator.dev --all
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Uninstall any existing SpinAppExecutors.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#e0def4;background-color:#191724;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>kubectl delete spinappexecutor.core.spinoperator.dev --all
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;/li>
&lt;li>
&lt;p>Uninstall the old Spin Operator.&lt;/p></description></item></channel></rss>