# # MKIt generated file # <% service_port.each { |port|%> # # start <%=name%>-<%=port.external_port%> # frontend <%=name%>-<%=port.external_port%>-front bind <%=lease.ip%>:<%=port.external_port%> <%=if port.ssl? then "ssl crt #{port.crt}" end%> mode <%=port.mode%> # use_backend <%=name%>-<%=port.external_port%>-back backend <%=name%>-<%=port.external_port%>-back mode <%=port.mode%> balance <%=port.load_balance%> <%if port.mode == 'http'%> option httpclose option forwardfor cookie JSESSIONID prefix <%end%><%port.service.pod.each { | pod | %> server <%=pod.name%> <%=pod.ip%><%unless port.internal_port.nil? || port.internal_port.empty? then%><%=":#{port.internal_port}"%> <%if port.mode == 'http'%>cookie A<%end%> check<%end%> <%}%> # # end of <%=name%>-<%=port.external_port%> # <%}%>