HTTP Liveness Probe on HTTPS site

Re: HTTP Liveness Probe on HTTPS site

by Ben Torell -
Number of replies: 0
So, I figured out how to prevent HTTPS redirection for this specific endpoint, However, because Kubernetes refers to a pod internally by an internal IP host, Moodle wants to redirect it to the host listed in the config.

e.g. In my Moodle config, I have $CFG->wwwroot set to "https://example.com", but internally when Kubernetes hits a livenessProbe on a pod, it refers the the pod's internal IP address, which might be http://[random IP]. Moodle sees that IP and tries to redirect to the wwwroot, but the redirect results in a failed livenessProbe to Kubernetes since it's a 3xx result instead of a 2xx result.

Any way I can disable the wwwroot redirect for a single endpoint?