Make the supervisor healthz endpoint public

Based on our experiences today with GKE, it will be easier for our users
to configure Ingress health checks if the healthz endpoint is available
on the same public port as the OIDC endpoints.

Also add an integration test for the healthz endpoint now that it is
public.

Also add the optional `containers[].ports.containerPort` to the
supervisor Deployment because the GKE docs say that GKE will look
at that field while inferring how to invoke the health endpoint. See
https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#def_inf_hc
This commit is contained in:
Ryan Richard
2020-10-21 15:24:48 -07:00
parent 5dbc03efe9
commit 122f7cffdb
3 changed files with 66 additions and 15 deletions

View File

@@ -84,10 +84,13 @@ spec:
mountPath: /etc/config
- name: podinfo
mountPath: /etc/podinfo
ports:
- containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: 8080
port: 80
scheme: HTTP
initialDelaySeconds: 2
timeoutSeconds: 15
@@ -96,7 +99,7 @@ spec:
readinessProbe:
httpGet:
path: /healthz
port: 8080
port: 80
scheme: HTTP
initialDelaySeconds: 2
timeoutSeconds: 3