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.
24
+
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.
25
+
- Select the appropriate installer for your operating system.
26
26
2.**Install Rancher Desktop**:
27
27
- Run the downloaded installer and follow the on-screen instructions to complete the
28
28
installation.
29
29
30
30
### Step 2: Configure Rancher Desktop
31
31
32
-
- Open Rancher Desktop.
33
-
- Navigate to the **Preferences** -> **Kubernetes** menu.
34
-
- Ensure that the **Enable****Kubernetes** is selected and that the **Enable Traefik** and
35
-
**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
45
-
section**. Remember to always apply your changes.
39
+
-Navigate to the **Preferences**->**Kubernetes** menu.
40
+
- 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.
54
47
55
48
### Step 3: Creating a Spin Application
56
49
@@ -62,17 +55,21 @@ essentials to work with containers and Kubernetes on your desktop.
62
55
$ spin new -t http-js hello-k3s --accept-defaults
63
56
$ cd hello-k3s
64
57
```
65
-
3. We can edit the `/src/index.js` file and make the workload return a string "Hello from Rancher
66
-
Desktop":
58
+
59
+
3. We can edit the `/src/index.js` file and make the workload return a string "Hello from Rancher Desktop":
67
60
68
61
```javascript
69
-
exportasyncfunctionhandleRequest(request) {
70
-
return {
71
-
status:200,
72
-
headers: {"content-type":"text/plain"},
73
-
body:"Hello from Rancher Desktop"// <-- This changed
74
-
}
75
-
}
62
+
import { AutoRouter } from'itty-router';
63
+
64
+
let router =AutoRouter();
65
+
66
+
router
67
+
.get("/", () =>newResponse("Hello from Rancher Desktop")) // <-- this changed
68
+
.get('/hello/:name', ({ name }) =>`Hello, ${name}!`)
0 commit comments