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
@@ -96,7 +95,6 @@ Now you can deploy your app using `kubectl` as you normally would:
96
95
```bash
97
96
# Deploy the spinapp.yaml using kubectl
98
97
kubectl apply -f spinapp.yaml
99
-
# TODO make sure that's the right domain
100
98
spinapp.core.spinkube.dev/salutations created
101
99
```
102
100
@@ -106,18 +104,22 @@ We can test that only our `hello` component is running by port-forwarding its se
106
104
kubectl port-forward svc/salutations 8083:80
107
105
```
108
106
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:
110
108
111
109
```bash
112
110
curl localhost:8083/hi
113
-
# TODO include output
114
111
```
115
112
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:
117
120
118
121
```bash
119
122
curl localhost:8083/bye
120
-
# TODO include output
121
123
```
122
124
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