Skip to content

Commit 99d45cd

Browse files
Update docs for ArangoBackupPolicy (#225)
* Update docs for ArangoBackupPolicy * review --------- Co-authored-by: Paula <paula.mihu@arangodb.com>
1 parent c74485a commit 99d45cd

File tree

3 files changed

+159
-66
lines changed

3 files changed

+159
-66
lines changed

site/content/3.10/deploy/deployment/kubernetes/backuppolicy-resource.md

Lines changed: 53 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ description: >-
77
archetype: default
88
---
99
The ArangoBackupPolicy represents schedule definition for creating ArangoBackup Custom Resources by operator.
10-
This deployment specification is a `CustomResource` following
11-
a `CustomResourceDefinition` created by the operator.
10+
This deployment specification is a `CustomResource` following a `CustomResourceDefinition` created by the operator.
1211

13-
## Examples:
12+
## Examples
1413

1514
### Create schedule for all deployments
1615

16+
You can create an ArangoBackup Custom Resource for each ArangoBackup every 15 minutes.
17+
1718
```yaml
1819
apiVersion: "backup.arangodb.com/v1"
1920
kind: "ArangoBackupPolicy"
@@ -23,12 +24,10 @@ spec:
2324
schedule: "*/15 * * * *"
2425
```
2526
26-
Action:
27-
28-
Create an ArangoBackup Custom Resource for each ArangoBackup every 15 minutes
29-
3027
### Create schedule for selected deployments
3128
29+
You can create an ArangoBackup Custom Resource for selected ArangoBackups every 15 minutes.
30+
3231
```yaml
3332
apiVersion: "backup.arangodb.com/v1"
3433
kind: "ArangoBackupPolicy"
@@ -41,12 +40,11 @@ spec:
4140
labelName: "labelValue"
4241
```
4342
44-
Action:
45-
46-
Create an ArangoBackup Custom Resource for selected ArangoBackup every 15 minutes
47-
4843
### Create schedule for all deployments and upload
4944
45+
You can create an ArangoBackup Custom Resource for each ArangoBackup every 15
46+
minutes and upload it to the specified repositoryURL.
47+
5048
```yaml
5149
apiVersion: "backup.arangodb.com/v1"
5250
kind: "ArangoBackupPolicy"
@@ -55,14 +53,29 @@ metadata:
5553
spec:
5654
schedule: "*/15 * * * * "
5755
template:
58-
upload:
59-
repositoryURL: "s3:/..."
60-
credentialsSecretName: "secret-name"
56+
upload:
57+
repositoryURL: "s3:/..."
58+
credentialsSecretName: "secret-name"
6159
```
6260
63-
Create an ArangoBackup Custom Resource for each ArangoBackup every 15 minutes and upload to repositoryURL
61+
### Create schedule for all deployments, don't allow parallel backup runs, keep limited number of backups
6462
65-
## ArangoBackup Custom Resource Spec:
63+
You can create an ArangoBackup Custom Resource for each ArangoBackup every 15
64+
minutes. You can keep 10 backups per deployment at the same time, and delete the
65+
oldest ones. Don't allow to run backup if previous backup is not finished.
66+
67+
```yaml
68+
apiVersion: "backup.arangodb.com/v1"
69+
kind: "ArangoBackupPolicy"
70+
metadata:
71+
name: "example-arangodb-backup-policy"
72+
spec:
73+
schedule: "*/15 * * * *"
74+
maxBackups: 10
75+
allowConcurrent: False
76+
```
77+
78+
## ArangoBackup Custom Resource Spec
6679
6780
```yaml
6881
apiVersion: "backup.arangodb.com/v1"
@@ -76,12 +89,12 @@ spec:
7689
labelName: "labelValue"
7790
matchExpressions: []
7891
template:
79-
options:
80-
timeout: 3
81-
force: true
82-
upload:
83-
repositoryURL: "s3:/..."
84-
credentialsSecretName: "secret-name"
92+
options:
93+
timeout: 3
94+
force: true
95+
upload:
96+
repositoryURL: "s3:/..."
97+
credentialsSecretName: "secret-name"
8598
status:
8699
scheduled: "time"
87100
message: "message"
@@ -103,6 +116,24 @@ Required: true
103116

104117
Default: ""
105118

119+
### `spec.allowConcurrent: String`
120+
121+
If false, ArangoBackup will not be created when previous backups are not finished.
122+
`ScheduleSkipped` event will be published in that case.
123+
124+
Required: false
125+
126+
Default: True
127+
128+
### `spec.maxBackups: Integer`
129+
130+
If > 0, then old healthy backups of that policy will be removed to ensure that only `maxBackups` are present at same time.
131+
`CleanedUpOldBackups` event will be published on automatic removal of old backups.
132+
133+
Required: false
134+
135+
Default: 0
136+
106137
### `spec.selector: Object`
107138

108139
Selector definition for selecting matching ArangoBackup Custom Resources. Parser from https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#LabelSelector

site/content/3.11/deploy/deployment/kubernetes/backuppolicy-resource.md

Lines changed: 53 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ description: >-
77
archetype: default
88
---
99
The ArangoBackupPolicy represents schedule definition for creating ArangoBackup Custom Resources by operator.
10-
This deployment specification is a `CustomResource` following
11-
a `CustomResourceDefinition` created by the operator.
10+
This deployment specification is a `CustomResource` following a `CustomResourceDefinition` created by the operator.
1211

13-
## Examples:
12+
## Examples
1413

1514
### Create schedule for all deployments
1615

16+
You can create an ArangoBackup Custom Resource for each ArangoBackup every 15 minutes.
17+
1718
```yaml
1819
apiVersion: "backup.arangodb.com/v1"
1920
kind: "ArangoBackupPolicy"
@@ -23,12 +24,10 @@ spec:
2324
schedule: "*/15 * * * *"
2425
```
2526
26-
Action:
27-
28-
Create an ArangoBackup Custom Resource for each ArangoBackup every 15 minutes
29-
3027
### Create schedule for selected deployments
3128
29+
You can create an ArangoBackup Custom Resource for selected ArangoBackups every 15 minutes.
30+
3231
```yaml
3332
apiVersion: "backup.arangodb.com/v1"
3433
kind: "ArangoBackupPolicy"
@@ -41,12 +40,11 @@ spec:
4140
labelName: "labelValue"
4241
```
4342
44-
Action:
45-
46-
Create an ArangoBackup Custom Resource for selected ArangoBackup every 15 minutes
47-
4843
### Create schedule for all deployments and upload
4944
45+
You can create an ArangoBackup Custom Resource for each ArangoBackup every 15
46+
minutes and upload it to the specified repositoryURL.
47+
5048
```yaml
5149
apiVersion: "backup.arangodb.com/v1"
5250
kind: "ArangoBackupPolicy"
@@ -55,14 +53,29 @@ metadata:
5553
spec:
5654
schedule: "*/15 * * * * "
5755
template:
58-
upload:
59-
repositoryURL: "s3:/..."
60-
credentialsSecretName: "secret-name"
56+
upload:
57+
repositoryURL: "s3:/..."
58+
credentialsSecretName: "secret-name"
6159
```
6260
63-
Create an ArangoBackup Custom Resource for each ArangoBackup every 15 minutes and upload to repositoryURL
61+
### Create schedule for all deployments, don't allow parallel backup runs, keep limited number of backups
6462
65-
## ArangoBackup Custom Resource Spec:
63+
You can create an ArangoBackup Custom Resource for each ArangoBackup every 15
64+
minutes. You can keep 10 backups per deployment at the same time, and delete the
65+
oldest ones. Don't allow to run backup if previous backup is not finished.
66+
67+
```yaml
68+
apiVersion: "backup.arangodb.com/v1"
69+
kind: "ArangoBackupPolicy"
70+
metadata:
71+
name: "example-arangodb-backup-policy"
72+
spec:
73+
schedule: "*/15 * * * *"
74+
maxBackups: 10
75+
allowConcurrent: False
76+
```
77+
78+
## ArangoBackup Custom Resource Spec
6679
6780
```yaml
6881
apiVersion: "backup.arangodb.com/v1"
@@ -76,12 +89,12 @@ spec:
7689
labelName: "labelValue"
7790
matchExpressions: []
7891
template:
79-
options:
80-
timeout: 3
81-
force: true
82-
upload:
83-
repositoryURL: "s3:/..."
84-
credentialsSecretName: "secret-name"
92+
options:
93+
timeout: 3
94+
force: true
95+
upload:
96+
repositoryURL: "s3:/..."
97+
credentialsSecretName: "secret-name"
8598
status:
8699
scheduled: "time"
87100
message: "message"
@@ -103,6 +116,24 @@ Required: true
103116

104117
Default: ""
105118

119+
### `spec.allowConcurrent: String`
120+
121+
If false, ArangoBackup will not be created when previous backups are not finished.
122+
`ScheduleSkipped` event will be published in that case.
123+
124+
Required: false
125+
126+
Default: True
127+
128+
### `spec.maxBackups: Integer`
129+
130+
If > 0, then old healthy backups of that policy will be removed to ensure that only `maxBackups` are present at same time.
131+
`CleanedUpOldBackups` event will be published on automatic removal of old backups.
132+
133+
Required: false
134+
135+
Default: 0
136+
106137
### `spec.selector: Object`
107138

108139
Selector definition for selecting matching ArangoBackup Custom Resources. Parser from https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#LabelSelector

site/content/3.12/deploy/deployment/kubernetes/backuppolicy-resource.md

Lines changed: 53 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@ description: >-
77
archetype: default
88
---
99
The ArangoBackupPolicy represents schedule definition for creating ArangoBackup Custom Resources by operator.
10-
This deployment specification is a `CustomResource` following
11-
a `CustomResourceDefinition` created by the operator.
10+
This deployment specification is a `CustomResource` following a `CustomResourceDefinition` created by the operator.
1211

13-
## Examples:
12+
## Examples
1413

1514
### Create schedule for all deployments
1615

16+
You can create an ArangoBackup Custom Resource for each ArangoBackup every 15 minutes.
17+
1718
```yaml
1819
apiVersion: "backup.arangodb.com/v1"
1920
kind: "ArangoBackupPolicy"
@@ -23,12 +24,10 @@ spec:
2324
schedule: "*/15 * * * *"
2425
```
2526
26-
Action:
27-
28-
Create an ArangoBackup Custom Resource for each ArangoBackup every 15 minutes
29-
3027
### Create schedule for selected deployments
3128
29+
You can create an ArangoBackup Custom Resource for selected ArangoBackups every 15 minutes.
30+
3231
```yaml
3332
apiVersion: "backup.arangodb.com/v1"
3433
kind: "ArangoBackupPolicy"
@@ -41,12 +40,11 @@ spec:
4140
labelName: "labelValue"
4241
```
4342
44-
Action:
45-
46-
Create an ArangoBackup Custom Resource for selected ArangoBackup every 15 minutes
47-
4843
### Create schedule for all deployments and upload
4944
45+
You can create an ArangoBackup Custom Resource for each ArangoBackup every 15
46+
minutes and upload it to the specified repositoryURL.
47+
5048
```yaml
5149
apiVersion: "backup.arangodb.com/v1"
5250
kind: "ArangoBackupPolicy"
@@ -55,14 +53,29 @@ metadata:
5553
spec:
5654
schedule: "*/15 * * * * "
5755
template:
58-
upload:
59-
repositoryURL: "s3:/..."
60-
credentialsSecretName: "secret-name"
56+
upload:
57+
repositoryURL: "s3:/..."
58+
credentialsSecretName: "secret-name"
6159
```
6260
63-
Create an ArangoBackup Custom Resource for each ArangoBackup every 15 minutes and upload to repositoryURL
61+
### Create schedule for all deployments, don't allow parallel backup runs, keep limited number of backups
6462
65-
## ArangoBackup Custom Resource Spec:
63+
You can create an ArangoBackup Custom Resource for each ArangoBackup every 15
64+
minutes. You can keep 10 backups per deployment at the same time, and delete the
65+
oldest ones. Don't allow to run backup if previous backup is not finished.
66+
67+
```yaml
68+
apiVersion: "backup.arangodb.com/v1"
69+
kind: "ArangoBackupPolicy"
70+
metadata:
71+
name: "example-arangodb-backup-policy"
72+
spec:
73+
schedule: "*/15 * * * *"
74+
maxBackups: 10
75+
allowConcurrent: False
76+
```
77+
78+
## ArangoBackup Custom Resource Spec
6679
6780
```yaml
6881
apiVersion: "backup.arangodb.com/v1"
@@ -76,12 +89,12 @@ spec:
7689
labelName: "labelValue"
7790
matchExpressions: []
7891
template:
79-
options:
80-
timeout: 3
81-
force: true
82-
upload:
83-
repositoryURL: "s3:/..."
84-
credentialsSecretName: "secret-name"
92+
options:
93+
timeout: 3
94+
force: true
95+
upload:
96+
repositoryURL: "s3:/..."
97+
credentialsSecretName: "secret-name"
8598
status:
8699
scheduled: "time"
87100
message: "message"
@@ -103,6 +116,24 @@ Required: true
103116

104117
Default: ""
105118

119+
### `spec.allowConcurrent: String`
120+
121+
If false, ArangoBackup will not be created when previous backups are not finished.
122+
`ScheduleSkipped` event will be published in that case.
123+
124+
Required: false
125+
126+
Default: True
127+
128+
### `spec.maxBackups: Integer`
129+
130+
If > 0, then old healthy backups of that policy will be removed to ensure that only `maxBackups` are present at same time.
131+
`CleanedUpOldBackups` event will be published on automatic removal of old backups.
132+
133+
Required: false
134+
135+
Default: 0
136+
106137
### `spec.selector: Object`
107138

108139
Selector definition for selecting matching ArangoBackup Custom Resources. Parser from https://godoc.org/k8s.io/apimachinery/pkg/apis/meta/v1#LabelSelector

0 commit comments

Comments
 (0)