<p>How can I check timestamp when a kubernetes pod was added or removed from service (endpointslice)?
Maybe kubernetes leaves a log or event of it, but I can't find any documents regarding it.</p>
<p>My deployment replicas scale all the time, but I don't see any events regarding service or endpointslices.</p>

rigophil
<p>You can use the <code>kubectl get events</code> command to check the timestamp of the kubernetes pod.This will give you firstTimestamp and lastTimestamp for each event. You can request the output in yaml/json format if you want to check the event timestamps by running the below command:</p>
<pre><code>kubectl get events -o yaml
</code></pre>
<p>You can also use a combination of customs columns and field selector by running the below command:</p>
<pre><code>$ kubectl get events -o custom-columns=FirstSeen:.firstTimestamp,LastSeen:.lastTimestamp,Count:.count,From:.source.component,Type:.type,Reason:.reason,Message:.message \ --field-selector involvedObject.kind=Pod,involvedObject.name=my-pod
</code></pre>
