Kubernetes “lock DB directory: resource temporarily unavailable”
ERROR:
level=error ts=2022–03–08T07:00:21.860Z caller=main.go:808 err=”opening storage failed: lock DB directory: resource temporarily unavailable”
Solution:
Terminate the running pod and rerun the pod.
Terminate pod: kubectl scale deploy <deployment name>- -replicas 0
Re-run the pod: kubectl scale deploy <deployment name>- -replicas 1