1
0
mirror of https://github.com/jcwimer/kubernetes-ansible synced 2026-05-21 11:09:25 +00:00

Added support for more pod networks and deployed traefik as a daemon set

This commit is contained in:
2018-12-20 07:21:58 -05:00
parent 3cd8c9733d
commit 5463188d89
8 changed files with 91 additions and 491 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/bash
{% if kube_network == "weavenet" %}
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
{% elif kube_network == "flannel" %}
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/bc79dd1505b0c8681ece4de4c0d86c5cd2643275/Documentation/kube-flannel.yml
{% elif kube_network == "calico" %}
kubectl apply -f https://docs.projectcalico.org/v3.3/getting-started/kubernetes/installation/hosted/rbac-kdd.yaml
kubectl apply -f https://docs.projectcalico.org/v3.3/getting-started/kubernetes/installation/hosted/kubernetes-datastore/calico-networking/1.7/calico.yaml
{% endif %}