@@ -219,35 +219,6 @@ Dockerhub namespace name instead of `duglin`, and change `GITREPO`
219
219
to be the name of your Github clone of this repo - typically you should
220
220
just need to swap ` duglin ` for your Github name.
221
221
222
- #### Setup our network
223
-
224
- Before we go any further, we'll need to modify our Istio configuration so that
225
- it allows outbound network traffic from our pods. By default Istio blocks all
226
- outbound traffic. To do this I have this ` ingress.yaml ` file:
227
-
228
- ```
229
- # Allow for pods to talk to the internet
230
- apiVersion: v1
231
- kind: ConfigMap
232
- metadata:
233
- annotations:
234
- kubectl.kubernetes.io/last-applied-configuration: |
235
- {"apiVersion":"v1","data":{"istio.sidecar.includeOutboundIPRanges":"*"},"kind":"ConfigMap","metadata":{"annotations":{},"name":"config-network","namespace":"knative-serving"}}
236
- name: config-network
237
- namespace: knative-serving
238
- data:
239
- istio.sidecar.includeOutboundIPRanges: 172.30.0.0/16,172.20.0.0/16,10.10.10.0/24
240
- ```
241
-
242
- Install this resouce:
243
-
244
- ```
245
- $ ./kapply ingress.yaml
246
- configmap/config-network created
247
- ```
248
-
249
- We'll talk more about the ` kapply ` command later.
250
-
251
222
#### Secrets
252
223
253
224
Before we get to the real point of this, which is deploying an application,
@@ -487,16 +458,16 @@ then we give it the name/location of the container image to use.
487
458
Once that's done, if you want a couple of seconds for the image to download,
488
459
you should then be able to ask for the list of services:
489
460
```
490
- $ ./kn service get
491
- NAME DOMAIN GENERATION AGE CONDITIONS READY REASON
492
- helloworld helloworld. default.kndemo.us-south.containers.appdomain.cloud 1 46s 3 OK / 3 True
461
+ $ ./kn service list
462
+ NAME URL GENERATION AGE CONDITIONS READY REASON
463
+ helloworld http:// helloworld- default.kndemo.us-south.containers.appdomain.cloud 1 10s 3 OK / 3 True
493
464
```
494
465
495
466
Notice that in there it will show you the full URL of the service that
496
467
you can then curl against:
497
468
498
469
```
499
- $ curl -sf helloworld. default.kndemo.us-south.containers.appdomain.cloud
470
+ $ curl -sf helloworld- default.kndemo.us-south.containers.appdomain.cloud
500
471
c8xg6: Hello World!
501
472
```
502
473
@@ -506,7 +477,7 @@ it, route traffic to it and even give it a relatively nice URL.
506
477
507
478
One more thing.... you can also access it via SSL:
508
479
```
509
- $ curl -sf https://helloworld. default.kndemo.us-south.containers.appdomain.cloud
480
+ $ curl -sf https://helloworld- default.kndemo.us-south.containers.appdomain.cloud
510
481
c8xg6: Hello World!
511
482
```
512
483
@@ -637,14 +608,14 @@ the full URL of the service, to find that do this:
637
608
` ` `
638
609
$ kubectl get ksvc
639
610
NAME DOMAIN LATESTCREATED LATESTREADY READY REASON
640
- helloworld helloworld. default.kndemo.us-south.containers.appdomain.cloud helloworld-s824d helloworld-s824d True
611
+ helloworld helloworld- default.kndemo.us-south.containers.appdomain.cloud helloworld-s824d helloworld-s824d True
641
612
` ` `
642
613
643
614
You'll notice that once the Service is ready the "DOMAIN" column will show
644
615
the full URL of the Service and that's what we'll use to call it.
645
616
646
617
```
647
- $ curl -sf helloworld. default.kndemo.us-south.containers.appdomain.cloud
618
+ $ curl -sf helloworld- default.kndemo.us-south.containers.appdomain.cloud
648
619
s824d: Hello World!
649
620
```
650
621
@@ -747,7 +718,7 @@ the request.
747
718
So, let's hit it:
748
719
749
720
```
750
- $ curl -sf helloworld. default.kndemo.us-south.containers.appdomain.cloud
721
+ $ curl -sf helloworld- default.kndemo.us-south.containers.appdomain.cloud
751
722
p8c2v: Hello World!
752
723
```
753
724
@@ -936,7 +907,7 @@ pod show up, which is our new version of the app running and ready to be
936
907
hit:
937
908
938
909
```
939
- $ curl -sf helloworld. default.kndemo.us-south.containers.appdomain.cloud
910
+ $ curl -sf helloworld- default.kndemo.us-south.containers.appdomain.cloud
940
911
7vh75: Now is the time for all good...
941
912
```
942
913
@@ -1031,7 +1002,7 @@ To see this rollout, we'll need to geneate some load. Make sure you've
1031
1002
built the `load` tool (`make load`):
1032
1003
1033
1004
```
1034
- $ ./load 10 30 http://helloworld. default.kndemo.us-south.containers.appdomain.cloud
1005
+ $ ./load 10 30 http://helloworld- default.kndemo.us-south.containers.appdomain.cloud
1035
1006
```
1036
1007
1037
1008
What you should see is something like this:
0 commit comments