From b5f0dd231367922c25ada80149d49a2f384d3463 Mon Sep 17 00:00:00 2001 From: Timothy McCallum Date: Mon, 11 Mar 2024 12:01:35 +1000 Subject: [PATCH 1/3] Update running-locally.md Signed-off-by: tpmccallum tim.mccallum@fermyon.com Indicate where a fresh terminal is required for an upcoming command (so long-running processes can continue while new commands are run) Signed-off-by: Timothy McCallum --- content/en/docs/spin-operator/tutorials/running-locally.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/docs/spin-operator/tutorials/running-locally.md b/content/en/docs/spin-operator/tutorials/running-locally.md index 3d3dff2..7b4d255 100644 --- a/content/en/docs/spin-operator/tutorials/running-locally.md +++ b/content/en/docs/spin-operator/tutorials/running-locally.md @@ -48,7 +48,7 @@ Run the following command to run the Spin Operator locally: make run ``` -Run the following command to create a Runtime Class named `wamtime-spin-v2`: +In a fresh terminal, run the following command to create a Runtime Class named `wamtime-spin-v2`: ```console kubectl apply -f - < 80 Forwarding from [::1]:8083 -> 80 ``` -Run the following command, in a different terminal window: +In a fresh terminal, run the following command: ```console curl localhost:8083/hello From 59d1c3c77642acf63364f65af5ca1ce9bbcfea0c Mon Sep 17 00:00:00 2001 From: Timothy McCallum Date: Mon, 11 Mar 2024 17:40:53 +1000 Subject: [PATCH 2/3] Update running-locally.md Signed-off-by: tpmccallum tim.mccallum@fermyon.com Signed-off-by: Timothy McCallum --- content/en/docs/spin-operator/tutorials/running-locally.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/spin-operator/tutorials/running-locally.md b/content/en/docs/spin-operator/tutorials/running-locally.md index 7b4d255..b09a60d 100644 --- a/content/en/docs/spin-operator/tutorials/running-locally.md +++ b/content/en/docs/spin-operator/tutorials/running-locally.md @@ -106,7 +106,7 @@ simple-spinapp-5b8d8d69b4-snscs 1/1 Running 0 3m40s ``` -In a fresh terminal, using the `NAME` from above, run the following `kubectl` command to listen on port 8083 locally and +Using the `NAME` from above, run the following `kubectl` command to listen on port 8083 locally and forward to port 80 in the pod: ```console From d73174dc173b0e5f0f0b9ec0a8363e0bed392eb2 Mon Sep 17 00:00:00 2001 From: Thorsten Hans Date: Mon, 11 Mar 2024 08:46:15 +0100 Subject: [PATCH 3/3] chore: Apply RuntimeClass in a new terminal instance `make run` is blocking the previous terminal instance, that is why we have to ask the user to use a new one Signed-off-by: Thorsten Hans --- content/en/docs/spin-operator/tutorials/running-locally.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/spin-operator/tutorials/running-locally.md b/content/en/docs/spin-operator/tutorials/running-locally.md index b54ea3c..dac9cae 100644 --- a/content/en/docs/spin-operator/tutorials/running-locally.md +++ b/content/en/docs/spin-operator/tutorials/running-locally.md @@ -48,7 +48,7 @@ Run the following command to run the Spin Operator locally: make run ``` -Run the following command to create a Runtime Class named `wasmtime-spin-v2`: +In a fresh terminal, run the following command to create a Runtime Class named `wasmtime-spin-v2`: ```console kubectl apply -f - <