You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Select the appropriate installer for your operating system for version 1.14.0.
23
+
page](https://github.com/rancher-sandbox/rancher-desktop/releases). We tested this documentation with Rancher Desktop `1.19.1` with Spin `v3.2.0`, but it should work with more recent versions.
24
+
- Select the appropriate installer for your operating system.
25
25
2.**Install Rancher Desktop**:
26
26
- Run the downloaded installer and follow the on-screen instructions to complete the
27
27
installation.
28
28
29
29
### Step 2: Configure Rancher Desktop
30
30
31
-
- Open Rancher Desktop.
32
-
- Navigate to the **Preferences** -> **Kubernetes** menu.
33
-
- Ensure that the **Enable****Kubernetes** is selected and that the **Enable Traefik** and
34
-
**Install Spin Operator** Options are checked. Make sure to **Apply** your changes.
-Make sure that the Enable Wasm option is checked in the **Preferences**→**Container Engine
44
-
section**. Remember to always apply your changes.
38
+
-Navigate to the **Preferences**->**Kubernetes** menu.
39
+
- Enable Kubernetes, Traefik and Spin Operator (under **Preferences** -> **Kubernetes** ensure that the **Enable Kubernetes**, **Enable Traefik** and **Install Spin Operator** options are checked.)
- Once your changes have been applied, go to the **Cluster Dashboard** -> **Workloads**. You should see the `spin-operator-controller-manager` deployed to the `spin-operator` namespace.
53
46
54
47
### Step 3: Creating a Spin Application
55
48
@@ -61,17 +54,21 @@ essentials to work with containers and Kubernetes on your desktop.
61
54
$ spin new -t http-js hello-k3s --accept-defaults
62
55
$ cd hello-k3s
63
56
```
64
-
3. We can edit the `/src/index.js` file and make the workload return a string "Hello from Rancher
65
-
Desktop":
57
+
58
+
3. We can edit the `/src/index.js` file and make the workload return a string "Hello from Rancher Desktop":
66
59
67
60
```javascript
68
-
exportasyncfunctionhandleRequest(request) {
69
-
return {
70
-
status:200,
71
-
headers: {"content-type":"text/plain"},
72
-
body:"Hello from Rancher Desktop"// <-- This changed
73
-
}
74
-
}
61
+
import { AutoRouter } from'itty-router';
62
+
63
+
let router =AutoRouter();
64
+
65
+
router
66
+
.get("/", () =>newResponse("Hello from Rancher Desktop")) // <-- this changed
67
+
.get('/hello/:name', ({ name }) =>`Hello, ${name}!`)
0 commit comments