Serge Bazanski | a5ed644 | 2020-09-20 22:52:57 +0000 | [diff] [blame] | 1 | # This is the current Calico configuration in k0.hswaw.net. |
| 2 | # Unfortunately, we do not have Calico configured to use CRDs, and instead to |
| 3 | # keep its resources separately from Kubernetes. Thus, this configuration |
| 4 | # cannot be managed by Kubernetes/jsonnet. Instead, it must be applied manially: |
| 5 | # |
| 6 | # calicoctl apply -f k0.calico.yaml |
| 7 | |
| 8 | apiVersion: projectcalico.org/v3 |
| 9 | kind: BGPConfiguration |
| 10 | metadata: |
| 11 | name: default |
| 12 | spec: |
| 13 | logSeverityScreen: Info |
| 14 | nodeToNodeMeshEnabled: true |
| 15 | asNumber: 65003 |
| 16 | |
| 17 | --- |
| 18 | |
| 19 | # metallb peer, must be compatible with the metallbc definition in k0.libsonnet. |
| 20 | apiVersion: projectcalico.org/v3 |
| 21 | kind: BGPPeer |
| 22 | metadata: |
| 23 | name: metallb |
| 24 | spec: |
| 25 | peerIP: 127.0.0.1 |
| 26 | asNumber: 65002 |
| 27 | |
| 28 | --- |
| 29 | |
| 30 | # ToR switch peering, must be compatible with the configuration on dcsw01.hswaw.net. |
| 31 | apiVersion: projectcalico.org/v3 |
| 32 | kind: BGPPeer |
| 33 | metadata: |
| 34 | name: dcsw01 |
| 35 | spec: |
| 36 | peerIP: 185.236.240.33 |
| 37 | asNumber: 65001 |
| 38 | |
| 39 | --- |
| 40 | |
| 41 | # IP pool that's used by metallb. We mark it as disabled so that Calico doesn't |
| 42 | # allocate Service IPs from it, just allow metallb routes from that pool to |
| 43 | # pass through eBGP (otherwise Calico BIRD filter will filter them out). |
| 44 | # Keep in sync with k0.libsonnet. |
| 45 | apiVersion: projectcalico.org/v3 |
| 46 | kind: IPPool |
| 47 | metadata: |
| 48 | name: public-v4-1 |
| 49 | spec: |
| 50 | cidr: 185.236.240.48/28 |
| 51 | disabled: true |
| 52 | --- |
| 53 | |
| 54 | # IP pool that's used by metallb. We mark it as disabled so that Calico doesn't |
| 55 | # allocate Service IPs from it, just allow metallb routes from that pool to |
| 56 | # pass through eBGP (otherwise Calico BIRD filter will filter them out). |
| 57 | # Keep in sync with k0.libsonnet. |
| 58 | apiVersion: projectcalico.org/v3 |
| 59 | kind: IPPool |
| 60 | metadata: |
| 61 | name: public-v4-2 |
| 62 | spec: |
| 63 | cidr: 185.236.240.112/28 |
| 64 | disabled: true |
| 65 | |
| 66 | --- |
| 67 | |
| 68 | # IP pool for the service network. |
| 69 | apiVersion: projectcalico.org/v3 |
| 70 | kind: IPPool |
| 71 | metadata: |
| 72 | name: default-ipv4-ippool |
| 73 | spec: |
| 74 | blockSize: 26 |
| 75 | cidr: 10.10.24.0/21 |
| 76 | ipipMode: CrossSubnet |
| 77 | natOutgoing: true |
| 78 | |