How to log k8s liveness/readiness checks in linkerd logs?


#1

Does linkerd keeps the logs regarding k8s liveness/readiness checks?
for example, I have,
- curl -H "Host:$POD_IP:9990" $POD_IP:4140/admin/ping
in my liveness checks

livenessProbe:
         exec:
           command:
           - bash
           - -c
           - curl -H "Host:$POD_IP:9990" $POD_IP:4140/admin/ping
         initialDelaySeconds: 30
         periodSeconds: 5

or If I want to have the liveness check response in l5d’s logs?


#2

copying @olix0r 's response from slack.

I don’t think this exists today, though we usually prefer to expose a counter rather than rely on logs
it would be nice of there was a admin/pings counter that we exposed


#3

Thanks for documenting this @zshaik! Feel free to file an issue for this in https://github.com/linkerd/linkerd/issues.
And as always, PRs are welcome :slight_smile: