项目作者: lloydmeta

项目描述 :
A k8s CRD that tends to your loadBalancerSourceRanges for you based on urls and target labels
高级语言: Go
项目地址: git://github.com/lloydmeta/lb-src-ranger-k8s.git
创建时间: 2019-09-05T11:28:27Z
项目社区:https://github.com/lloydmeta/lb-src-ranger-k8s

开源协议:

下载


lb-src-ranger Build Status codecov

A k8s CRD that tends to the loadBalancerSourceRanges of your LoadBalancer services by sourcing the IPs from
a list of URLs that you specify, targeting your services via labels.

The URLs should each return a list newline-separated CIDRs.

Install

Install the CRD:

  1. kubectl apply -f https://raw.githubusercontent.com/lloydmeta/lb-src-ranger-k8s/master/lb-src-ranger.yaml

See it in action

Optionally install the samples:

  1. # Create a LoadBalancer service
  2. kubectl apply -f https://raw.githubusercontent.com/lloydmeta/lb-src-ranger-k8s/master/config/samples/dummy-service.yaml
  3. # Create a LbSrcRanger
  4. kubectl apply -f https://raw.githubusercontent.com/lloydmeta/lb-src-ranger-k8s/master/config/samples/lbsrcranger_v1beta1_lbsrcranger.yaml

Get the service to see that its loadBalancerSourceRanges has been updated based on the URLs in the ranger.

Dev Requirements

  1. kubectl + kubernetes https://kubernetes.io/
  2. kustomize https://kustomize.io/
  3. kubebuilder https://kubebuilder.io/