<p>I have 2 clusters and on 1st cluster liveness is being checed with http but on second autometically its being checked with https.</p>

<p>How to make sure by yaml it don't happen.</p>

<pre><code>    livenessProbe:
      httpGet:
        path: /api/version
        port: 80
      initialDelaySeconds: 90
      timeoutSeconds: 10
      periodSeconds: 15
    readinessProbe:
      httpGet:
        path: /api/version
        port: 80
      initialDelaySeconds: 30
      timeoutSeconds: 10
      periodSeconds: 15      
    ports:
    - containerPort:  80
      name:  http
</code></pre>

Vatan Soni
<p>The type of check will depend on the <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.13/#httpgetaction-v1-core" rel="nofollow noreferrer">"httpGet"</a> field, you can define the "scheme" which defaults to HTTP.</p>

<blockquote>
  <p>Scheme to use for connecting to the host. Defaults to HTTP.</p>
</blockquote>

<p>Based on your sample config, your checks should be done using HTTP against port 80. Do you have kubelet or container logs that show the requests coming in as HTTPS?</p>
