Skip to content

Commit

Permalink
Merge pull request #97 from spinkube/feature/spin-operator-0.1.0
Browse files Browse the repository at this point in the history
Bump Spin Operator refs to 0.1.0
  • Loading branch information
vdice committed Mar 13, 2024
2 parents d287c48 + f0ccc3a commit 392c804
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 25 deletions.
Expand Up @@ -27,7 +27,7 @@ Before installing the chart, you'll need to ensure the following:
The [Custom Resource Definition (CRD)]({{< ref "glossary#custom-resource-definition-crd" >}}) resources are installed. This includes the SpinApp CRD representing Spin applications to be scheduled on the cluster.

```console
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.crds.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.crds.yaml
```

A [RuntimeClass]({{< ref "glossary#runtime-class" >}}) resource class that
Expand All @@ -36,14 +36,14 @@ are deploying to a production cluster that only has a shim on a subset of nodes,
you'll need to modify the RuntimeClass with a `nodeSelector:`.

```console
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.runtime-class.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.runtime-class.yaml
```

The `containerd-spin-shim` [SpinAppExecutor]({{< ref "glossary#spin-app-executor-crd" >}}) custom resource is installed. This
tells Spin Operator to use the containerd shim executor to run Spin apps:

```console
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.shim-executor.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.shim-executor.yaml
```

## Chart prerequisites
Expand Down Expand Up @@ -93,7 +93,7 @@ The following installs the chart with the release name `spin-operator`:
helm install spin-operator \
--namespace spin-operator \
--create-namespace \
--version 0.0.2 \
--version 0.1.0 \
--wait \
oci://ghcr.io/spinkube/charts/spin-operator
```
Expand All @@ -103,7 +103,7 @@ helm install spin-operator \
Note that you may also need to upgrade the spin-operator CRDs in tandem with upgrading the Helm release:

```shell
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.crds.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.crds.yaml
```

To upgrade the `spin-operator` release, run the following:
Expand All @@ -112,7 +112,7 @@ To upgrade the `spin-operator` release, run the following:
# Upgrade Spin Operator using Helm
helm upgrade spin-operator \
--namespace spin-operator \
--version 0.0.2 \
--version 0.1.0 \
--wait \
oci://ghcr.io/spinkube/charts/spin-operator
```
Expand All @@ -131,9 +131,9 @@ This will remove all Kubernetes resources associated with the chart and deletes
To completely uninstall all resources related to spin-operator, you may want to delete the corresponding CRD resources and, optionally, the RuntimeClass:

```console
kubectl delete -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.crds.yaml
kubectl delete -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.runtime-class.yaml
kubectl delete -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.shim-executor.yaml
kubectl delete -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.crds.yaml
kubectl delete -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.runtime-class.yaml
kubectl delete -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.shim-executor.yaml
```

<!-- TODO: list out configuration options? -->
Expand Down
8 changes: 4 additions & 4 deletions content/en/docs/spin-operator/quickstart/_index.md
Expand Up @@ -43,13 +43,13 @@ kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/
> Note: In a production cluster you likely want to customize the Runtime Class with a `nodeSelector` that matches nodes that have the shim installed. However, in the K3d example, they're installed on every node.
```console
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.runtime-class.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.runtime-class.yaml
```

4. Apply the [Custom Resource Definitions](../../glossary#custom-resource-definition-crd) used by the Spin Operator:

```console
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.crds.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.crds.yaml
```

## Deploy the Spin Operator
Expand All @@ -61,15 +61,15 @@ Execute the following command to install the Spin Operator on the K3d cluster us
helm install spin-operator \
--namespace spin-operator \
--create-namespace \
--version 0.0.2 \
--version 0.1.0 \
--wait \
oci://ghcr.io/spinkube/charts/spin-operator
```

Lastly, create the [shim executor]({{< ref "glossary#spin-app-executor-crd" >}}):

```console
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.shim-executor.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.shim-executor.yaml
```

## Run the Sample Application
Expand Down
Expand Up @@ -75,10 +75,10 @@ First, the [Custom Resource Definition (CRD)]({{< ref "/docs/glossary/_index.md#

```shell
# Install the CRDs
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.crds.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.crds.yaml

# Install the Runtime Class
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.runtime-class.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.runtime-class.yaml
```

The following installs [cert-manager](https://github.com/cert-manager/cert-manager) which is required to automatically provision and manage TLS certificates (used by the admission webhook system of Spin Operator)
Expand Down Expand Up @@ -135,15 +135,15 @@ The following installs the chart with the release name `spin-operator` in the `s
helm install spin-operator \
--namespace spin-operator \
--create-namespace \
--version 0.0.2 \
--version 0.1.0 \
--wait \
oci://ghcr.io/spinkube/charts/spin-operator
```

Lastly, create the [shim executor]({{< ref "glossary#spin-app-executor-crd" >}})::

```console
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.shim-executor.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.shim-executor.yaml
```

## Deploying a Spin App to AKS
Expand Down
8 changes: 4 additions & 4 deletions content/en/docs/spin-operator/tutorials/scaling-with-hpa.md
Expand Up @@ -58,10 +58,10 @@ Next, run the following commands to install the Spin [Runtime Class]({{<ref "glo
```console
# Install the RuntimeClass
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.runtime-class.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.runtime-class.yaml

# Install the CRDs
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.crds.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.crds.yaml
```

Lastly, install Spin Operator using `helm` and the [shim executor]({{< ref "glossary#spin-app-executor-crd" >}}) with the following commands:
Expand All @@ -71,12 +71,12 @@ Lastly, install Spin Operator using `helm` and the [shim executor]({{< ref "glos
helm install spin-operator \
--namespace spin-operator \
--create-namespace \
--version 0.0.2 \
--version 0.1.0 \
--wait \
oci://ghcr.io/spinkube/charts/spin-operator

# Install the shim executor
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.shim-executor.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.shim-executor.yaml
```

Great, now you have Spin Operator up and running on your cluster. This means you’re set to create and deploy SpinApps later on in the tutorial.
Expand Down
8 changes: 4 additions & 4 deletions content/en/docs/spin-operator/tutorials/scaling-with-keda.md
Expand Up @@ -58,10 +58,10 @@ Next, run the following commands to install the Spin [Runtime Class]({{<ref "glo
```console
# Install the RuntimeClass
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.runtime-class.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.runtime-class.yaml

# Install the CRDs
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.crds.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.crds.yaml
```

Lastly, install Spin Operator using `helm` and the [shim executor]({{< ref "glossary#spin-app-executor-crd" >}}) with the following commands:
Expand All @@ -71,12 +71,12 @@ Lastly, install Spin Operator using `helm` and the [shim executor]({{< ref "glos
helm install spin-operator \
--namespace spin-operator \
--create-namespace \
--version 0.0.2 \
--version 0.1.0 \
--wait \
oci://ghcr.io/spinkube/charts/spin-operator

# Install the shim executor
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.0.2/spin-operator.shim-executor.yaml
kubectl apply -f https://github.com/spinkube/spin-operator/releases/download/v0.1.0/spin-operator.shim-executor.yaml
```

Great, now you have Spin Operator up and running on your cluster. This means you’re set to create and deploy SpinApps later on in the tutorial.
Expand Down

0 comments on commit 392c804

Please sign in to comment.