Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dual Stack Additions #1386

Merged
merged 59 commits into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
f102bc5
.github: Fix name of the RC step
mrueg Oct 27, 2022
a7a462b
build(deps): bump github.com/aws/aws-sdk-go from 1.44.116 to 1.44.124
dependabot[bot] Oct 27, 2022
8873765
build(deps): bump github.com/docker/docker
dependabot[bot] Oct 27, 2022
c41ec7a
build(deps): bump github.com/onsi/gomega from 1.22.1 to 1.23.0
dependabot[bot] Nov 1, 2022
e6fd1b2
Support for kube-router.io/peer.localips annotation (#1392)
rkojedzinszky Nov 15, 2022
9c23ede
build(deps): bump github.com/aws/aws-sdk-go from 1.44.124 to 1.44.138
dependabot[bot] Nov 15, 2022
7137ca3
README.md: remove kube-router.io link
aauren Nov 18, 2022
31154f6
build(deps): bump github.com/aws/aws-sdk-go from 1.44.138 to 1.44.146
dependabot[bot] Nov 28, 2022
a06a6a8
build(deps): bump github.com/onsi/gomega from 1.23.0 to 1.24.1
dependabot[bot] Nov 28, 2022
c110f98
build(deps): bump github.com/aws/aws-sdk-go from 1.44.146 to 1.44.150
dependabot[bot] Dec 1, 2022
8d24611
build(deps): bump github.com/prometheus/client_golang
dependabot[bot] Dec 11, 2022
faa52b8
build(deps): bump golang.org/x/net from 0.2.0 to 0.4.0
dependabot[bot] Dec 11, 2022
557794a
build(deps): bump github.com/osrg/gobgp/v3 from 3.7.0 to 3.9.0
dependabot[bot] Dec 11, 2022
c37d96f
build(deps): bump google.golang.org/grpc from 1.50.1 to 1.51.0
dependabot[bot] Dec 11, 2022
3e2af39
build(deps): bump github.com/aws/aws-sdk-go from 1.44.150 to 1.44.157
dependabot[bot] Dec 11, 2022
47a1045
build(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1
dependabot[bot] Dec 12, 2022
bfdbfbc
build(deps): bump github.com/docker/docker
dependabot[bot] Jan 2, 2023
31dd271
build(deps): bump github.com/aws/aws-sdk-go from 1.44.157 to 1.44.171
dependabot[bot] Jan 3, 2023
c367cc2
build(deps): bump github.com/osrg/gobgp/v3 from 3.9.0 to 3.10.0
dependabot[bot] Jan 3, 2023
17f2d4c
netpol: Add dual-stack support
vadorovsky Mar 25, 2022
214cdd6
disable ipv6 by default
thomasferrandiz Jul 1, 2022
4d74e80
init iptablesCmdHandlers and ipSetHandlers inside NewNetworkPolicyCon…
thomasferrandiz Jul 1, 2022
b1eedce
Turn IPTablesSaveRestore into an interface
thomasferrandiz Jul 1, 2022
2b2db42
rename Adresses
thomasferrandiz Jul 4, 2022
323601f
remove redundant default value
thomasferrandiz Jul 4, 2022
f0a7ced
godoc update
thomasferrandiz Jul 4, 2022
b3763c3
Validate that ClusterIP service range type matches the configuration
thomasferrandiz Jul 29, 2022
2faf7a2
refactor whitelisting of cluster IP Range
thomasferrandiz Aug 1, 2022
d7188ee
syncPodFirewallChains: loop on all NodeIp
thomasferrandiz Aug 1, 2022
ccaaf81
rename utilsnet import to netutils
thomasferrandiz Aug 1, 2022
62f9287
use createGenericHashIPSet
thomasferrandiz Aug 1, 2022
feb96da
go mod
thomasferrandiz Aug 1, 2022
2dc995d
fix test compilation error
thomasferrandiz Aug 9, 2022
4ebd203
fix golangci issues
thomasferrandiz Aug 10, 2022
5fe3c1f
fix(node.go): make node address errors more helpful
aauren Oct 3, 2022
871a385
fix(NPC): separate chain indices for ipv4 / ipv6
aauren Oct 3, 2022
5be1789
fix(kube-router.go): metric message -> not error
aauren Oct 9, 2022
6d20157
feat(pod_cidr): handle multiple pod CIDRs
aauren Oct 5, 2022
8bae072
fact(NRC): convert BGP set names to const
aauren Oct 7, 2022
bffcefe
feat(NRC): make NRC dual stack
aauren Oct 8, 2022
a0b7ae4
fact(NPC): pluralize newIPTablesHandler
aauren Oct 25, 2022
a778542
fix(NPC): actually separate chain indices for ipv4 / ipv6
aauren Oct 25, 2022
212d5af
fix(options): make clusterIP specification similar to other options
aauren Oct 25, 2022
cfc412d
feat(ci): run CI on version prep branches and MRs
aauren Oct 27, 2022
7e4c891
fix(NRC): add IPv6 logic to bgp-local-addresses
aauren Jan 1, 2023
36dbeaa
fix(NRC): error when nec. host IP not found
aauren Jan 1, 2023
7e8c943
fix(bgp_peers): do peer only if IP protos match
aauren Jan 1, 2023
80cb4bf
fix(bgp_peers): adv. AfiSafi based on capabability
aauren Jan 1, 2023
297283e
fix(NRC): ensure local addr IP is bindable early
aauren Jan 1, 2023
6f1edfe
fix(node): do nil checking on FindBestIP util funcs
aauren Jan 1, 2023
1b6ea56
test(bgp_policies_test): add local address
aauren Jan 1, 2023
bd613b8
fix(ecmp_vip): handle ipv4 & ipv6 protocols
aauren Jan 2, 2023
e1840b3
fact(bgp_policies): abstract get DS for GoBGP
aauren Jan 3, 2023
627c7d0
fact(bgp_policies): rename clusterIPPrefixSet -> serviceVIPIPPrefixSet
aauren Jan 3, 2023
ac791b8
fix(bgp_policies): add empty DS set checking
aauren Jan 3, 2023
c13884f
fix(NPC/pod): check drop policy on ipv4 & ipv6
aauren Jan 9, 2023
f224596
doc(bgp.md): clean up grammar and syntax
aauren Jan 13, 2023
9663070
fix(NPC): don't add chains for missing family
aauren Jan 13, 2023
e6d64a2
fix(NPC): add warning for unsupported family
aauren Jan 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ on:
branches:
- master
- v[1-9].*
- prep-v[1-9].*
tags:
- v[1-9].*
pull_request:
branches:
- master
- v[1-9].*
- prep-v[1-9].*

env:
BUILDTIME_BASE: "golang:1.19.2-alpine3.16"
Expand Down Expand Up @@ -136,7 +138,7 @@ jobs:
tags: cloudnativelabs/kube-router-git:PR-${{ github.event.pull_request.number }}

# Tagging a release candidate, don't update latest
- name: Build and push - New Tag
- name: Build and push - New Tag (Release Candidate)
uses: docker/build-push-action@v3
if: ${{ startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-rc') }}
with:
Expand Down
4 changes: 0 additions & 4 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
# Kube-router Documentation

This folder holds the documentation that is served in [https://www.kube-router.io/docs/](https://www.kube-router.io/docs/).

> Note:This folder may contain documentation changes that has not been released yet. Please visit above link to view documentation corresponding to latest release.
222 changes: 135 additions & 87 deletions docs/bgp.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion docs/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Usage of kube-router:
--disable-source-dest-check Disable the source-dest-check attribute for AWS EC2 instances. When this option is false, it must be set some other way. (default true)
--enable-cni Enable CNI plugin. Disable if you want to use kube-router features alongside another CNI plugin. (default true)
--enable-ibgp Enables peering with nodes with the same ASN, if disabled will only peer with external BGP peers (default true)
--enable-ipv4 Enables IPv4 support (default true)
--enable-ipv6 Enables IPv6 support
aauren marked this conversation as resolved.
Show resolved Hide resolved
--enable-overlay When enable-overlay is set to true, IP-in-IP tunneling is used for pod-to-pod networking across nodes in different subnets. When set to false no tunneling is used and routing infrastructure is expected to route traffic for pod-to-pod networking across nodes in different subnets (default true)
--enable-pod-egress SNAT traffic from Pods to destinations outside the cluster. (default true)
--enable-pprof Enables pprof for debugging performance and memory leak issues.
Expand Down Expand Up @@ -91,7 +93,7 @@ Usage of kube-router:
--run-router Enables Pod Networking -- Advertises and learns the routes to Pods via iBGP. (default true)
--run-service-proxy Enables Service Proxy -- sets up IPVS for Kubernetes Services. (default true)
--runtime-endpoint string Path to CRI compatible container runtime socket (used for DSR mode). Currently known working with containerd.
--service-cluster-ip-range string CIDR value from which service cluster IPs are assigned. Default: 10.96.0.0/12 (default "10.96.0.0/12")
--service-cluster-ip-range strings CIDR values from which service cluster IPs are assigned (can be specified up to 2 times) (default [10.96.0.0/12])
--service-external-ip-range strings Specify external IP CIDRs that are used for inter-cluster communication (can be specified multiple times)
--service-node-port-range string NodePort range specified with either a hyphen or colon (default "30000-32767")
-v, --v string log level for V logs (default "0")
Expand Down
63 changes: 31 additions & 32 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
module github.com/cloudnativelabs/kube-router

require (
github.com/aws/aws-sdk-go v1.44.116
github.com/containernetworking/cni v1.1.2
github.com/containernetworking/plugins v1.1.1
github.com/aws/aws-sdk-go v1.44.171
github.com/coreos/go-iptables v0.6.0
github.com/docker/docker v20.10.19+incompatible
github.com/docker/docker v20.10.22+incompatible
github.com/moby/ipvs v1.0.2
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.22.1
github.com/osrg/gobgp/v3 v3.7.0
github.com/prometheus/client_golang v1.13.0
github.com/onsi/gomega v1.24.1
github.com/osrg/gobgp/v3 v3.10.0
github.com/prometheus/client_golang v1.14.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.0
github.com/vishvananda/netlink v1.1.1-0.20210330154013-f5de75959ad5
github.com/stretchr/testify v1.8.1
github.com/vishvananda/netlink v1.2.1-beta.2
github.com/vishvananda/netns v0.0.0-20220913150850-18c4f4234207
golang.org/x/net v0.0.0-20221014081412-f15817d10f9b
google.golang.org/grpc v1.50.1
golang.org/x/exp v0.0.0-20221230185412-738e83a70c30
golang.org/x/net v0.4.0
google.golang.org/grpc v1.51.0
google.golang.org/protobuf v1.28.1
k8s.io/api v0.24.7
k8s.io/apimachinery v0.24.7
k8s.io/client-go v0.24.7
k8s.io/cri-api v0.24.7
k8s.io/klog/v2 v2.80.1
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
)

require (
Expand All @@ -40,15 +40,15 @@ require (
github.com/eapache/queue v1.1.0 // indirect
github.com/emicklei/go-restful v2.9.5+incompatible // indirect
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/go-logr/logr v1.2.0 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.19.5 // indirect
github.com/go-openapi/swag v0.19.14 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/gnostic v0.5.7-v3refs // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/gofuzz v1.1.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
Expand All @@ -57,10 +57,10 @@ require (
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/k-sone/critbitgo v1.4.0 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/magiconair/properties v1.8.6 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mitchellh/mapstructure v1.4.3 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/moby/term v0.0.0-20200312100748-672ec06f55cd // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
Expand All @@ -69,34 +69,33 @@ require (
github.com/nxadm/tail v1.4.8 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.2 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/safchain/ethtool v0.0.0-20210803160452-9aa261dae9b1 // indirect
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/spf13/afero v1.9.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/viper v1.10.1 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b // indirect
golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10 // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20220210224613-90d013bbcef8 // indirect
github.com/spf13/viper v1.14.0 // indirect
github.com/subosito/gotenv v1.4.1 // indirect
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783 // indirect
golang.org/x/sys v0.3.0 // indirect
golang.org/x/term v0.3.0 // indirect
golang.org/x/text v0.5.0 // indirect
golang.org/x/time v0.0.0-20220609170525-579cf78fd858 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368 // indirect
google.golang.org/genproto v0.0.0-20221024183307-1bc688fe9f3e // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.66.2 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
gotest.tools/v3 v3.0.3 // indirect
k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42 // indirect
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
Expand Down
Loading