Skip to content

Commit

Permalink
docs: Add documentation for storage/size based retention policy
Browse files Browse the repository at this point in the history
Signed-off-by: Parthiba-Hazra <[email protected]>
  • Loading branch information
Parthiba-Hazra committed Aug 9, 2024
1 parent dd73b6c commit 5f3bc75
Showing 1 changed file with 32 additions and 18 deletions.
50 changes: 32 additions & 18 deletions docs/retention_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ spec:
# pod: <pod_name>
# container: <container_name>
# maxCheckpoints: 5
# maxCheckpointSize: 6 # Maximum size of a single checkpoint in MB
# maxTotalSize: 20 # Maximum total size of checkpoints for the container in MB
# podPolicies:
# - namespace: <namespace>
# pod: <pod_name>
# maxCheckpoints: 10
# maxCheckpointSize: 8 # Maximum size of a single checkpoint in MB
# maxTotalSize: 50 # Maximum total size of checkpoints for the pod in MB
# namespacePolicies:
# - namespace: <namespace>
# maxCheckpoints: 15`
Expand All @@ -48,24 +52,34 @@ A sample configuration file is available [here](/config/samples/_v1_checkpointre

## Understanding Policy Fields

- `checkpointDirectory`: Specifies the directory where checkpoints are stored.
- `applyPoliciesImmediately`: If set to `true`, the policies are applied immediately. If `false` (default value), they are applied after new checkpoint creation.
- `globalPolicy`: Defines global checkpoint retention limits.
- `maxCheckpointsPerNamespace`: Maximum number of checkpoints per namespace.
- `maxCheckpointsPerPod`: Maximum number of checkpoints per pod.
- `maxCheckpointsPerContainer`: Maximum number of checkpoints per container.
- `containerPolicies` (optional): Specific retention policies for containers.
- `namespace`: Namespace of the container.
- `pod`: Pod name of the container.
- `container`: Container name.
- `maxCheckpoints`: Maximum number of checkpoints for the container.
- `podPolicies` (optional): Specific retention policies for pods.
- `namespace`: Namespace of the pod.
- `pod`: Pod name.
- `maxCheckpoints`: Maximum number of checkpoints for the pod.
- `namespacePolicies` (optional): Specific retention policies for namespaces.
- `namespace`: Namespace name.
- `maxCheckpoints`: Maximum number of checkpoints for the namespace.
- **`checkpointDirectory`**: Specifies the directory where checkpoints are stored.
- **`applyPoliciesImmediately`**: If set to `true`, the policies are applied immediately. If `false` (default value), they are applied after new checkpoint creation.
- **`globalPolicy`**: Defines global checkpoint retention limits.
- **`maxCheckpointsPerNamespace`**: Maximum number of checkpoints per namespace.
- **`maxCheckpointsPerPod`**: Maximum number of checkpoints per pod.
- **`maxCheckpointsPerContainer`**: Maximum number of checkpoints per container.
- **`maxCheckpointSize`**: Maximum size of a single checkpoint in MB.
- **`maxTotalSizePerNamespace`**: Maximum total size of checkpoints per namespace in MB.
- **`maxTotalSizePerPod`**: Maximum total size of checkpoints per pod in MB.
- **`maxTotalSizePerContainer`**: Maximum total size of checkpoints per container in MB.
- **`containerPolicies`** (optional): Specific retention policies for containers.
- **`namespace`**: Namespace of the container.
- **`pod`**: Pod name of the container.
- **`container`**: Container name.
- **`maxCheckpoints`**: Maximum number of checkpoints for the container.
- **`maxCheckpointSize`**: Maximum size of a single checkpoint in MB.
- **`maxTotalSize`**: Maximum total size of checkpoints for the container in MB.
- **`podPolicies`** (optional): Specific retention policies for pods.
- **`namespace`**: Namespace of the pod.
- **`pod`**: Pod name.
- **`maxCheckpoints`**: Maximum number of checkpoints for the pod.
- **`maxCheckpointSize`**: Maximum size of a single checkpoint in MB.
- **`maxTotalSize`**: Maximum total size of checkpoints for the pod in MB.
- **`namespacePolicies`** (optional): Specific retention policies for namespaces.
- **`namespace`**: Namespace name.
- **`maxCheckpoints`**: Maximum number of checkpoints for the namespace.
- **`maxCheckpointSize`**: Maximum size of a single checkpoint in MB.
- **`maxTotalSize`**: Maximum total size of checkpoints for the namespace in MB.

## Policy Hierarchy and Application

Expand Down

0 comments on commit 5f3bc75

Please sign in to comment.