mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-23 15:38:11 -03:30
allow overriding calico peers names and avoid ipv6 naming issues (#7591)
This commit is contained in:
parent
1d078e1119
commit
8c0a2741ae
@ -227,7 +227,7 @@
|
||||
{"apiVersion": "projectcalico.org/v3",
|
||||
"kind": "BGPPeer",
|
||||
"metadata": {
|
||||
"name": "global-{{ item.router_id }}"
|
||||
"name": "global-{{ item.name | default(item.router_id|replace(':','-')) }}"
|
||||
},
|
||||
"spec": {
|
||||
"asNumber": "{{ item.as }}",
|
||||
@ -381,7 +381,7 @@
|
||||
{"apiVersion": "projectcalico.org/v3",
|
||||
"kind": "BGPPeer",
|
||||
"metadata": {
|
||||
"name": "{{ inventory_hostname }}-{{ item.router_id }}"
|
||||
"name": "{{ inventory_hostname }}-{{ item.name | default(item.router_id|replace(':','-')) }}"
|
||||
},
|
||||
"spec": {
|
||||
"asNumber": "{{ item.as }}",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user