Skip to content

Commit 94cc94c

Browse files
committed
added curl output
Signed-off-by: macolso <[email protected]>
1 parent 4aa90d3 commit 94cc94c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

content/en/docs/topics/selective-deployments.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ kind: SpinApp
8181
metadata:
8282
name: salutations
8383
spec:
84-
## TODO update image
8584
image: "ghcr.io/spinkube/spin-operator/salutations:20241105-223428-g4da3171"
8685
executor: containerd-shim-spin
8786
replicas: 1
@@ -96,7 +95,6 @@ Now you can deploy your app using `kubectl` as you normally would:
9695
```bash
9796
# Deploy the spinapp.yaml using kubectl
9897
kubectl apply -f spinapp.yaml
99-
# TODO make sure that's the right domain
10098
spinapp.core.spinkube.dev/salutations created
10199
```
102100

@@ -106,18 +104,22 @@ We can test that only our `hello` component is running by port-forwarding its se
106104
kubectl port-forward svc/salutations 8083:80
107105
```
108106

109-
Now let’s call the `/hi` route. If the hello component is running correctly, we should see a response of "hello":
107+
Now let’s call the `/hi` route in a seperate terminal:
110108

111109
```bash
112110
curl localhost:8083/hi
113-
# TODO include output
114111
```
115112

116-
Next, let’s try the `/bye` route. This should fail, confirming that only the hello component was deployed:
113+
If the hello component is running correctly, we should see a response of "Hello Fermyon!":
114+
115+
```bash
116+
Hello Fermyon!
117+
```
118+
119+
Next, let’s try the `/bye` route. This should return nothing, confirming that only the `hello` component was deployed:
117120

118121
```bash
119122
curl localhost:8083/bye
120-
# TODO include output
121123
```
122124

123-
And there you have it! You selectively deployed a subset of your Spin application to SpinKube with no modifications to your source code. This approach lets you easily deploy only the components you need, which can improve efficiency in environments where only specific services are required.
125+
There you have it! You selectively deployed a subset of your Spin application to SpinKube with no modifications to your source code. This approach lets you easily deploy only the components you need, which can improve efficiency in environments where only specific services are required.

0 commit comments

Comments
 (0)