Skip to content

Commit ac2933c

Browse files
committed
registered restartedAt annotation
Signed-off-by: Ritikaa96 <[email protected]>
1 parent f29f4a5 commit ac2933c

File tree

1 file changed

+13
-0
lines changed
  • content/en/docs/reference/labels-annotations-taints

1 file changed

+13
-0
lines changed

content/en/docs/reference/labels-annotations-taints/_index.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,19 @@ The kubectl command line tool uses this annotation as a legacy mechanism
12751275
to track changes. That mechanism has been superseded by
12761276
[Server-side apply](/docs/reference/using-api/server-side-apply/).
12771277
1278+
### kubectl.kubernetes.io/restartedAt {#kubectl-k8s-io-restart-at}
1279+
1280+
Type: Annotation
1281+
1282+
Example: kubectl.kubernetes.io/restartedAt: "2024-06-21T17:27:41Z"
1283+
1284+
Used on: Pod
1285+
1286+
This annotation contains the latest restart time of a resource(Deployment, ReplicaSet, StatefulSet or DaemonSet).
1287+
The command `kubectl rollout restart <RESOURCE>` triggers a restart by patching the template
1288+
metadata of all the pods of resource with this annotation. You can also trigger a restart by manually
1289+
setting or changing the value of this annotation. In above example the latest restart time of resource is shown as 21st Jun 2024 17:27:41 GMT.
1290+
12781291
### endpoints.kubernetes.io/over-capacity
12791292

12801293
Type: Annotation

0 commit comments

Comments
 (0)