How to check file is updated after secret updated in k8s?

4/10/2020

I create a secret and mount it as file in pod(config in deployment). If I change the secret, the mounted file will be changed in few seconds. But how can I check the file is updated actually? I don't want to exec into pod and check it , because I want to check it by k8s api or k8s resource status. Is there any way to do that?

-- Glaha
kubernetes

1 Answer

4/10/2020

You wouldn't really in general check that Kubernetes is not broken. Unless you think you've found a bug, in which case you would use kubectl exec and probably many other things to try and track it down.

-- coderanger
Source: StackOverflow