the healthcheck is not recognized by GKE LoadBalan...
# ory-selfhosting
h
the healthcheck is not recognized by GKE LoadBalancer - it expects exactly 200 in return, but /healthz does not respond with this. K8s check is OK because it accepts anything between 200 and 400.
t
What response is it seeing?
h
don't know, it's not 200 for sure
t
The GKE Load balance logs should tell you
h
ok, will check
time=2022-06-08T105337Z level=info msg=completed handling request http_request=map[headersmap[connectionKeep-alive user-agent:GoogleHC/1.0] host:10.57.129.158 method:GET path:/ query:<nil> remote35.191.1.4042014 scheme:http] http_response=map[headersmap[content typetext/plain; charset=utf-8 set-cookie:Value is sensitive and has been redacted. To see the value set config key "log.leak_sensitive_values = true" or environment variable "LOG_LEAK_SENSITIVE_VALUES=true". vary:Origin x-content-type-options:nosniff] size:19 status:404 text_status:Not Found took:396.8µs]
t
It looks like your load balancer healthcheck isn't using the correct path, as it's only hitting
/
which will return 404
h
strange time=2022-06-08T114521Z level=info msg=started handling request http_request=map[headersmap[accept*/* connection:close user-agent:kube-probe/1.21] host10.57.129.1584434 method:GET path:/admin/health/ready query:<nil> remote10.57.129.12959674 scheme:http]
it should be ok...
method:GET path:/admin/health/alive query:<nil> remote10.57.129.12959676 scheme:http] http_response=map[headersmap[cache controlprivate, no-cache, no-store, must-revalidate content-type:application/json; charset=utf-8] size:16 status:200 text_status:OK took:320.84µs]
very strange... status is 200 and still is count as ERROR
time=2022-06-08T114521Z level=info msg=completed handling request http_request=map[headersmap[accept*/* connection:close user-agent:kube-probe/1.21] host10.57.129.1584434 method:GET path:/admin/health/ready query:<nil> remote10.57.129.12959674 scheme:http] http_response=map[headersmap[cache controlprivate, no-cache, no-store, must-revalidate content-type:application/json; charset=utf-8] size:16 status:200 text_status:OK took:2.05135ms] Hide log summary Expand nested fields Copy to clipboard Copy link { insertId: "8jfjaugqk9oxsom0" labels: {7} logName: "projects/v3-test-350516/logs/stderr" receiveTimestamp: "2022-06-08T114525.150336406Z" resource: {2} severity: "ERROR" textPayload: "time=2022-06-08T114521Z level=info msg=completed handling request http_request=map[headersmap[accept*/* connection:close user-agent:kube-probe/1.21] host10.57.129.1584434 method:GET path:/admin/health/ready query:<nil> remote10.57.129.12959674 scheme:http] http_response=map[headersmap[cache controlprivate, no-cache, no-store, must-revalidate content-type:application/json; charset=utf-8] size:16 status:200 text_status:OK took:2.05135ms]" timestamp: "2022-06-08T114521.823943076Z"