Description
Would be better if we are able to get the pod related events using the operator APIs as given in "kubectl describe <podname>". This will help us in validating the failure reason and verify the behavior more precisely.
For example, if the pod creation is failing due to the missing certificate, the reason is displayed in the describe command's events as given below.
Currently we are able to verify only if the pod is not placed in the cluster.
Events:
|
Type Reason Age From Message
|
---- ------ ---- ---- -------
|
Normal Scheduled 2m default-scheduler Successfully assigned test-couchbase-jmw2b-0003 to minikube
|
Normal SuccessfulMountVolume 2m kubelet, minikube MountVolume.SetUp succeeded for volume "couchbase-data"
|
Normal SuccessfulMountVolume 2m kubelet, minikube MountVolume.SetUp succeeded for volume "default-token-8jffn"
|
Warning FailedMount 23s kubelet, minikube Unable to mount volumes for pod "test-couchbase-jmw2b-0003_ashwin(4610b9d3-58d5-11e8-982c-080027ee3776)": timeout expired waiting for volumes to attach or mount for pod "ashwin"/"test-couchbase-jmw2b-0003". list of unmounted volumes=[couchbase-server-tls]. list of unattached volumes=[couchbase-data couchbase-server-tls default-token-8jffn]
|
Warning FailedMount 18s (x9 over 2m) kubelet, minikube MountVolume.SetUp failed for volume "couchbase-server-tls" : secrets "cluster-secret-tls-jmw2b" not found
|