Skip to content

Commit 846ccde

Browse files
committed
Better explain checking the lifetime
1 parent 9a69f06 commit 846ccde

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

modules/concepts/pages/operations/temporary_credentials_lifetime.adoc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,12 @@ Similar to the example above, users can configure the lifetime of temporary cred
6969

7070
== Check the lifetime
7171

72-
Pods are normally not restarted "randomly" by Stackable operators.
73-
Instead, when a temporary credential is added to a Pod, an annotation is added as well.
74-
It starts with `restarter.stackable.tech/expires-at.` and instructs the xref:commons-operator:index.adoc[commons-operator] to restart the Pod once the specified instant is reached.
72+
After configuring the lifetime as described above you could simply observe your stacklet for a week/month (or whatever your new lifetime is), to see if your changes take effect.
73+
However, it's much quicker to check at what point of time your Pods will be restarted next.
74+
75+
Pods are not restarted "randomly" by Stackable operators, but in a predicable manner.
76+
When a temporary credential is added to a Pod, an annotation is added as well.
77+
It starts with `restarter.stackable.tech/expires-at.` and instructs the xref:commons-operator/restarter.adoc[restart-controller] to restart the Pod once the specified point in time is reached.
7578

7679
Given the following Pod
7780

@@ -84,5 +87,6 @@ metadata:
8487
restarter.stackable.tech/expires-at.ea77192c1184326d33e8ee32cfe921ea: "2024-12-05T15:49:10.043722965+00:00"
8588
----
8689

87-
You can always determine the timestamp the Pod will be restarted by the xref:commons-operator:index.adoc[commons-operator] by taking the earliest timestamp, `2024-12-05T14:03:47.131570189+00:00` in this case.
88-
This way you can verify that the changes you made to the temporary credentials lifetime take effect.
90+
You can always determine the instant the Pod will be restarted by the xref:commons-operator/restarter.adoc[restart-controller] by taking the earliest timestamp, `2024-12-05T14:03:47.131570189+00:00` in this case.
91+
92+
You can use this timestamp to check if your changes have been applied as intended.

0 commit comments

Comments
 (0)