forked from k-space/kube
		
	full ipv4/6 bgp mesh with router and pve
This commit is contained in:
		| @@ -20,6 +20,13 @@ spec: | |||||||
|       name: default-ipv4-ippool |       name: default-ipv4-ippool | ||||||
|       natOutgoing: Disabled |       natOutgoing: Disabled | ||||||
|       nodeSelector: all() |       nodeSelector: all() | ||||||
|  |     - blockSize: 122 | ||||||
|  |       cidr: 2001:bb8:4008:21:244::/80 | ||||||
|  |       disableBGPExport: false | ||||||
|  |       disableNewAllocations: false       | ||||||
|  |       nodeSelector: all() | ||||||
|  |       encapsulation: None | ||||||
|  |       natOutgoing: Disabled | ||||||
| --- | --- | ||||||
| apiVersion: projectcalico.org/v3 | apiVersion: projectcalico.org/v3 | ||||||
| kind: IPPool | kind: IPPool | ||||||
| @@ -36,6 +43,21 @@ spec: | |||||||
|   vxlanMode: Never |   vxlanMode: Never | ||||||
|   natOutgoing: true |   natOutgoing: true | ||||||
| --- | --- | ||||||
|  | apiVersion: projectcalico.org/v3 | ||||||
|  | kind: IPPool | ||||||
|  | metadata: | ||||||
|  |   name: default-ipv6-ippool | ||||||
|  | spec: | ||||||
|  |   allowedUses: | ||||||
|  |     - Workload | ||||||
|  |     - Tunnel | ||||||
|  |   blockSize: 122 | ||||||
|  |   cidr: 2001:bb8:4008:21:244::/80 | ||||||
|  |   ipipMode: Never | ||||||
|  |   nodeSelector: all() | ||||||
|  |   vxlanMode: Never | ||||||
|  |   natOutgoing: false | ||||||
|  | --- | ||||||
| # This section configures the Calico API server. | # This section configures the Calico API server. | ||||||
| # For more information, see: https://projectcalico.docs.tigera.io/master/reference/installation/api#operator.tigera.io/v1.APIServer | # For more information, see: https://projectcalico.docs.tigera.io/master/reference/installation/api#operator.tigera.io/v1.APIServer | ||||||
| apiVersion: operator.tigera.io/v1 | apiVersion: operator.tigera.io/v1 | ||||||
| @@ -50,7 +72,7 @@ metadata: | |||||||
|   name: mikrotik-router |   name: mikrotik-router | ||||||
| spec: | spec: | ||||||
|   peerIP: 172.21.255.254 |   peerIP: 172.21.255.254 | ||||||
|   asNumber: 64567 |   asNumber: 64512 | ||||||
|   keepOriginalNextHop: true |   keepOriginalNextHop: true | ||||||
|   password: |   password: | ||||||
|     secretKeyRef: |     secretKeyRef: | ||||||
| @@ -58,10 +80,120 @@ spec: | |||||||
|       key: password |       key: password | ||||||
| --- | --- | ||||||
| apiVersion: projectcalico.org/v3 | apiVersion: projectcalico.org/v3 | ||||||
|  | kind: BGPPeer | ||||||
|  | metadata: | ||||||
|  |   name: mikrotik-router-ipv6 | ||||||
|  | spec: | ||||||
|  |   peerIP: 2001:bb8:4008:21:ffff:ffff:ffff:fffe | ||||||
|  |   asNumber: 64512 | ||||||
|  |   keepOriginalNextHop: true | ||||||
|  |   password: | ||||||
|  |     secretKeyRef: | ||||||
|  |       name: bgp-secrets | ||||||
|  |       key: password       | ||||||
|  | --- | ||||||
|  | apiVersion: projectcalico.org/v3 | ||||||
|  | kind: BGPPeer | ||||||
|  | metadata: | ||||||
|  |   name: pve90 | ||||||
|  | spec: | ||||||
|  |   peerIP: 172.21.20.90 | ||||||
|  |   asNumber: 64512 | ||||||
|  |   password: | ||||||
|  |     secretKeyRef: | ||||||
|  |       name: bgp-secrets | ||||||
|  |       key: password   | ||||||
|  | --- | ||||||
|  | apiVersion: projectcalico.org/v3 | ||||||
|  | kind: BGPPeer | ||||||
|  | metadata: | ||||||
|  |   name: pve91 | ||||||
|  | spec: | ||||||
|  |   peerIP: 172.21.20.91 | ||||||
|  |   asNumber: 64512 | ||||||
|  |   password: | ||||||
|  |     secretKeyRef: | ||||||
|  |       name: bgp-secrets | ||||||
|  |       key: password   | ||||||
|  | --- | ||||||
|  | apiVersion: projectcalico.org/v3 | ||||||
|  | kind: BGPPeer | ||||||
|  | metadata: | ||||||
|  |   name: pve92 | ||||||
|  | spec: | ||||||
|  |   peerIP: 172.21.20.92 | ||||||
|  |   asNumber: 64512 | ||||||
|  |   password: | ||||||
|  |     secretKeyRef: | ||||||
|  |       name: bgp-secrets | ||||||
|  |       key: password   | ||||||
|  | --- | ||||||
|  | apiVersion: projectcalico.org/v3 | ||||||
|  | kind: BGPPeer | ||||||
|  | metadata: | ||||||
|  |   name: pve93 | ||||||
|  | spec: | ||||||
|  |   peerIP: 172.21.20.93 | ||||||
|  |   asNumber: 64512 | ||||||
|  |   password: | ||||||
|  |     secretKeyRef: | ||||||
|  |       name: bgp-secrets | ||||||
|  |       key: password                     | ||||||
|  | --- | ||||||
|  | apiVersion: projectcalico.org/v3 | ||||||
|  | kind: BGPPeer | ||||||
|  | metadata: | ||||||
|  |   name: pve90-ipv6 | ||||||
|  | spec: | ||||||
|  |   peerIP: 2001:bb8:4008:21:20::90 | ||||||
|  |   asNumber: 64512 | ||||||
|  |   password: | ||||||
|  |     secretKeyRef: | ||||||
|  |       name: bgp-secrets | ||||||
|  |       key: password      | ||||||
|  | --- | ||||||
|  | apiVersion: projectcalico.org/v3 | ||||||
|  | kind: BGPPeer | ||||||
|  | metadata: | ||||||
|  |   name: pve91-ipv6 | ||||||
|  | spec: | ||||||
|  |   peerIP: 2001:bb8:4008:21:20::91 | ||||||
|  |   asNumber: 64512 | ||||||
|  |   password: | ||||||
|  |     secretKeyRef: | ||||||
|  |       name: bgp-secrets | ||||||
|  |       key: password      | ||||||
|  | --- | ||||||
|  | apiVersion: projectcalico.org/v3 | ||||||
|  | kind: BGPPeer | ||||||
|  | metadata: | ||||||
|  |   name: pve92-ipv6 | ||||||
|  | spec: | ||||||
|  |   peerIP: 2001:bb8:4008:21:20::92 | ||||||
|  |   asNumber: 64512 | ||||||
|  |   password: | ||||||
|  |     secretKeyRef: | ||||||
|  |       name: bgp-secrets | ||||||
|  |       key: password      | ||||||
|  | --- | ||||||
|  | apiVersion: projectcalico.org/v3 | ||||||
|  | kind: BGPPeer | ||||||
|  | metadata: | ||||||
|  |   name: pve93-ipv6 | ||||||
|  | spec: | ||||||
|  |   peerIP: 2001:bb8:4008:21:20::93 | ||||||
|  |   asNumber: 64512 | ||||||
|  |   password: | ||||||
|  |     secretKeyRef: | ||||||
|  |       name: bgp-secrets | ||||||
|  |       key: password                        | ||||||
|  | --- | ||||||
|  | apiVersion: projectcalico.org/v3 | ||||||
| kind: BGPConfiguration | kind: BGPConfiguration | ||||||
| metadata: | metadata: | ||||||
|   name: default |   name: default | ||||||
| spec: | spec: | ||||||
|  |   asNumber: 64512 | ||||||
|   serviceLoadBalancerIPs: |   serviceLoadBalancerIPs: | ||||||
|     - cidr: 172.21.51.4/32 |     - cidr: 172.21.51.4/32 | ||||||
|     - cidr: 172.21.53.1/32 |     - cidr: 172.21.53.1/32 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user