6c802273978b7f5c811988469ad872e088f21dbd
[yaml_builds.git] / templates / software / charts / kubernetes / container-networking / calico.j2
1 ---
2 ##############################################################################
3 # Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.        #
4 #                                                                            #
5 # Licensed under the Apache License, Version 2.0 (the "License"); you may    #
6 # not use this file except in compliance with the License.                   #
7 #                                                                            #
8 # You may obtain a copy of the License at                                    #
9 #       http://www.apache.org/licenses/LICENSE-2.0                           #
10 #                                                                            #
11 # Unless required by applicable law or agreed to in writing, software        #
12 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT  #
13 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.           #
14 # See the License for the specific language governing permissions and        #
15 # limitations under the License.                                             #
16 ##############################################################################
17
18 schema: armada/Chart/v1
19 metadata:
20   schema: metadata/Document/v1
21   replacement: true
22   name: kubernetes-calico
23   layeringDefinition:
24     abstract: false
25     layer: site
26     parentSelector:
27       name: kubernetes-calico-global
28     actions:
29       - method: merge
30         path: .
31   storagePolicy: cleartext
32 data:
33   values:
34     networking:
35       settings:
36         mesh: "off"
37         ippool:
38           ipip:
39             enabled: "false"
40             mode: "cross-subnet"
41       bgp:
42         asnumber: {{yaml.networks.ksn.local_asnumber}}
43         ipv4:
44           additional_cidrs:
45 {% for add_cidr in yaml.networks.ksn.additional_cidrs %}
46             - {{add_cidr}}
47 {% endfor %}
48           peers:
49 {% for peer in yaml.networks.ksn.peers %}
50             - apiVersion: v1
51               kind: bgpPeer
52               metadata:
53                 peerIP: {{peer.ip}}
54                 scope: {{peer.scope}}
55               spec:
56                 asnumber: {{peer.asnumber}}
57 {% endfor %}
58 ...