-
Bug
-
Resolution: Done
-
Blocker
-
None
-
None
-
3
-
False
-
None
-
False
-
Documentation (Ref Guide, User Guide, etc.)
-
-
There are three errors that prevent the user from installing bookinfo with service mesh.
1. In "Deploying the Bookinfo application, step 5, the description says "Apply the the Istio injection label to the bookinfo namespace by entering the following command at the command line". First of all, that sentence has multiple typos. Second, the command shown is to apply a revision label and not for pod injection.
oc label namespace bookinfo istio.io/rev=<revision-name>
The result is that Bookinfo will not be part of the service mesh.
The command should be:
label namespace default istio-injection=enabled
2. In "Deploying the Bookinfo application, Verification, Step 3, the command has a typo that makes it not work. It is shown as:
$ oc exec "$(oc get pod -l app=ratings -o jsonpath='{.items[0].metadata.name}') -n bookinfo" -c ratings -n bookinfo -- curl -sS productpage:9080/productpage | grep -o "<title>.*</title>"
But should be...
oc exec "$(oc get pod -l app=ratings -n bookinfo -o jsonpath='{.items[0].metadata.name}')" -c ratings -n bookinfo -- curl -sS productpage:9080/productpage | grep -o "<title>.*</title>"
Note that the "-n bookinfo" comes before the "-o jsonpath=..." option.
3. Step 6 in "Accessing the Bookinfo application by using Istio gateway injection" has a similar issue to the last one (perhaps it's an environmental issue?), but
HOST=$(oc get route istio-ingressgateway -o jsonpath='{.spec.host}' -n bookinfo) $ echo productpage URL: http://$HOST/productpage
Only works if it is
HOST=$(oc get route istio-ingressgateway -n bookinfo -o jsonpath='{.spec.host}') $ echo productpage URL: http://$HOST/productpage
Note the repositioning of "-n bookinfo" in the first line.