Adding example probes to the Node.js/express-based application follows exactly the same pattern as the Python application. And like the Python example, the code and specifications for this are available at GitHub under the https://github.com/kubernetes-for-developers/kfd-nodejs project, associated with branch 0.3.0.
The probes add nearly the same specification to the Node.js deployment:
livenessProbe: httpGet: path: /probes/alive port: 3000 initialDelaySeconds: 1 periodSeconds: 5readinessProbe: httpGet: path: /probes/ready port: 3000 initialDelaySeconds: 5 periodSeconds: 5
In this case, the probes are requesting against the same HTTP responses that the application provides, and the same port. The URI ...