Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
Introduction
This article covers the details on Software AG API Gateway AppMesh set up on Google Cloud Platform using Google Kubernetes Engine.
Prerequisites
Set of instructions for AppMesh on GCP:
Once the Kubernetes cluster is set up, connect to the cluster via cloud shell. Set to the current project and fetch the credentials by executing the below commands.
Use “gcloud config set project [PROJECT_ID]” to set to the current project. (for ex: appmeshistio) Run “gcloud container clusters get-credentials appmeshistio --zone us-east1-b --project appmeshistio”
Cluster endpoint and auth data is fetched. Kubeconfig file is generated for the project. Kubeconfig file is required for Appmesh and Istio Service Mesh configuration.
Verify the Kubernetes cluster info: kubectl cluster-info
Ensure that the Istio Service Mesh is installed with control plane and all the required tools and frameworks that Istio Service Mesh is composed of.
Deploy the API Gateway onto the Istio Service Mesh.
API Gateway Image path on Docker Hub: store/softwareag/apigateway-trial:10.5.0.2
Create a namespace and set the context to the newly created namespace. kubectl create namespace appmesh kubectl config set-context --current --namespace=appmesh
Ensure that istio-injection is enabled for the namespace “appmesh” for side car deployment. kubectl label namespace appmesh istio-injection=enabled
Create a Secret to connect to the Docker Hub for pulling the images from the registry. kubectl create secret docker-registry regcred --docker-server=https://index.docker.io/v2/ --docker-username=***** --docker-password=****** --docker-email=******************
Create a deployment yaml for API Gateway and Microgateway Below is the sample apigw.yaml with Secret, path to API gateway docker image and with memory configuration:
Perform the App Mesh Configuration with API Gateway URL and Microgateway Image as in below screenshot.
On Saving the configuration, Kubernetes Cluster name and Cluster endpoint is reflected in the API Gateway.
Make a REST call from postman using the Microgateway endpoint and verify the analytics log in API Gateway.