Code Monkey home page Code Monkey logo

amazon-apigateway-ingress-controller-blog's Introduction

API Gateway as ingress controller for EKS

Amazon Elastic Kubernetes Service (Amazon EKS) makes it easy to deploy, manage, and scale containerized applications using Kubernetes on AWS (https://aws.amazon.com/kubernetes/). When teams deploy micro-services on EKS, they usually expose REST APIs for use in front ends, and third-party applications. A best practice is to manage these APIs with an API gateway (https://aws.amazon.com/api-gateway/).

This provides a unique entry point for your APIs and also eliminates the need to implement API-specific code for things like security, caching, throttling, and monitoring for each of your micro-services. You can implement this pattern using ALB Ingress Controller (https://aws.amazon.com/blogs/opensource/kubernetes-ingress-aws-alb-ingress-controller/) and Amazon API Gateway. Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. This approach works but it requires you to manually create several configuration files. How can we automate this task?

In this post, we’ll show how to use an open-source solution APIGateway Ingress Controller (https://github.com/awslabs/amazon-apigateway-ingress-controller), which reduces the manual steps by quickly configuring your APIs running on Amazon EKS by leveraging the HTTP proxy mode of Amazon API Gateway. APIGateway Ingress Controller (https://github.com/awslabs/amazon-apigateway-ingress-controller) configures a Network Load balancer in front of a reverse proxy pod which handles the path-based routing and routes HTTP requests to the pods. The following diagram shows the high-level architecture described in this article:

License Summary

The documentation is made available under the Creative Commons Attribution-ShareAlike 4.0 International License. See the LICENSE file.

The sample code within this documentation is made available under the MIT-0 license. See the LICENSE-SAMPLECODE file.

amazon-apigateway-ingress-controller-blog's People

Contributors

amazon-auto avatar hainaqvi avatar realvz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-apigateway-ingress-controller-blog's Issues

Circular dependency error

Followed the blog to deploy an API gateway in front of a service and getting this error:
{"level":"error","ts":1606743951.5829248,"logger":"kubebuilder.controller","msg":"Reconciler error","controller":"ingress-controller","request":"default/api-95d8427d","error":"ValidationError: Circular dependency between resources: [Deployment, Resourceapiv1proxy, Methodapiv1, Methodapiv1proxy, Resourceapiv1]\n\tstatus code: 400, request id: e74cb844-d005-43e7-80c4-34f2ad88d50d","stacktrace":"github.com/awslabs/amazon-apigateway-ingress-controller/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/src/github.com/awslabs/amazon-apigateway-ingress-controller/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/awslabs/amazon-apigateway-ingress-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/src/github.com/awslabs/amazon-apigateway-ingress-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:217\ngithub.com/awslabs/amazon-apigateway-ingress-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/go/src/github.com/awslabs/amazon-apigateway-ingress-controller/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:158\ngithub.com/awslabs/amazon-apigateway-ingress-controller/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/src/github.com/awslabs/amazon-apigateway-ingress-controller/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/awslabs/amazon-apigateway-ingress-controller/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/src/github.com/awslabs/amazon-apigateway-ingress-controller/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/awslabs/amazon-apigateway-ingress-controller/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/go/src/github.com/awslabs/amazon-apigateway-ingress-controller/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}

API Gateway Ingress Controller without IAM User

I am trying to deploy the API Gateway Ingress Controller without IAM User. Due to some security reasons I cannot create the IAM User. Is there any way to deploy the controller without the IAM User and say using a IAM role or anything?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.