Professional Documents
Culture Documents
API Management in Istio Microservices Using The Kubernetes API Operator
API Management in Istio Microservices Using The Kubernetes API Operator
API Management Integration Identity & Access Management Analytics Cloud Platform Architecture
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
By Pubudu Gunatilaka
28 Sep, 2020
A monolithic architecture is the traditional unified model for the design About Author
of enterprise software. Monolithic systems act as a composed system
and the software components are interconnected and interdependent
Pubudu Gunatilaka
i.e. components are tightly coupled. In such an architecture, it is Technical Lead
difficult to add new components or perform updates, which are often WSO2
part of an enterprise system’s growth. Even a minor upgrade results in a
number of components being updated.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
overlap with a service mesh, they are different. To understand this, an
API gateway managing north-south traffic and a service mesh
managing east-west traffic can be given as an example scenario.
Let’s look at how you can manage microservices that are deployed in
the Istio service mesh by applying API management using the
Kubernetes API Operator.
I Understand
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
This website uses cookies so that we
can provide you with the best user
experience. Read our Cookie Policy to
find out more. Figure 1: Kubernetes API Operator overview
If you wish to disable cookies you can
do so from your browser.
apictl is a command-line tool that is used to interact with the
Kubernetes cluster. By using the apictl tool, you can create an API. To
I Understand
do this, you only need to create a Swagger definition. Once you create
an API using the Swagger definition via the apictl tool, a microgateway
pod will be deployed in Kubernetes. You can apply API management for
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
your microservices through this microgateway. This Github link on the
K8s API Operator will provide more information. Details on all the
available Kubernetes operators can be found in the Operator Hub.
Let’s move on to see how you can use the API Operator in Istio. Note
that you can follow any of the following three methods to apply API
management for Istio.
Permissive Mode
I Understand
You can deploy Istio in either Permissive mode or MTLS mode. If you
opted to enable permissive mode, both HTTP and mutual TLS traffic
can be accepted by a service.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Let’s assume you have an Istio sidecar injection enabled namespace
named bar, which has your running microservices. By creating a
Swagger definition and then creating an API in a foo namespace, you
can apply API management for those running services. Then, the
Kubernetes API Operator that you have installed in the cluster will
deploy a microgateway pod in the foo namespace. This will expose an
endpoint and API consumers can make use of it. This link provides an
example of the first method.
MTLS Mode
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
the traffic. Another difference is that apart from creating an API in K8s,
a virtual service needs to be adequately configured in Istio to route
traffic from the Istio Ingress gateway to the applicable backend service.
This method can be used in the permissive mode as well. This provides
an example of this.
Sidecar Mode
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
gateway, and with respect to the definitions of the virtual service, it
communicates with the API microgateway. This provides an example.
The easiest way to identify the best approach for your requirement is to
answer the following questions.
1. How are you going to expose other services that are not required to
apply API management?
In the first two methods, you can expose other services through the
API microgateway. Also, filters, authentication, throttling, QoS, etc.
can be disabled as well. In the third method, exposing other
services is done through the Istio ingress gateway.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
major worry.
As you now know how you can bring API management through an API
gateway to manage Istio microservices in the data plane, let’s look at
how you can apply API management for other aspects. In order to have
a complete API management story, you need to apply other API
management aspects such as an API marketplace, business insights,
etc.
Data plane and control plane capabilities are covered with Istio.
However, in order to provide management plane capabilities, you can
use WSO2 API Manager. It will help to manage microservices. The
following diagram shows how we can achieve this capability for the
first approach’s use case.
This website uses cookies so that we
can provide you with the best user
experience. Read our Cookie Policy to
find out more.
If you wish to disable cookies you can
do so from your browser.
I Understand
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
This website uses cookies so that we
can provide you with the best user
Figure 5: Control plane and management plane
experience. Read our Cookie Policy to
find out more.
If you wish to disable cookies you can
do soAPI
fromtraffic manager handles
your browser. the rate-limiting while API key manager can
be used to control plane token generation/validation. Through the API
I Understand
publisher component, which is deployed in the management plane, an
API developer/publisher can easily manage the lifecycle of the APIs.
Alongside the API publisher, the API developer portal (which is the API
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
marketplace) and API analytics components are also deployed in the
management plane.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
discusses the importance of having an enterprise API marketspace and
the steps to create one.
With the use of WSO2 API Manager alongside Kubernetes API Operator,
you can easily build an API marketplace.
I Understand
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
This website uses cookies so that we
can provide you with the best user
experience. Read our Cookie Policy to
find out more.
Figure 7: Viewing business insight using analytics
If you wish to disable cookies you can
do so from your browser.
If you are interested in learning more about these areas, please visit
this link and watch the video. Also, you can watch more videos on our
YouTube channel as well.
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD
Projects Enterprise Service Bus Support Case Studies
Training Agility
©2021 WSO2
Legal
Privacy
Do Not Sell My Personal Information
Cookie
This Policy
website uses cookies so that we
can provide you with the best user
Modern Slavery
experience. Statement
Read our Cookie Policy to
find out more.
Report a Problem With This Page
If you wish to disable cookies you can
do so from your browser.
I Understand
Create PDF in your applications with the Pdfcrowd HTML to PDF API PDFCROWD