You cannot 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
472 B
Django/Jinja
19 lines
472 B
Django/Jinja
server: https://{{ hostvars[groups['kubernetes'][0]]['nodeip_ipv4'] }}:6443
|
|
token: '{{ kubernetes.token }}'
|
|
|
|
{% if nodeip_ipv6 != "" and kubernetes.ipPool.ipv6 is defined %}
|
|
node-ip: {{ nodeip_ipv4 }},{{ nodeip_ipv6 }}
|
|
{% else %}
|
|
node-ip: {{ nodeip_ipv4 }}
|
|
{% endif %}
|
|
|
|
## Label
|
|
# Region & DC
|
|
node-label:
|
|
{% if region is defined %}
|
|
- topology.kubernetes.io/region={{ region }}
|
|
{% endif %}
|
|
{% if zone is defined %}
|
|
- topology.kubernetes.io/zone={{ zone }}
|
|
{% endif %}
|