I am a newbie to kong API gateway. I am trying to use Kong to set up reverse proxy and load balancing in order to do canary releases for my apps. I am using kong v1.1 and installed it using a helm chart on Kubernetes. I have two versions of the app running in different env’s, one in AWS and the other in GCP.
I have so far created ring balancer in kong by creating upstreams and targets with weights and set up routes for the virtual service.
curl -k -X POST https://xx.xx.xx.xx:8444/upstreams \ --data "name=app.v1.service" curl -k -X POST https://xx.xx.xx.xx:8444/upstreams/app.v1.service/targets \ --data "target=app-v1.aws.com:80" \ --data "weight=75" curl -k -X POST https://xx.xx.xx.xx:8444/upstreams/app.v1.service/targets \ --data "target=app-v2.gcp.com:80" \ --data "weight=25" curl -k -X POST https://xx.xx.xx.xx:8444/services/ \ --data "name=app-service" \ --data "host=app.v1.service" \ --data "path=/" curl -k -X POST https://xx.xx.xx.xx:8444/services/app-service/routes/ \ --data "hosts=app-kong.aws.com"