Given a Python application which polls Kafka topic in an infinite loop and uploads the result to s3 bucket after processing the received Kafka message.
What should be the things to be considered in defining readiness and liveness probes for Kubernetes.
Does it make sense to include in readiness probe:
- That the s3 buckets exist.
- That Kafka topic exist.
- Loop which polls Kafka topic has been initialized.
And the liveness probe only check that the poll loop has not exited.
Is it strictly a bad practice to check such things in readiness probe?