summaryrefslogtreecommitdiff
path: root/playbooks/k8s-stream.yaml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-01-20 03:31:51 +0100
committerChristian Pointner <equinox@spreadspace.org>2018-01-20 03:31:51 +0100
commit9932bc76bb05a6c0dae2e9ce5bc2af440eaa3bb3 (patch)
tree293cbc7351842db182fba65035f28d4e8b21d87b /playbooks/k8s-stream.yaml
parentkube-proxy needs bridge-nf-call-iptables to be set (diff)
use specific version of kubernetes and docker-ce
Diffstat (limited to 'playbooks/k8s-stream.yaml')
-rw-r--r--playbooks/k8s-stream.yaml8
1 files changed, 7 insertions, 1 deletions
diff --git a/playbooks/k8s-stream.yaml b/playbooks/k8s-stream.yaml
index 6292f24a..ff369435 100644
--- a/playbooks/k8s-stream.yaml
+++ b/playbooks/k8s-stream.yaml
@@ -2,8 +2,14 @@
- name: install kubernetes and overlay network
hosts: k8s-stream
roles:
- - role: kubernetes-base
+ ## Since `base` has a dependency for docker it would install and start the daemon
+ ## without the docker daemon config file generated by `net`.
+ ## This means that the docker daemon will create a bridge and install iptables rules
+ ## upon first startup (the first time this playbook runs on a specific host).
+ ## Since it is a tedious task to remove the interface and the firewall rules it is much
+ ## easier to just run `net` before `base` as `net` does not need anything from `base`.
- role: kubernetes-net
+ - role: kubernetes-base
- name: configure kubernetes master
hosts: k8s-stream-master