I use rancher v1.6.1.
When i create a service with healthcheck configured with:
#docker-compose.yml version: '2' services: service: image: some-image #rancher-compose.yml version: '2' services: service: scale: 1 start_on_create: true health_check: response_timeout: 1000 healthy_threshold: 1 port: 80 unhealthy_threshold: 1 initializing_timeout: 60000 interval: 1000 strategy: none request_line: GET "/" "HTTP/1.0" reinitializing_timeout: 60000
My service doesn’t listen 80 port so healthcheck always fails. But it never becomes unhealty. It stays in ‘Initializing’ state and then becomes stopped and removed.
But if my service passes healthckeck first time and becomes green and then stops listening 80 port, it becomes unhealthy (expected behaviour).
Do I miss something?