<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Using SpinKube on SpinKube</title><link>/docs/topics/</link><description>Recent content in Using SpinKube on SpinKube</description><generator>Hugo</generator><language>en</language><atom:link href="/docs/topics/index.xml" rel="self" type="application/rss+xml"/><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>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>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></channel></rss>