Clustercontrol 1.8. or 1.9 not starting in Rancher/Kubernetes

Comments

4 comments

  • Official comment
    Avatar
    Ashraf Sharif

    Hi Oliver,

    It looks like the pod creation was terminated/rescheduled before the pod start-up process completes. As you can tell from the output, the entrypoint on 1.8.0 and later has been added with extra 15 seconds of sleep time for the MySQL clean-up process.

    I believe you need to configure the liveness and readiness probe in your YAML, especially the initialDelaySeconds. A successful start-up process should end with ">> Starting Supervisord.." line.

    Regards,
    Ashraf

    Comment actions Permalink
  • Avatar
    Oliver

    Hi,

    thanks for your response. Not sure that I'm understanding your reply. Why is terminating before start-up process is complete?

    I've configured a readiness probe but not sure as configure it. I've put initialDelaySeconds with 60sec. Should I put less sec? I'm checking httpget. Thanks beforehand.

    0
    Comment actions Permalink
  • Avatar
    Krzysztof Ksiazek

    Hi,

    As mentioned in the ticket that you have opened, the problem is related to a slow environment and we weren't able to reproduce it in our tests. Pod may terminate if the startup takes too long. The best we can recommend is to, as my colleague mentioned above, define liveness and readiness probes. You can read more about those here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

    Please keep in mind that the docker image we provide is not intended to be executed in a Kubernetes cluster. It may or may not work, we do not provide any documentation, support nor we do not test such environments therefore your mileage may vary when trying to use CC image with Kubernetes.

    0
    Comment actions Permalink
  • Avatar
    Oliver

    Hi,

    thanks for the response, but I've continued investigating...

    I've compared entrypoint.sh from 1.7.5 (last working) with 1.7.6 and you have added (included in 1.8 and 1.9) a line with ping_stats command below when it fails in my environment. I'm going to test without that line.

    Is it necessary? I've seen what it does and it sends info to your site, is it correct? My pod hasn't configured Internet connection, for that it could stop there and starting breaks. Can I delete that line? I can configure Internet connection on it, but I would prefer delete it if not necessary. Thanks beforehand.

    Cheers...

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk