Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error restarting haproxy -- ./haproxy_reload: line 26: syntax error: unexpected redirection #137

Open
steve-wormley opened this issue Oct 4, 2016 · 2 comments

Comments

@steve-wormley
Copy link

error restarting haproxy -- ./haproxy_reload: line 26: syntax error: unexpected redirection

I'm seeing the above error when trying to setup the loadbalancer service, I'm not sure if this is the only problem but it's the easiest one to fix.

It appears to be coming because the image kubernetesonarm/loadbalancer is based on busybox but the haproxy_reload script is using the <<< redirect which busybox does not support.

26: socat /tmp/haproxy - <<< "show servers state" > /var/state/haproxy/global

I'm not sure where the source of the kubernetesonarm/loadbalancer image is, so I'm unable to provide a pull request to fix it. but it should be as easy as

echo "show servers state" | socat /tmp/haproxy - >/var/state/haproxy/global

@luxas
Copy link
Owner

luxas commented Oct 5, 2016

haproxy_reload source is here: https://github.com/luxas/kubernetes-on-arm/blob/master/addons/images/loadbalancer/haproxy_reload

Feel free to send a pull request!

@nicolaiskogheim
Copy link

Just thought I'd reference the PR for this, here.

#138

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants