diff options
author | Eric Wolinetz <ewolinet@redhat.com> | 2017-01-23 16:08:20 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 16:08:20 -0600 |
commit | 066494438d5baff9f555cd56a8bde94df148dc31 (patch) | |
tree | e0c802a5af8dc07f0a16b5d41ebea55de4a34d06 /roles/openshift_loadbalancer/templates | |
parent | d740fd159416783c88839e6e2c2e150eb81b67da (diff) | |
parent | c2bdcebcf9bc8aebba6d09a80c6b5cccdb17786d (diff) | |
download | openshift-066494438d5baff9f555cd56a8bde94df148dc31.tar.gz openshift-066494438d5baff9f555cd56a8bde94df148dc31.tar.bz2 openshift-066494438d5baff9f555cd56a8bde94df148dc31.tar.xz openshift-066494438d5baff9f555cd56a8bde94df148dc31.zip |
Merge branch 'master' into fix_logging_jks_gen
Diffstat (limited to 'roles/openshift_loadbalancer/templates')
-rw-r--r-- | roles/openshift_loadbalancer/templates/haproxy.docker.service.j2 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/openshift_loadbalancer/templates/haproxy.docker.service.j2 b/roles/openshift_loadbalancer/templates/haproxy.docker.service.j2 new file mode 100644 index 000000000..624876ab0 --- /dev/null +++ b/roles/openshift_loadbalancer/templates/haproxy.docker.service.j2 @@ -0,0 +1,17 @@ +[Unit] +After=docker.service +Requires=docker.service +PartOf=docker.service + +[Service] +ExecStartPre=-/usr/bin/docker rm -f openshift_loadbalancer +ExecStart=/usr/bin/docker run --rm --name openshift_loadbalancer -p {{ openshift_master_api_port | default(8443) }}:{{ openshift_master_api_port | default(8443) }} -v /etc/haproxy/haproxy.cfg:/etc/haproxy/haproxy.cfg:ro --entrypoint="haproxy -f /etc/haproxy/haproxy.cfg" {{ openshift.common.router_image }}:{{ openshift_image_tag }} +ExecStartPost=/usr/bin/sleep 10 +ExecStop=/usr/bin/docker stop openshift_loadbalancer +LimitNOFILE={{ openshift_loadbalancer_limit_nofile | default(100000) }} +LimitCORE=infinity +Restart=always +RestartSec=5s + +[Install] +WantedBy=docker.service |