diff options
Diffstat (limited to 'roles/kubernetes_proxy/tasks')
-rw-r--r-- | roles/kubernetes_proxy/tasks/main.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/kubernetes_proxy/tasks/main.yml b/roles/kubernetes_proxy/tasks/main.yml new file mode 100644 index 000000000..901b5f3ad --- /dev/null +++ b/roles/kubernetes_proxy/tasks/main.yml @@ -0,0 +1,17 @@ +--- +# tasks file for kubernetes_proxy +- name: Install kubernetes + yum: pkg=kubernetes state=installed + +- name: Configure kubernetes-proxy etcd servers + lineinfile: > + dest=/etc/sysconfig/kubernetes + regexp={{ item.regex }} + line="{{ item.line }}" + with_items: + - { regex: '^KUBE_ETCD_SERVERS=', line: 'KUBE_ETCD_SERVERS=\"http://{{ oo_master_ips[0] }}:4001\"' } + notify: + - restart kubernetes-proxy + +- name: Enable proxy + service: name=kubernetes-proxy enabled=yes state=started |