blob: eef2661d29a4dc5b08419dfe46006e8575294c34 [file] [log] [blame]
Serge Bazanskia5ed6442020-09-20 22:52:57 +00001# 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
8apiVersion: projectcalico.org/v3
9kind: BGPConfiguration
10metadata:
11 name: default
12spec:
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.
20apiVersion: projectcalico.org/v3
21kind: BGPPeer
22metadata:
23 name: metallb
24spec:
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.
31apiVersion: projectcalico.org/v3
32kind: BGPPeer
33metadata:
34 name: dcsw01
35spec:
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.
45apiVersion: projectcalico.org/v3
46kind: IPPool
47metadata:
48 name: public-v4-1
49spec:
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.
58apiVersion: projectcalico.org/v3
59kind: IPPool
60metadata:
61 name: public-v4-2
62spec:
63 cidr: 185.236.240.112/28
64 disabled: true
65
66---
67
68# IP pool for the service network.
69apiVersion: projectcalico.org/v3
70kind: IPPool
71metadata:
72 name: default-ipv4-ippool
73spec:
74 blockSize: 26
75 cidr: 10.10.24.0/21
76 ipipMode: CrossSubnet
77 natOutgoing: true
78