Giter Site home page Giter Site logo

k8slb's Introduction

K8SLB

Kubernetes On-Premisse External Load Balancer with Nginx

  • Environment Variables
Name Description Example
SERVER_NAME DNS of Load Balancer k8s-cluster.acme.com
PORT Port that nginx container will listen 80
SERVICE_PORT K8s service port 3000
NODE_{NUMBER} Nodes IPs, define as many node IPs as you want (must follow order starting by 1) 10.0.0.10
  • Example:

    • K8s cluster exposed service running on port 30115

    • 3 Nodes, 192.168.0.108 - 192.168.0.109 - 192.168.0.110

    docker run -it -p 80:80 \
    -e "SERVER_NAME=k8s-cluster.acme.com" \
    -e "PORT=80" \
    -e "SERVICE_PORT=30115" \
    -e "NODE_1=192.168.0.108" \
    -e "NODE_2=192.168.0.109" \
    -e "NODE_3=192.168.0.110" \
    m4n3dw0lf/k8slb
    
  • Output:

LoadBalancer DNS: k8s-cluster.acme.com
LoadBalancer Port: 80
K8s Service Port: 30115
Adding Node: 192.168.0.108
Adding Node: 192.168.0.109
Adding Node: 192.168.0.110
LoadBalancer Configured Successfully!

k8slb's People

Contributors

m4n3dw0lf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

5l1v3r1

k8slb's Issues

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.