Add ConfigMap for basic configuration options

Container settings moved from deamonset yaml to a separate
configmap.
This commit is contained in:
Aleksandr Didenko
2016-11-08 12:13:20 +01:00
parent 309240cd6f
commit 60a217766f
6 changed files with 83 additions and 14 deletions

View File

@@ -19,4 +19,5 @@
when: inventory_hostname == groups['kube-master'][0]
- include: tasks/calico-policy-controller.yml
when: enable_network_policy is defined and enable_network_policy == True
when: ( enable_network_policy is defined and enable_network_policy == True ) or
( kube_network_plugin == 'canal' )

View File

@@ -1,3 +1,12 @@
- name: Create canal ConfigMap
run_once: true
kube:
name: "canal-config"
kubectl: "{{bin_dir}}/kubectl"
filename: "/etc/kubernetes/canal-config.yaml"
resource: "configmap"
namespace: "kube-system"
- name: Start flannel and calico-node
run_once: true
kube: