c12s-kubespray/roles/network_plugin/calico/templates/calicoctl.kdd.sh.j2
2022-06-15 00:57:20 -07:00

8 lines
263 B
Django/Jinja

#!/bin/bash
DATASTORE_TYPE=kubernetes \
{% if inventory_hostname in groups['kube_control_plane'] %}
KUBECONFIG=/etc/kubernetes/admin.conf \
{% else %}
KUBECONFIG=/etc/cni/net.d/calico-kubeconfig \
{% endif %}
{{ bin_dir }}/calicoctl --allow-version-mismatch "$@"