blob: 636f1e125add94a80eab086b16eb4d6e6f8be418 [file] [log] [blame]
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02001classes:
Tatyana Leontovichc11c1b52018-01-26 13:58:39 +02002- system.linux.system.repo.mcp.apt_mirantis.docker_legacy
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02003- system.kubernetes.pool.cluster
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +04004- system.linux.network.hosts
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02005- system.salt.minion.cert.k8s_client
6- system.salt.minion.cert.etcd_client
Dmitry Kalashnik1085a992017-09-08 16:39:21 +04007- cluster.virtual-mcp11-k8s-calico
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +02008parameters:
Victor Ryzhenkind27d76d2018-05-23 18:10:56 +04009 _param:
10 cluster_local_address: ${_param:deploy_address}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020011 docker:
12 host:
13 pkgs:
vrovachev0f291422017-06-21 18:30:01 +040014 - ${_param:kubernetes_docker_package}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020015 - python-docker
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040016 options:
17 bip: 172.31.255.1/24
18 storage-driver: overlay2
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020019 kubernetes:
20 pool:
Andrey Shestakov7edd30c2018-10-03 16:27:49 +030021 proxy:
22 daemon_opts:
23 cluster-cidr: ${_param:calico_private_network}/${_param:calico_private_netmask}
Victor Ryzhenkin03e58402017-12-12 16:46:05 +040024 kubelet:
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040025 address: ${_param:single_address}
Victor Ryzhenkin03e58402017-12-12 16:46:05 +040026 fail_on_swap: ${_param:kubelet_fail_on_swap}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020027 network:
ashestakov7acc4c62018-02-27 14:23:05 +000028 calico:
Andrey Shestakov11a0cd22018-03-19 17:24:41 +020029 enabled: true
ashestakov7acc4c62018-02-27 14:23:05 +000030 image: ${_param:kubernetes_calico_image}
31 calicoctl_image: ${_param:kubernetes_calico_calicoctl_image}
32 cni_image: ${_param:kubernetes_calico_cni_image}
ashestakov7acc4c62018-02-27 14:23:05 +000033 etcd:
34 ssl:
35 enabled: true
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020036 common:
Victor Ryzhenkinb9f39dc2017-08-28 18:17:43 +040037 addons:
38 virtlet:
39 enabled: ${_param:kubernetes_virtlet_enabled}
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040040 namespace: ${_param:kubernetes_addon_namespace}
Victor Ryzhenkinb9f39dc2017-08-28 18:17:43 +040041 image: ${_param:kubernetes_virtlet_image}
Andrey Shestakov1113cac2018-01-22 21:57:06 +020042 criproxy_version: ${_param:kubernetes_criproxy_version}
43 criproxy_source: ${_param:kubernetes_criproxy_checksum}
Victor Ryzhenkinb9f39dc2017-08-28 18:17:43 +040044 hosts:
45 - ${_param:kubernetes_compute_node01_hostname}
46 - ${_param:kubernetes_compute_node02_hostname}
Simon Pasquier3f9d3fc2017-04-26 10:47:10 +020047 hyperkube:
Tomáš Kukrál31100562017-04-27 15:37:22 +020048 image: ${_param:kubernetes_hyperkube_image}
Andrey Shestakov9b5c7cc2018-05-23 13:51:10 +030049 pause_image: ${_param:kubernetes_pause_image}
Tomáš Kukrál1877dbd2017-04-29 23:03:04 +020050 linux:
51 network:
52 resolv:
53 dns:
Victor Ryzhenkind27d76d2018-05-23 18:10:56 +040054 - 172.18.208.44
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040055 - 172.18.176.4
Victor Ryzhenkind27d76d2018-05-23 18:10:56 +040056 - 10.254.0.10
Victor Ryzhenkin6fb825e2018-10-10 16:35:15 +040057 search:
58 - ${_param:cluster_domain}
Tomáš Kukrál1877dbd2017-04-29 23:03:04 +020059 interface:
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040060 ens3:
61 enabled: true
62 type: eth
63 proto: static
64 name: ${_param:primary_interface}
65 address: ${_param:deploy_address}
66 netmask: 255.255.255.0
67 gateway: 192.168.10.1
Victor Ryzhenkind27d76d2018-05-23 18:10:56 +040068 post_up_cmds:
69 - ip r rep 10.254.0.0/16 via ${_param:deploy_address}
Tomáš Kukrál3df2d162017-05-02 11:50:38 +020070 ens4:
Victor Ryzhenkinc1e05b72018-05-07 17:44:11 +040071 enabled: true
72 type: eth
73 proto: static
74 address: ${_param:single_address}
75 netmask: '255.255.255.0'
Victor Ryzhenkind27d76d2018-05-23 18:10:56 +040076 ipflush_onchange: true
77 restart_on_ipflush: true