[kube-master]
{% for publicIpObj in vm_ip_list %}
{% if 'master' in publicIpObj.name %}
{% if harbor_enabled|default(false) %}
{{ publicIpObj.properties.ipAddress }} node_labels=registry=harbor
{% else %}
{{ publicIpObj.properties.ipAddress }}
{% endif %}
{% endif %}
{% endfor %}

[etcd]
{% for publicIpObj in vm_ip_list %}
{% if 'master' in publicIpObj.name %}
{{ publicIpObj.properties.ipAddress }}
{% endif %}
{% endfor %}

[kube-node]
{% for publicIpObj in vm_ip_list %}
{% if 'node' in publicIpObj.name %}
{% if harbor_enabled|default(false) %}
{{ publicIpObj.properties.ipAddress }} node_labels=kind=workload,registry=harbor
{% else %}
{{ publicIpObj.properties.ipAddress }} node_labels=kind=workload
{% endif %}
{% endif %}
{% if 'monitor' in publicIpObj.name %}
{{ publicIpObj.properties.ipAddress }} node_labels=kind=cluster-monitor
{% endif %}
{% if 'logging' in publicIpObj.name %}
{{ publicIpObj.properties.ipAddress }} node_labels=kind=cluster-logging
{% endif %}
{% endfor %}

[k8s-cluster:children]
kube-node
kube-master

[yum_server]
{% for publicIpObj in vm_ip_list %}
{% if 'tep-ci-web00' in publicIpObj.name %}
{{ publicIpObj.properties.ipAddress }}
{% endif %}
{% endfor %}
