What would be the best way to create a liveness probe based on incoming TCP traffic on particular port?
tcpdump and bash are available inside so it could be achieved by some script checking if there is incoming traffic on that port, but I wonder if there are better (cleaner) ways?
The example desired behaviour:
if there is no incoming traffic on port 1234 for the last 10 seconds the container crashes