Layer7 API Management

Run Container Gateway using Google Cloud Kubernetes Engine 

Jun 07, 2018 11:17 AM

Summary

 

This document covers major steps I went thru to run our container gateway 9.3 in Google Cloud using its Kubernetes Engine, I also have my artifacts attached for easy access. There are other form factor you could leverage while running in Google cloud, however this article is only focused on the combination: Kubernetes + Container Gateway. 

 

Step-by-Step

   Note: google cloud has many components and you need to install "kubectl". Down below is my install. I have big query and cloud storage components installed for other customer engagements, and you could ignore them.

  • Brief Setup for your GCP
  • Build and Tag your docker images
    • Download the docker project to your local working folder
    • Add your gateway license file to /ssg93/add-on/license folder.
    • (o)Add your GMU bundles to /ssg93/add-on/bundles folder if you have any assets to bootstrap.
    • Run "docker-compose -f docker-compose.yml build" to build a custom container
    • Tag your image use a name following this format “gcr.io/[your_project_id]/ssg93”, command: docker tag [image_id] [new_image_tag]
    • Tag mysql5.7/5.6 following the same format above. If you don't have it local, just pull it.
  • Push the two docker images to google cloud, sample command:
    • gcloud docker -- push gcr.io/[your_project_id]/ssg93
    • gcloud container images list
  • Create kubernete clusters, sample commands are:
    • gcloud container clusters create gatewaydemo --no-enable-autorepair
    • gcloud container clusters get-credentials gatewaydemo
  • Create kubernete services using the yaml file I enclosed in the project, sample command:
    • cd ssg93
    • kubectl create -f ssg93.yml
  • check if services are up and running:
    • kubectl get deployments
    • Kubectl get pods
    • kubectl get services  # get external access ip and ports
    • kubectl describe pods api-gateway

 

If you want to view logs of the gateway container, you could login to GCP view UI and navigate to the pod.  Here is a screen shot:

Statistics
0 Favorited
14 Views
1 Files
0 Shares
9 Downloads
Attachment(s)
zip file
ssg93.zip   7 KB   1 version
Uploaded - May 29, 2019

Related Entries and Links

No Related Resource entered.