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