summaryrefslogtreecommitdiffstats
path: root/roles/openshift_loadbalancer/README.md
diff options
context:
space:
mode:
authorVishal Patil <vishpat@gmail.com>2016-10-04 09:50:23 -0400
committerGitHub <noreply@github.com>2016-10-04 09:50:23 -0400
commit21891653d3b287e6d78082ee03f878de415f16de (patch)
treecce02487ed8d94a93b7c141e0579e32feb026543 /roles/openshift_loadbalancer/README.md
parentb0ddb188ef1dc8484f4d9e1f7ae58dcd4ac6a299 (diff)
parente297a8c887c6fd1ba880a6977fdfe50a3a1ea2ee (diff)
downloadopenshift-21891653d3b287e6d78082ee03f878de415f16de.tar.gz
openshift-21891653d3b287e6d78082ee03f878de415f16de.tar.bz2
openshift-21891653d3b287e6d78082ee03f878de415f16de.tar.xz
openshift-21891653d3b287e6d78082ee03f878de415f16de.zip
Merge pull request #1 from abutcher/nuage_ha
Filterize haproxy front/backends and add method for specifying custom front/backends
Diffstat (limited to 'roles/openshift_loadbalancer/README.md')
-rw-r--r--roles/openshift_loadbalancer/README.md51
1 files changed, 46 insertions, 5 deletions
diff --git a/roles/openshift_loadbalancer/README.md b/roles/openshift_loadbalancer/README.md
index 81fc282be..03e837e46 100644
--- a/roles/openshift_loadbalancer/README.md
+++ b/roles/openshift_loadbalancer/README.md
@@ -1,27 +1,68 @@
OpenShift HAProxy Loadbalancer
==============================
-TODO
+OpenShift HaProxy Loadbalancer Configuration
Requirements
------------
-TODO
+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
--------------
-TODO
+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
------------
-TODO
+* openshift_facts
+* os_firewall
+* openshift_repos
Example Playbook
----------------
-TODO
+```
+- 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
-------