<p>Is there a command/method to get the time elapsed from the instance a Kubernetes object <strong>creation command is launched</strong>  (e.g., <code>kubectl create -f mydeployment-pod.yaml</code>),  until the Kubernetes object  (deployment/pod…) is fully created and in <strong>running/ready state</strong>.</p>

Mazen Ezzeddine
<p>As mentioned by @Sahadat: there is no native way of calculating that. However, you can use <code>kubectl get events</code> to see the <code>CreationTimestamp</code>, <code>firstTimestamp</code> and <code>lastTimestamp</code>. You can either request the output in yaml/json format by executing <code>kubectl get events -o yaml</code> or use  <a href="https://kubernetes.io/docs/reference/kubectl/overview/#custom-columns" rel="nofollow noreferrer">custom columns</a> and <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/" rel="nofollow noreferrer">fields selectors</a> to narrow down the output, for example:</p>
<pre><code>kubectl get events -o custom-columns=FirstSeen:.firstTimestamp,LastSeen:.lastTimestamp,Created:.CreationTimestamp
</code></pre>
<p>That of course can be adjusted according to your needs.</p>
