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 the CRD:
kubectl apply -f https://raw.githubusercontent.com/lloydmeta/lb-src-ranger-k8s/master/lb-src-ranger.yaml
Optionally install the samples:
# Create a LoadBalancer service
kubectl apply -f https://raw.githubusercontent.com/lloydmeta/lb-src-ranger-k8s/master/config/samples/dummy-service.yaml
# Create a LbSrcRanger
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.
kubectl
+kubernetes
https://kubernetes.io/kustomize
https://kustomize.io/kubebuilder
https://kubebuilder.io/