The probe is configured for an HTTPS endpoint and fails with `http: server gave HTTP response to HTTPS client`.
BeginnerTroubleshootingResources, OOM, probes and termination
Answer
Likely causes → Scheme mismatch. The probe uses scheme: HTTPS but the port serves plain HTTP (or the reverse gives 400 Bad Request / malformed HTTP response).
Diagnose →
kubectl get pod api-x -o jsonpath='{.spec.containers[0].readinessProbe.httpGet}'
kubectl exec api-x -- wget -qSO- http://localhost:8443/healthz
Fix → Match the scheme to the port. Note the kubelet does not verify TLS certificates for HTTPS probes, so a self-signed cert is fine.
Prevent → Serve health endpoints on a dedicated plain-HTTP management port.
More on Resources, OOM, probes and termination
`kubectl describe pod` shows `Last State: Terminated, Reason: OOMKilled, Exit Code: 137`.BeginnerA Java service is OOMKilled at 2 GiB limit but the heap is only `-Xmx1800m`.IntermediateMany Pods on one node were killed at once and the node shows a `SystemOOM` event. Container limits were not reached.AdvancedPods show `Evicted` with `The node was low on resource: memory. Threshold quantity: 100Mi, available: 87Mi. Container app was using 1.4Gi, request is 256Mi`.IntermediateA Pod is evicted with `Pod ephemeral local storage usage exceeds the total limit of containers 1Gi`.Intermediatep99 latency spikes every few seconds, CPU usage graph shows only 40% of the limit.Advanced