mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-11 10:00:03 -03:30
Flexing calicocni.hostname based on cloud provider
This commit is contained in:
parent
f29a42721f
commit
aaa0105f75
@ -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…
x
Reference in New Issue
Block a user