Giter Site home page Giter Site logo

Comments (9)

bedis avatar bedis commented on September 3, 2024

Could you send us your kubectl logs for this pod?

from kubernetes-ingress.

fcomte avatar fcomte commented on September 3, 2024

`root@~/kubernetes-ingress[09:26:25]# kubectl logs -f --namespace haproxy-controller haproxy-ingress-5f689bc454-nmsjw
2019/08/03 21:26:36


| | | | / \ | _ \ _ __ _____ ___ _
| || | / _ \ | |) | '/ _ \ / / | | |
| _ |/ ___ | /| | | () > <| || |
|| |// __| || _/_/_\
, |
_ __ _ |/ ___ ____
| |/ / | |
___ _ __ _ __ | | ___ ___ | / |
| ' / | | | '
\ / _ \ '
| '
\ / _ \ __/ _ / __| | | |
| . \ |
| | |
) | __/ | | | | | / || /_ \ | | |
|
|__,|./ _|| || ||_|___||/ |____|

2019/08/03 21:26:36 HAProxy Ingress Controller v1.1.5 06d5e2a

2019/08/03 21:26:36 Build from: [email protected]:haproxytech/kubernetes-ingress.git
2019/08/03 21:26:36 Build date: 2019-07-30T09:07:53

2019/08/03 21:26:36 ConfigMap: default/haproxy-configmap
2019/08/03 21:26:36 Ingress class: haproxy
2019/08/03 21:26:36 main.go:83: Default backend service: haproxy-controller/ingress-default-backend
2019/08/03 21:26:36 main.go:84: Default ssl certificate: default/tls-secret
2019/08/03 21:26:36 controller.go:90: Starting HAProxy with /etc/haproxy/haproxy.cfg
2019/08/03 21:26:52 controller.go:70: Running on Kubernetes version: v1.14.3 linux/amd64
2019/08/03 21:26:57 controller-https.go:80: secret not found tls-secret
root@~/kubernetes-ingress[09:27:07]#
`

from kubernetes-ingress.

fcomte avatar fcomte commented on September 3, 2024

This pod is destroyed by kubernetes because livenessprobe are unhealthy

from kubernetes-ingress.

bedis avatar bedis commented on September 3, 2024

This is how HAProxy is supposed to be started up:
haproxy -f /etc/haproxy/global.cfg -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid

Can you start it up this way and add '-d' for debug output?

from kubernetes-ingress.

fcomte avatar fcomte commented on September 3, 2024

`/ # haproxy -d -f /etc/haproxy/global.cfg -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid
[WARNING] 217/085059 (74) : Can't open server state file '/var/state/haproxy/global': No such file or directory
[WARNING] 217/085059 (74) : Can't open server state file '/var/state/haproxy/global': No such file or directory
Note: setting global.maxconn to 536870861.
Available polling systems :
epoll : pref=300, test result OK
poll : pref=200, test result OK
select : pref=150, test result FAILED
Total: 3 (2 usable), will use epoll.

Available filters :
[SPOE] spoe
[COMP] compression
[CACHE] cache
[TRACE] trace
Killed
`

from kubernetes-ingress.

bedis avatar bedis commented on September 3, 2024

I like the Note: setting global.maxconn to 536870861...
Can you try adding "maxconn 10000" in your global section in /etc/haproxy/global.cfg and try a new manual start?

from kubernetes-ingress.

fcomte avatar fcomte commented on September 3, 2024

This seem to be good now :
`/ # haproxy -d -f /etc/haproxy/global.cfg -f /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid
[WARNING] 225/145934 (12906) : Can't open server state file '/var/state/haproxy/global': No such file or directory
[WARNING] 225/145934 (12906) : Can't open server state file '/var/state/haproxy/global': No such file or directory
Available polling systems :
epoll : pref=300, test result OK
poll : pref=200, test result OK
select : pref=150, test result FAILED
Total: 3 (2 usable), will use epoll.

Available filters :
[SPOE] spoe
[COMP] compression
[CACHE] cache
[TRACE] trace
Using epoll() as the polling mechanism.
[NOTICE] 225/145934 (12906) : New worker #1 (12907) forked`

from kubernetes-ingress.

fcomte avatar fcomte commented on September 3, 2024

What would be the best way to fix it automatically?

from kubernetes-ingress.

bedis avatar bedis commented on September 3, 2024

Well I don't understand what the problem is, so no reliable way to fix it!

from kubernetes-ingress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.