Coder Social home page Coder Social logo

aknapp112 / multiple-ingress-controllers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stakater/multiple-ingress-controllers

0.0 1.0 0.0 35 KB

multiple nginx ingress controllers running on kubernetes on AWS

Home Page: http://www.stakater.com

Shell 100.00%

multiple-ingress-controllers's Introduction

multiple-ingress-controllers

Run multiple nginx ingress controllers with one exposed to internet and other exposed to subset of ips only on AWS.

Context

How to run multiple nginx ingress controllers in same k8s cluster on AWS? How to expose some apps to whole world and some services to some specific ip's only? We usually want to expose the tools e.g. Jenkins, Nexus, etc. to the team only; and whereas we want to expose the app to the whole world.

Problem Statement

The problem is that given different apps (biz or infra) some must be exposed to whole internet while others to some specific audience only. And if you have just one ingress controller then either it will be public or private.

Solution

The solution is to have multiple ingress controllers; e.g. one "internal ingress controller" for internal/private apps & another "external ingress controller" for public facing apps. The ELB in front of "internal ingress controller" will be locked down to specific ips only; whereas the ELB in front of "external ingress controller" will have wide open access.

Then we can run on exposecontroller per namespace and if the service will have expose: "true" then an ingress will be created and then the nginx-ingress-controller will update the nginx config.

Components

The solution is composed of following components:

  1. nginx-ingress-controller: ingress controller
  2. exposecontroller: from fabric8 which creates ingress from service on the fly
  3. external-dns: creates dns entry in Route53
  4. echoserver: a sample app; just for the sake of testing

To limit access you need to add following to the nginx-ingress-controller-service.yaml

  loadBalancerSourceRanges:
    - 83.226.238.69/32

multiple-ingress-controllers's People

Contributors

rasheedamir avatar

Watchers

James Cloos avatar

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.