2019-07-08 09:20:03 +00:00
|
|
|
#!/bin/bash
|
|
|
|
DATASTORE_TYPE=kubernetes \
|
|
|
|
{% if inventory_hostname in groups['kube-master'] %}
|
2019-07-15 08:59:06 +00:00
|
|
|
KUBECONFIG=/etc/kubernetes/admin.conf \
|
|
|
|
{% else %}
|
|
|
|
KUBECONFIG=/etc/cni/net.d/calico-kubeconfig \
|
2019-07-08 09:20:03 +00:00
|
|
|
{% endif %}
|
|
|
|
{{ bin_dir }}/calicoctl "$@"
|