Skip to content

Commit

Permalink
Adding support for the kube-router flag --cluster-asn flag (kubernete…
Browse files Browse the repository at this point in the history
  • Loading branch information
rosskusler authored and LuckySB committed Oct 23, 2023
1 parent e2fcfdc commit 76f6e79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md
# kube_router_extra_args: []

# ASN number of the cluster, used when communicating with external BGP routers
# kube_router_cluster_asn: ~

# ASN numbers of the BGP peer to which cluster nodes will advertise cluster ip and node's pod cidr.
# kube_router_peer_router_asns: ~

Expand Down
3 changes: 3 additions & 0 deletions roles/network_plugin/kube-router/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ kube_router_enable_dsr: false
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md
kube_router_extra_args: []

# ASN number of the cluster, used when communicating with external BGP routers
kube_router_cluster_asn: ~

# ASN numbers of the BGP peer to which cluster nodes will advertise cluster ip and node's pod cidr.
kube_router_peer_router_asns: ~

Expand Down
3 changes: 3 additions & 0 deletions roles/network_plugin/kube-router/templates/kube-router.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ spec:
{% if kube_router_advertise_loadbalancer_ip %}
- --advertise-loadbalancer-ip
{% endif %}
{% if kube_router_cluster_asn %}
- --cluster-asn={{ kube_router_cluster_asn }}
{% endif %}
{% if kube_router_peer_router_asns %}
- --peer-router-asns={{ kube_router_peer_router_asns }}
{% endif %}
Expand Down

0 comments on commit 76f6e79

Please sign in to comment.