You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
674 B

9 years ago
  1. #! /usr/bin/bash
  2. # This node's IPv4 address
  3. CALICO_IPAM=true
  4. DEFAULT_IPV4={{ ansible_default_ipv4.address }}
  5. {% if inventory_hostname in groups['kube-node'] %}
  6. # The kubernetes master IP
  7. KUBERNETES_MASTER={{ groups['kube-master'][0] }}
  8. # Location of etcd cluster used by Calico. By default, this uses the etcd
  9. # instance running on the Kubernetes Master
  10. ETCD_AUTHORITY={{ groups['kube-master'][0] }}:4001
  11. # The kubernetes-apiserver location - used by the calico plugin
  12. KUBE_API_ROOT=http://{{ groups['kube-master'][0] }}:8080/api/v1/
  13. # Location of the calicoctl binary - used by the calico plugin
  14. CALICOCTL_PATH="{{ bin_dir }}/calicoctl"
  15. {% endif %}