Adding support for the kube-router flag --cluster-asn flag (#8837)

This commit is contained in:
Ross Kusler 2022-05-23 16:39:10 -07:00 committed by GitHub
parent ebbc5ed0ce
commit 4c97ce747c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -26,6 +26,9 @@
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md # https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md
# kube_router_extra_args: [] # 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. # ASN numbers of the BGP peer to which cluster nodes will advertise cluster ip and node's pod cidr.
# kube_router_peer_router_asns: ~ # kube_router_peer_router_asns: ~

View file

@ -25,6 +25,9 @@ kube_router_enable_dsr: false
# https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md # https://github.com/cloudnativelabs/kube-router/blob/master/docs/user-guide.md
kube_router_extra_args: [] 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. # ASN numbers of the BGP peer to which cluster nodes will advertise cluster ip and node's pod cidr.
kube_router_peer_router_asns: ~ kube_router_peer_router_asns: ~

View file

@ -49,6 +49,9 @@ spec:
{% if kube_router_advertise_loadbalancer_ip %} {% if kube_router_advertise_loadbalancer_ip %}
- --advertise-loadbalancer-ip - --advertise-loadbalancer-ip
{% endif %} {% endif %}
{% if kube_router_cluster_asn %}
- --cluster-asn={{ kube_router_cluster_asn }}
{% endif %}
{% if kube_router_peer_router_asns %} {% if kube_router_peer_router_asns %}
- --peer-router-asns={{ kube_router_peer_router_asns }} - --peer-router-asns={{ kube_router_peer_router_asns }}
{% endif %} {% endif %}