Sha256: 019e767e90e8fbeaf59e2a9ad7e64a16bc2ce863e3182dda1e4d80c4fbc0b8d3

Contents?: true

Size: 829 Bytes

Versions: 2

Compression:

Stored size: 829 Bytes

Contents

#
# MKIt generated file
#
<% public_ports.each { |external_port|%>
#
# start <%=name%>-<%=external_port%>
#
frontend <%=name%>-<%=external_port%>-front
  bind <%=lease.ip%>:<%=external_port%>
  mode <%=ports_mode_by_external(external_port)%>
  #
  use_backend <%=name%>-<%=external_port%>-back

backend <%=name%>-<%=external_port%>-back
   mode <%=ports_mode_by_external(external_port)%>
   #balance leastconn
   balance  roundrobin
 <%if ports_mode_by_external(external_port) == 'http'%>
   option httpclose
   option forwardfor
   cookie JSESSIONID prefix
 <%end%>
<%ports_by_external(external_port).each { |port| %>
   <%port.service.pod.each { | pod | %>
   server <%=pod.name%>  <%=pod.ip%>:<%=port.internal_port%> <%if port.mode == 'http'%>cookie A<%end%>  check<%}%><%}%>
# 
# end of <%=name%>-<%=external_port%>
#
<%}%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mkit-0.3.0 lib/mkit/app/templates/haproxy/xapp_haproxy.cfg.erb
mkit-0.2.0 lib/mkit/app/templates/haproxy/xapp_haproxy.cfg.erb