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:
@@ -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 %}
|
||||
Reference in New Issue
Block a user