summaryrefslogtreecommitdiff
path: root/roles/kubernetes/kubeadm/master/tasks/net_kube-router.yml
blob: 5368b6f5bdc93c9fa7b3b21adf3f4e7a48be89fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
---
- name: generate kube-router configuration
  template:
    src: "net_kube-router/config.{{ kubernetes_network_plugin_version }}.yml.j2"
    dest: /etc/kubernetes/network-plugin.yml

- name: install kube-router on to the cluster
  command: kubectl --kubeconfig /etc/kubernetes/admin.conf apply -f /etc/kubernetes/network-plugin.yml
  register: kube_router_apply_result
  changed_when: (kube_router_apply_result.stdout_lines | reject("regex", " unchanged$") | list | length) > 0