Git Product home page Git Product logo

k8s-firewall's Introduction

Kubernetes 防火墙配置

需要提供的变量

K8S_MASTER_IP k8s master 节点所有的IP地址列表

K8S_WORKER_IP k8s worker 节点所有的IP地址列表

ALLOW_K8S_IP 允许外界访问的 SSH 的IP地址列表

ALLLW_K8S_IP 允许管理 K8S 集群的IP地址,一般只写 K8S 管理员的IP地址

CONTROL_PLANE_ENDPOINT 如果是 Kubernetes 多 master 高可用集群,把 apiserver 的 LB 的IP和端口写这里

INSTALLED_CALICO 默认为 Calico 设置防火墙

INSTALLED_FLANNEL 没安装 Flannel 网络插件,留空变量

                    不建议部署 Flannel,Flannel 性能不如 calico,并且不支持网络策略

INSTALLED_INGRESS 默认为 Ingress 设置防火墙

注意

在所有的 Kubernetes 节点上执行此脚本,脚本会自动判断节点是 master 节点,还是 worker 节点。

k8s-firewall's People

Contributors

forbearing avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

banna2019

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.