Closed jmazzitelli closed 1 month ago
This PR mainly touched the hack/istio/sail
scripts, so doesn't affect anyone. There is one change to the hack script that installs bookinfo - it now allows you to tell it which auto-injection label to add to the bookinfo namespace. The old behavior is still the default behavior (it adds istio-injection=enabled
label) so this should not be a breaking change.
You can see tracing is integrated and you can get to the Tempo UI:
Here you can see the Grafana integration:
The bookinfo graph also displays correctly:
Note: Sail does not install any gateways (which is why you'll see Kiali with some error/warnings in the masthead - its about missing ingress/egress gateways). Installations of those things are left up to the user. In the future we can add options to the scripts to install gateways but I left that out for now.
If you want to try this on OpenShift to see it work there, same basic commands, just spin up CRC and use "oc" for the client:
hack/crc-openshift.sh start
hack/istio/sail/install-ossm-release.sh -c oc install-operators
sleep 30
# (wait for OLM to start deploying things)hack/istio/sail/install-ossm-release.sh -c oc install-istio
hack/istio/install-bookinfo-demo.sh -tg -c oc -ail istio.io/rev=default-v1-23-0
There should be a Kiali route in the istio-system namespace that you can point your browser to now. Bonus - you also get OSSMC:
Kiali UI route: https://kiali-istio-system.apps-crc.testing/
These set of scripts will be able to install a full Istio-Kiali setup locally on a vanilla Kubernetes (not OpenShift).
You will get Sail operator and its Istio installation, Kiali operator and Kiali UI, along with Tempo operator and Tempo (for tracing backend and JaegerUI), Grafana, and Prometheus. The external services will have their UIs available assuming your k8s has a LoadBalancer (the steps below will give you that).
Here's how you can try it out.
For those that already have the kiali source repo git cloned locally and this PR branch checked out, here's a quick summary of the commands you can run to see everything... following this will be a more detailed set of instructions that even those that do not have the full source git cloned can run this stuff.
Quick summary of the test steps
hack/k8s-minikube.sh --load-balancer-addrs "70-84" start
hack/istio/sail/install-ossm-release.sh -c kubectl install-operators
sleep 30
# (wait a little bit for the operators to start installing - just wait 30 seconds or so for OLM to start installing things)hack/istio/sail/install-ossm-release.sh -c kubectl install-istio
hack/istio/install-bookinfo-demo.sh -tg -c kubectl -ail istio.io/rev=default-v1-23-0
hack/kiali-port-forward.sh
Give it a minute or two for everything to start up and requests start flowing through the bookinfo traffic generator. Eventually you should see everything - bookinfo demo graph, you should be able to see traces, Jaeger UI , and Grafana UI links.
More details on the test steps
./kiali/hack/istio/sail
):hack/istio/sail
directory)kubectl get pods -n istio-system
(the same info can be seen in step above, too)--help
to that./install-ossm-release.sh
script for more commands (you can delete istio, delete the operators, etc).**NOTE: Because this is revision based, and istio tags are not supported by sail yet, you have to label your mesh namespaces with
istio.io/rev=default-v1-23-0
... you can see this work by installing bookinfo demo (using Kiali's hack script enhanced with -ail option that I added to this PR --hack/istio/install-bookinfo-demo.sh -tg -c kubectl -ail istio.io/rev=default-v1-23-0
).