Reduce number of lines in template
This commit is contained in:
parent
224789fd55
commit
09e33f3229
1 changed files with 4 additions and 6 deletions
|
|
@ -2,6 +2,10 @@
|
|||
<service>
|
||||
<short>Kubernetes</short>
|
||||
<description>Open needed Kubernetes ports.</description>
|
||||
{% if kubernetes_master == false or kubernetes_master_taint == true %}
|
||||
<port protocol="tcp" port="80"/>
|
||||
<port protocol="tcp" port="443"/>
|
||||
{% endif %}
|
||||
{% if kubernetes_master == true %}
|
||||
<port protocol="tcp" port="6443"/>
|
||||
<port protocol="tcp" port="2379"/>
|
||||
|
|
@ -10,13 +14,7 @@
|
|||
<port protocol="tcp" port="10251"/>
|
||||
<port protocol="tcp" port="10252"/>
|
||||
<port protocol="tcp" port="10255"/>
|
||||
{% if kubernetes_master_taint == true %}
|
||||
<port protocol="tcp" port="80"/>
|
||||
<port protocol="tcp" port="443"/>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<port protocol="tcp" port="10250"/>
|
||||
<port protocol="tcp" port="80"/>
|
||||
<port protocol="tcp" port="443"/>
|
||||
{% endif %}
|
||||
</service>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue