You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/retention_policy.md
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ spec:
27
27
checkpointDirectory: /var/lib/kubelet/checkpoints
28
28
applyPoliciesImmediately: false
29
29
globalPolicy:
30
+
retainOrphan: true
30
31
maxCheckpointsPerNamespace: 50
31
32
maxCheckpointsPerPod: 30
32
33
maxCheckpointsPerContainer: 10
@@ -35,6 +36,7 @@ spec:
35
36
# - namespace: <namespace>
36
37
# pod: <pod_name>
37
38
# container: <container_name>
39
+
# retainOrphan: false # Set to false will delete all orphan checkpoints
38
40
# maxCheckpoints: 5
39
41
# maxCheckpointSize: 6 # Maximum size of a single checkpoint in MB
40
42
# maxTotalSize: 20 # Maximum total size of checkpoints for the container in MB
@@ -46,7 +48,7 @@ spec:
46
48
# maxTotalSize: 50 # Maximum total size of checkpoints for the pod in MB
47
49
# namespacePolicies:
48
50
# - namespace: <namespace>
49
-
# maxCheckpoints: 15`
51
+
# maxCheckpoints: 15`
50
52
```
51
53
A sample configuration file is available [here](/config/samples/_v1_checkpointrestoreoperator.yaml).
52
54
@@ -55,6 +57,7 @@ A sample configuration file is available [here](/config/samples/_v1_checkpointre
55
57
-`checkpointDirectory`: Specifies the directory where checkpoints are stored.
56
58
-`applyPoliciesImmediately`: If set to `true`, the policies are applied immediately. If `false` (default value), they are applied after new checkpoint creation.
57
59
-`globalPolicy`: Defines global checkpoint retention limits.
60
+
-`retainOrphan`: If set to `true` (default), orphan checkpoints (checkpoints whose associated resources have been deleted) will be retained. If set to `false`, orphan checkpoints will be automatically deleted. This is particularly useful for transient checkpoints used to recover from errors by replacing 'container restart' with 'container restore'.
58
61
-`maxCheckpointsPerNamespace`: Maximum number of checkpoints per namespace.
59
62
-`maxCheckpointsPerPod`: Maximum number of checkpoints per pod.
60
63
-`maxCheckpointsPerContainer`: Maximum number of checkpoints per container.
@@ -66,17 +69,20 @@ A sample configuration file is available [here](/config/samples/_v1_checkpointre
66
69
-`namespace`: Namespace of the container.
67
70
-`pod`: Pod name of the container.
68
71
-`container`: Container name.
72
+
-`retainOrphan`: If set to `true` (default), orphan checkpoints for this container will be retained. If set to `false`, orphan checkpoints will be deleted.
69
73
-`maxCheckpoints`: Maximum number of checkpoints for the container.
70
74
-`maxCheckpointSize`: Maximum size of a single checkpoint in MB.
71
75
-`maxTotalSize`: Maximum total size of checkpoints for the container in MB.
72
76
-`podPolicies` (optional): Specific retention policies for pods.
73
77
-`namespace`: Namespace of the pod.
74
78
-`pod`: Pod name.
79
+
-`retainOrphan`: If set to `true` (default), orphan checkpoints for this pod will be retained. If set to `false`, orphan checkpoints will be deleted.
75
80
-`maxCheckpoints`: Maximum number of checkpoints for the pod.
76
81
-`maxCheckpointSize`: Maximum size of a single checkpoint in MB.
77
82
-`maxTotalSize`: Maximum total size of checkpoints for the pod in MB.
78
83
-`namespacePolicies` (optional): Specific retention policies for namespaces.
79
84
-`namespace`: Namespace name.
85
+
-`retainOrphan`: If set to `true` (default), orphan checkpoints for this namespace will be retained. If set to `false`, orphan checkpoints will be deleted.
80
86
-`maxCheckpoints`: Maximum number of checkpoints for the namespace.
81
87
-`maxCheckpointSize`: Maximum size of a single checkpoint in MB.
82
88
-`maxTotalSize`: Maximum total size of checkpoints for the namespace in MB.
0 commit comments