8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
92 lines
2.6 KiB
Text
92 lines
2.6 KiB
Text
base:
|
|
'*':
|
|
- base
|
|
- debian-auto-upgrades
|
|
- salt-helpers
|
|
{% if grains.get('cloud') == 'aws' %}
|
|
- ntp
|
|
{% endif %}
|
|
{% if pillar.get('e2e_storage_test_environment', '').lower() == 'true' %}
|
|
- e2e
|
|
{% endif %}
|
|
|
|
'roles:kubernetes-pool':
|
|
- match: grain
|
|
- docker
|
|
{% if pillar.get('network_policy_provider', '').lower() == 'calico' %}
|
|
- cni
|
|
{% elif pillar.get('network_provider', '').lower() == 'kubenet' %}
|
|
- cni
|
|
{% elif pillar.get('network_provider', '').lower() == 'cni' %}
|
|
- cni
|
|
{% endif %}
|
|
{% if grains['cloud'] is defined and grains['cloud'] == 'azure-legacy' %}
|
|
- openvpn-client
|
|
{% endif %}
|
|
- helpers
|
|
- kube-client-tools
|
|
- kube-node-unpacker
|
|
- kubelet
|
|
{% if pillar.get('network_provider', '').lower() == 'opencontrail' %}
|
|
- opencontrail-networking-minion
|
|
{% else %}
|
|
- kube-proxy
|
|
{% endif %}
|
|
{% if pillar.get('enable_cluster_registry', '').lower() == 'true' %}
|
|
- kube-registry-proxy
|
|
{% endif %}
|
|
{% if pillar['prepull_e2e_images'] is defined and pillar['prepull_e2e_images'].lower() == 'true' %}
|
|
- e2e-image-puller
|
|
{% endif %}
|
|
- logrotate
|
|
- supervisor
|
|
{% if pillar.get('network_policy_provider', '').lower() == 'calico' %}
|
|
- calico.node
|
|
{% endif %}
|
|
|
|
'roles:kubernetes-master':
|
|
- match: grain
|
|
- generate-cert
|
|
- etcd
|
|
{% if pillar.get('network_provider', '').lower() == 'kubenet' %}
|
|
- cni
|
|
{% elif pillar.get('network_provider', '').lower() == 'cni' %}
|
|
- cni
|
|
{% endif %}
|
|
{% if pillar.get('enable_l7_loadbalancing', '').lower() == 'glbc' %}
|
|
- l7-gcp
|
|
{% endif %}
|
|
- kube-apiserver
|
|
- kube-controller-manager
|
|
- kube-scheduler
|
|
- supervisor
|
|
- kube-client-tools
|
|
- kube-master-addons
|
|
- kube-admission-controls
|
|
{% if pillar.get('enable_node_logging', '').lower() == 'true' and pillar['logging_destination'] == 'gcp' %}
|
|
- fluentd-gcp
|
|
{% endif %}
|
|
{% if grains['cloud'] is defined and grains['cloud'] != 'vagrant' %}
|
|
- logrotate
|
|
{% endif %}
|
|
- kube-addons
|
|
{% if grains['cloud'] is defined and grains['cloud'] == 'azure-legacy' %}
|
|
- openvpn
|
|
- nginx
|
|
{% endif %}
|
|
{% if grains['cloud'] is defined and grains['cloud'] in [ 'vagrant', 'gce', 'aws', 'photon-controller', 'openstack', 'azure-legacy'] %}
|
|
- docker
|
|
- kubelet
|
|
{% endif %}
|
|
{% if pillar.get('network_provider', '').lower() == 'opencontrail' %}
|
|
- opencontrail-networking-master
|
|
{% endif %}
|
|
{% if pillar.get('enable_cluster_autoscaler', '').lower() == 'true' %}
|
|
- cluster-autoscaler
|
|
{% endif %}
|
|
{% if pillar.get('enable_rescheduler', '').lower() == 'true' %}
|
|
- rescheduler
|
|
{% endif %}
|
|
{% if pillar.get('network_policy_provider', '').lower() == 'calico' %}
|
|
- calico.master
|
|
{% endif %}
|