fd9bbcb157
* Enable nodes to run calicoctl per-node tasks require waiting for calico-node to be applied Change-Id: Ibe1076b7334a2da0332f2dd766fde0c3f172d1f2 * cleanup tasks that should run on master Change-Id: I43a837879ef41596f14657ecd7f813899b6865ae * Switch run_once calico logic to just run on first master Change-Id: I6893711e354f63c5e1eaf6ac2e23d9a6347a555d
8 lines
231 B
Django/Jinja
8 lines
231 B
Django/Jinja
#!/bin/bash
|
|
DATASTORE_TYPE=kubernetes \
|
|
{% if inventory_hostname in groups['kube-master'] %}
|
|
KUBECONFIG=/etc/kubernetes/admin.conf \
|
|
{% else %}
|
|
KUBECONFIG=/etc/cni/net.d/calico-kubeconfig \
|
|
{% endif %}
|
|
{{ bin_dir }}/calicoctl "$@"
|