Skip to content

Commit 5f3bc75

Browse files
docs: Add documentation for storage/size based retention policy
Signed-off-by: Parthiba-Hazra <[email protected]>
1 parent dd73b6c commit 5f3bc75

File tree

1 file changed

+32
-18
lines changed

1 file changed

+32
-18
lines changed

docs/retention_policy.md

+32-18
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,14 @@ spec:
3636
# pod: <pod_name>
3737
# container: <container_name>
3838
# maxCheckpoints: 5
39+
# maxCheckpointSize: 6 # Maximum size of a single checkpoint in MB
40+
# maxTotalSize: 20 # Maximum total size of checkpoints for the container in MB
3941
# podPolicies:
4042
# - namespace: <namespace>
4143
# pod: <pod_name>
4244
# maxCheckpoints: 10
45+
# maxCheckpointSize: 8 # Maximum size of a single checkpoint in MB
46+
# maxTotalSize: 50 # Maximum total size of checkpoints for the pod in MB
4347
# namespacePolicies:
4448
# - namespace: <namespace>
4549
# maxCheckpoints: 15`
@@ -48,24 +52,34 @@ A sample configuration file is available [here](/config/samples/_v1_checkpointre
4852

4953
## Understanding Policy Fields
5054

51-
- `checkpointDirectory`: Specifies the directory where checkpoints are stored.
52-
- `applyPoliciesImmediately`: If set to `true`, the policies are applied immediately. If `false` (default value), they are applied after new checkpoint creation.
53-
- `globalPolicy`: Defines global checkpoint retention limits.
54-
- `maxCheckpointsPerNamespace`: Maximum number of checkpoints per namespace.
55-
- `maxCheckpointsPerPod`: Maximum number of checkpoints per pod.
56-
- `maxCheckpointsPerContainer`: Maximum number of checkpoints per container.
57-
- `containerPolicies` (optional): Specific retention policies for containers.
58-
- `namespace`: Namespace of the container.
59-
- `pod`: Pod name of the container.
60-
- `container`: Container name.
61-
- `maxCheckpoints`: Maximum number of checkpoints for the container.
62-
- `podPolicies` (optional): Specific retention policies for pods.
63-
- `namespace`: Namespace of the pod.
64-
- `pod`: Pod name.
65-
- `maxCheckpoints`: Maximum number of checkpoints for the pod.
66-
- `namespacePolicies` (optional): Specific retention policies for namespaces.
67-
- `namespace`: Namespace name.
68-
- `maxCheckpoints`: Maximum number of checkpoints for the namespace.
55+
- **`checkpointDirectory`**: Specifies the directory where checkpoints are stored.
56+
- **`applyPoliciesImmediately`**: If set to `true`, the policies are applied immediately. If `false` (default value), they are applied after new checkpoint creation.
57+
- **`globalPolicy`**: Defines global checkpoint retention limits.
58+
- **`maxCheckpointsPerNamespace`**: Maximum number of checkpoints per namespace.
59+
- **`maxCheckpointsPerPod`**: Maximum number of checkpoints per pod.
60+
- **`maxCheckpointsPerContainer`**: Maximum number of checkpoints per container.
61+
- **`maxCheckpointSize`**: Maximum size of a single checkpoint in MB.
62+
- **`maxTotalSizePerNamespace`**: Maximum total size of checkpoints per namespace in MB.
63+
- **`maxTotalSizePerPod`**: Maximum total size of checkpoints per pod in MB.
64+
- **`maxTotalSizePerContainer`**: Maximum total size of checkpoints per container in MB.
65+
- **`containerPolicies`** (optional): Specific retention policies for containers.
66+
- **`namespace`**: Namespace of the container.
67+
- **`pod`**: Pod name of the container.
68+
- **`container`**: Container name.
69+
- **`maxCheckpoints`**: Maximum number of checkpoints for the container.
70+
- **`maxCheckpointSize`**: Maximum size of a single checkpoint in MB.
71+
- **`maxTotalSize`**: Maximum total size of checkpoints for the container in MB.
72+
- **`podPolicies`** (optional): Specific retention policies for pods.
73+
- **`namespace`**: Namespace of the pod.
74+
- **`pod`**: Pod name.
75+
- **`maxCheckpoints`**: Maximum number of checkpoints for the pod.
76+
- **`maxCheckpointSize`**: Maximum size of a single checkpoint in MB.
77+
- **`maxTotalSize`**: Maximum total size of checkpoints for the pod in MB.
78+
- **`namespacePolicies`** (optional): Specific retention policies for namespaces.
79+
- **`namespace`**: Namespace name.
80+
- **`maxCheckpoints`**: Maximum number of checkpoints for the namespace.
81+
- **`maxCheckpointSize`**: Maximum size of a single checkpoint in MB.
82+
- **`maxTotalSize`**: Maximum total size of checkpoints for the namespace in MB.
6983

7084
## Policy Hierarchy and Application
7185

0 commit comments

Comments
 (0)