Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (28 sloc) 767 Bytes
Using HAproxy as an external LoadBalancer in front of your Kubernetes Cluster.


{% code-tabs %} {% code-tabs-item title="haproxy-network-allowed.cfg" %}

frontend www

  bind *:80
  bind *:443 ssl crt /etc/some/cert.pem
  # Route based on source ip
  # acl network_allowed src
  # tcp-request connection reject if !network_allowed
  # acl block_1 src
  # acl block_2 src
  # use backend block_1_hosts if block_1 
  # use backend block_2_hosts if block_2
  use_backend k8-cluster
backend k8-cluster

  server node1 check
  server node2 check
  server node3 check

{% endcode-tabs-item %} {% endcode-tabs %}

You can’t perform that action at this time.