update calico, neutron and nova settings
[yaml_builds.git] / site_type / sriov-a13 / templates / software / charts / kubernetes / container-networking / calico.j2
1 ---
2 ##############################################################################
3 # Copyright (c) 2019 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 schema: armada/Chart/v1
18 metadata:
19   schema: metadata/Document/v1
20   name: kubernetes-calico-site
21   layeringDefinition:
22     abstract: false
23     layer: site
24     parentSelector:
25       name: kubernetes-calico-global
26     actions:
27       - method: merge
28         path: .
29   storagePolicy: cleartext
30
31 data:
32   values:
33     networking:
34       settings:
35 {% if ('peers' in yaml.networks.ksn and yaml.networks.ksn.peers is not none and yaml.networks.ksn.peers is iterable ) %}
36         mesh: "off"
37         ippool:
38           ipip:
39             enabled: "false"
40 {% endif %}
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 {% if ('peers' in yaml.networks.ksn and yaml.networks.ksn.peers is not none and yaml.networks.ksn.peers is iterable ) %}
49           peers:
50 {% for peer in yaml.networks.ksn.peers %}
51             - apiVersion: projectcalico.org/v3
52               kind: BGPPeer
53               metadata:
54                 name: peer-{{loop.index-1}}
55               spec:
56                 peerIP: {{peer.ip}}
57                 asnumber: {{peer.asnumber}}
58 {% endfor %}
59 {% endif %}
60 ...