sonata-nfv / tng-api-gtw

The API Gateway for the 5GTANGO Verification&Validation and Service Platforms (built on top of SONATA).
http://5gtango.eu
Apache License 2.0
1 stars 12 forks source link

Provide a readiness/liveliness endpoint #144

Closed jbonnet closed 5 years ago

jbonnet commented 5 years ago

Check this and this.

jbonnet commented 5 years ago

This case is similar to the one shown here, but with a /pings (plural) endpoint.

So the configuration should be something like the following:

    livenessProbe:
      httpGet:
        path: /pings
        port: 5000
      initialDelaySeconds: 3
      periodSeconds: 3
jbonnet commented 5 years ago

Should answer with

halt 200, {}, { alive_since: Time.now.utc}.to_json
jbonnet commented 5 years ago

Closed via #169