GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - teocns/lke-firewall-autoattach: A python-based DaemonSet application that attaches a firewall to K8S cluster Linodes

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
examples
examples
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
README.md
README.md
 
 
config.py
config.py
 
 
k8s.py
k8s.py
 
 
linode.py
linode.py
 
 
main.py
main.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

A DaemonSet that attaches a Firewall to all Linodes of a Kubernetes cluster and labels the node as schedulable. Useful to be able to expose services on NodePort, such as by attaching a Firewall that allows inbound traffic to ports 30000-32767

Docker Hub Image

teocns/lke-firewall-autoattach

Usage

The application can be run in a DaemonSet as seen in this example.

Environment variables

LINODE_ACCESS_TOKEN - Required for performing API calls

FIREWALL_ID - The Linode Firewall ID

POST_OPERATION_NODE_LABELS - If set, will patch the nodes with the provided key:value label (i.e schedulable:true)

INSTANCE_LABEL - Node's label (i.e lke91873-139045-63e5629d44d5). Also retrievable by using a fieldRef pointing to spec.nodeName

.

A ConfigMap containting kubeconfig must be mounted to /root/.kube/.


Important notes

To ensure reliability of you LKE cluster behind a firewall, ensure that you configure your rules accordingly:

TCP port 10250 inbound from 192.168.128.0/17, Kubelet health checks

UDP port 51820 inbound from 192.168.128.0/17, Wireguard tunneling for kubectl proxy

TCP 179 inbound from 192.168.128.0/17, Calico BGP traffic

TCP/UDP port30000 - 32767 inbound from All, NodePorts for workload Services

About

A python-based DaemonSet application that attaches a firewall to K8S cluster Linodes

Topics

firewalkuberneteslinode

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.