Browse Source

Flexing calicocni.hostname based on cloud provider

pull/1634/head
Brad Beam 7 years ago
parent
commit
aaa0105f75
1 changed files with 4 additions and 0 deletions
  1. 4
      roles/network_plugin/calico/templates/cni-calico.conf.j2

4
roles/network_plugin/calico/templates/cni-calico.conf.j2

@ -1,6 +1,10 @@
{
"name": "calico-k8s-network",
{% if cloud_provider is defined %}
"hostname": "{{ inventory_hostname }}",
{% else %}
"hostname": "{{ ansible_hostname }}",
{% endif %}
"type": "calico",
"etcd_endpoints": "{{ etcd_access_endpoint }}",
"etcd_cert_file": "{{ etcd_cert_dir }}/node-{{ inventory_hostname }}.pem",

Loading…
Cancel
Save