Add Istio to an existing Microservice in Kubernetes
source link: https://www.programmingwithwolfgang.com/add-Istio-to-existing-microservice-in-kubernetes/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Add Istio to an existing Microservice in Kubernetes
My last post highlighted some of Istio’s features and showed how to apply them to your microservices.
In this short post, I will show you how to add Istio to an existing application.
This post is part of “Microservice Series - From Zero to Hero”.
Add Istio to an existing Application running Kubernetes
If you already have an application or microservices running in your Kubernetes and want to add Istio support, all you have to do is to add the following label to the namespace.
kubectl label namespace customerapi-test istio-injection=enabled
The next time a pod is created, the new label will be applied and the sidecar will be injected automatically. You can verify the flow of your application in Kiali, once the label is applied.
Visualize the request flow
Note, of course you have to have Istio installed in your cluster For more information about Kiali and Istio, see my post Istio in Kubernetes - Getting Started.
Conclusion
If you already have an application running in Kubernetes, all you have to do is add a label to the namespace to enable Istio. The label will be applied to pods when they are created the next time.
This post is part of “Microservice Series - From Zero to Hero”.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK