[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: help with redinessProbe check



Hi Marc.

What's the output of

oc get events
oc debug dc/your-dc
Your curl command in the debug pod and please add -v to the command

even though is it possible to put the sequence in a shell script which you then call.

Does the server listen on 127.0.0.1?

Regards
aleks

Marc Boorshtein <mboorshtein gmail com> schrieb am 06.06.2017:
I'm trying to use the following command as my liveness check:

/usr/bin/curl --insecure https://127.0.0.1:8443/check_alive 2>/dev/null | grep Anonymous || exit 1

I tried:

readinessProbe:
            exec:
              command:
                - '/usr/bin/curl'
                - '--insecure'
                - 'https://127.0.0.1:8443/check_alive'
                - '2>/dev/null'
                - '|'
                - 'grep'
                - 'Anonymous'
                - '||'
                - 'exit'
                - '1'

and 

readinessProbe:
            exec:
              command:
                - '/usr/bin/curl --insecure https://127.0.0.1:8443/check_alive 2>/dev/null | grep Anonymous || exit 1'

but openshift doesn't seem to like that either.  Thoughts?  Any help is greatly appreciated.

Thanks
Marc



users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]