<p>I'm using readinessProbe on my container and configured it work on HTTPS with scheme attribute.
My server expects the get the certificates. how can I configure the readiness probe to support HTTPS with certificates exchange? I don't want it to skip the certificates</p>
<pre><code>      readinessProbe:
        httpGet:
          path: /eh/heartbeat
          port: 2347
          scheme: HTTPS
        initialDelaySeconds: 210
        periodSeconds: 10
        timeoutSeconds: 5

</code></pre>

<p>You can use <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-liveness-command" rel="nofollow noreferrer">Readiness command</a> instead of HTTP request. This will give you complete control over the check, including the certificate exchange.</p>
<p>So, instead of:</p>
<pre><code>readinessProbe:
    httpGet:
      path: /eh/heartbeat
      port: 2347
      scheme: HTTPS
</code></pre>
<p>, you would have something like:</p>
<pre><code>readinessProbe:
  exec:
    command:
    - python
    - your_script.py
</code></pre>
<p>Be sure the script returns 0 if all is well, and non-zero value on failure.
(python your_script.py is, of course, just one example. You would know what is the best approach for you)</p>
