Bring in kubernetes scenario
[fuel.git] / mcp / reclass / classes / cluster / mcp-k8s-calico-noha / kubernetes / common.yml.j2
1 ##############################################################################
2 # Copyright (c) 2019 Mirantis Inc., Enea AB and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 {%- import 'net_map.j2' as nm with context %}
9 ---
10 classes:
11   - system.linux.system.repo.mcp.apt_mirantis.docker
12   - system.linux.system.repo.mcp.apt_mirantis.update.docker
13   - system.linux.system.repo.mcp.apt_mirantis.kubernetes_extra
14   - system.linux.system.repo.mcp.apt_mirantis.update.kubernetes_extra
15   - system.kubernetes.pool.single
16   - system.salt.minion.cert.k8s_client_single
17   - system.salt.minion.cert.etcd_client_single
18   - cluster.mcp-common-noha.openstack_compute_pdf
19 parameters:
20   kubernetes:
21     common:
22       hyperkube:
23         source: ${_param:kubernetes_hyperkube_source}
24         source_hash: ${_param:kubernetes_hyperkube_source_hash}
25         pause_image: ${_param:kubernetes_pause_image}
26     pool:
27       proxy:
28         daemon_opts:
29           cluster-cidr: ${_param:calico_private_network}/${_param:calico_private_netmask}
30       kubelet:
31         address: ${_param:single_address}
32         fail_on_swap: ${_param:kubelet_fail_on_swap}
33       network:
34         calico:
35           enabled: true
36           no_default_pools: false
37           image: ${_param:kubernetes_calico_image}
38           calicoctl_image: ${_param:kubernetes_calico_calicoctl_image}
39           cni_image: ${_param:kubernetes_calico_cni_image}
40           kube_controllers_image: ${_param:kubernetes_calico_kube_controllers_image}
41           birdcl_source: ${_param:kubernetes_calico_birdcl_source}
42           birdcl_source_hash: ${_param:kubernetes_calico_birdcl_source_hash}
43           calicoctl_source: ${_param:kubernetes_calico_calicoctl_source}
44           calicoctl_source_hash: ${_param:kubernetes_calico_calicoctl_source_hash}
45           cni_ipam_source: ${_param:kubernetes_calico_cni_ipam_source}
46           cni_ipam_source_hash: ${_param:kubernetes_calico_cni_ipam_source_hash}
47           cni_source: ${_param:kubernetes_calico_cni_source}
48           cni_source_hash: ${_param:kubernetes_calico_cni_source_hash}
49           etcd:
50             ssl:
51               enabled: true
52           policy:
53             enabled: ${_param:kubernetes_calico_policy_enabled}
54   linux:
55     system:
56       kernel:
57         sysctl:
58           # The default operating system limits on mmap counts is likely to be too low,
59           # which may result in out of memory exceptions.
60           vm.max_map_count: 262144
61     network:
62       interface:
63         br-mgmt:
64           post_up_cmds:
65             - ip r rep 10.254.0.0/16 via ${_param:single_address}
66         pxe_admin_int:
67           gateway: {{ nm.net_admin_gw }}
68           name_servers:
69             - {{ nm.net_admin_gw }}
70     storage:
71       enabled: true
72       swap:
73         img:
74           enabled: false
75           engine: file
76           device: /swap.img