summaryrefslogtreecommitdiffstats
path: root/roles/openshift_loadbalancer/README.md
blob: bea4c509bdd975cfc6524e28ebdefdfccf54bef0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
OpenShift HAProxy Loadbalancer
==============================

OpenShift HaProxy Loadbalancer Configuration

Requirements
------------

* Ansible 2.2

This role is intended to be applied to the [lb] host group which is
separate from OpenShift infrastructure components.

This role is not re-entrant. All haproxy configuration lives in a single file.

Role Variables
--------------

From this role:

| Name                                   | Default value |                                                       |
|----------------------------------------|---------------|-------------------------------------------------------|
| openshift_loadbalancer_limit_nofile    | 100000        | Limit number of open files.                           |
| openshift_loadbalancer_global_maxconn  | 20000         | Maximum per-process number of concurrent connections. |
| openshift_loadbalancer_default_maxconn | 20000         | Maximum per-process number of concurrent connections. |
| openshift_loadbalancer_frontends       | none          | List of frontends. See example below.                 |
| openshift_loadbalancer_backends        | none          | List of backends. See example below.                  |

Dependencies
------------

* openshift_facts
* os_firewall
* openshift_repos

Example Playbook
----------------

```
- name: Configure loadbalancer hosts
  hosts: lb
  roles:
  - role: openshift_loadbalancer
    openshift_loadbalancer_frontends:
    - name: atomic-openshift-api
      mode: tcp
      options:
      - tcplog
      binds:
      - "*:8443"
      default_backend: atomic-openshift-api
    openshift_loadbalancer_backends:
    - name: atomic-openshift-api
      mode: tcp
      option: tcplog
      balance: source
      servers:
      - name: master1
        address: "192.168.122.221:8443"
	opts: check
      - name: master2
        address: "192.168.122.222:8443"
	opts: check
      - name: master3
        address: "192.168.122.223:8443"
	opts: check
```

License
-------

Apache License, Version 2.0

Author Information
------------------

Jason DeTiberus (jdetiber@redhat.com)