Commit b91e92b0 authored by Mehdi El Kouhen's avatar Mehdi El Kouhen

install weave network

parent f912a393
......@@ -45,6 +45,22 @@
changed_when: "'created' in calico_result.stdout"
when: kubernetes_pod_network.cni == 'calico'
# LINT-ERROR
- name: "Get K8s version"
shell: |
set -o pipefail
kubectl version | base64 | tr -d '\n'
register: k8_version
when: kubernetes_pod_network.cni == 'weave'
- name: Configure Weave networking.
command: "{{ item }}"
with_items:
- "kubectl apply -f https://cloud.weave.works/k8s/net?k8s-version={{ k8_version.stdout_lines[0] }}"
register: weave_result
changed_when: "'created' in weave_result.stdout"
when: kubernetes_pod_network.cni == 'weave'
# TODO: Check if taint exists with something like `kubectl describe nodes`
# instead of using kubernetes_init_stat.stat.exists check.
- name: Allow pods on master node (if configured).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment