How to define a liveness command How to define a liveness command kubernetes kubernetes

How to define a liveness command


This problem is related to Golang Command API.I changed the livenessProbe as below

livenessProbe:  exec:    command:    - /bin/sh    - -c    - /home/test/check.sh