Skip to content

Commit 3aced93

Browse files
authored
Merge pull request #1603 from jbiers/detail-resourceset-usage
Detail resourceset usage in Backup docs
2 parents 8062af1 + e5a5bdb commit 3aced93

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

docs/reference-guides/backup-restore-configuration/backup-configuration.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,24 @@ Select the first option to perform a one-time backup, or select the second optio
2525
| `schedule` | Provide the cron string for scheduling recurring backups. |
2626
| `retentionCount` | Provide the number of backup files to be retained. |
2727

28+
## ResourceSet
29+
30+
While you can create your own ResourceSets to back up custom applications, two ResourceSets specifically for backing up Rancher are officially maintained and created by default by the `rancher-backup` operator. We refer to these as `rancher-resource-set-basic` and `rancher-resource-set-full`. The difference between them is whether they include secrets or not in the backups.
31+
32+
`rancher-resource-set-basic` does not include any secrets in the backup files to safeguard confidential information. You are responsible for recording any secrets and redeploying them safely.
33+
34+
`rancher-resource-set-full` includes all essential secrets in the backup files to ensure Rancher continues running smoothly after a restore or migration. To avoid storing sensitive information in plain text, we strongly advise you to enable encryption with a strong key.
35+
36+
:::note Important:
37+
38+
`rancher-resource-set` is also included by default with the `rancher-backup` operator. However, this ResourceSet is deprecated and is only being kept for backwards compatibility reasons. `rancher-resource-set` will be removed in Rancher v2.12. Please update your Backup custom resources to use either `rancher-resource-set-full` or `rancher-resource-set-basic`.
39+
40+
:::
41+
42+
| YAML Directive Name | Description |
43+
| ---------------- | ---------------- |
44+
| `resourceSetName` | Provide the name of the ResourceSet to define which resources will be included in this backup. |
45+
2846
## Encryption
2947

3048
The rancher-backup gathers resources by making calls to the kube-apiserver. Objects returned by apiserver are decrypted, so even if [encryption at rest](https://kubernetes.io/docs/tasks/administer-cluster/encrypt-data/) is enabled, even the encrypted objects gathered by the backup will be in plaintext.

docs/reference-guides/backup-restore-configuration/examples.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ kind: Backup
2626
metadata:
2727
name: default-location-encrypted-backup
2828
spec:
29-
resourceSetName: rancher-resource-set
29+
resourceSetName: rancher-resource-set-full
3030
encryptionConfigSecretName: encryptionconfig
3131
```
3232
@@ -38,7 +38,7 @@ kind: Backup
3838
metadata:
3939
name: default-location-recurring-backup
4040
spec:
41-
resourceSetName: rancher-resource-set
41+
resourceSetName: rancher-resource-set-basic
4242
schedule: "@every 1h"
4343
retentionCount: 10
4444
```
@@ -51,7 +51,7 @@ kind: Backup
5151
metadata:
5252
name: default-enc-recurring-backup
5353
spec:
54-
resourceSetName: rancher-resource-set
54+
resourceSetName: rancher-resource-set-full
5555
encryptionConfigSecretName: encryptionconfig
5656
schedule: "@every 1h"
5757
retentionCount: 3
@@ -72,7 +72,7 @@ spec:
7272
bucketName: rancherbackups
7373
endpoint: minio.xip.io
7474
endpointCA: <base64-encoded-cert>
75-
resourceSetName: rancher-resource-set
75+
resourceSetName: rancher-resource-set-full
7676
encryptionConfigSecretName: encryptionconfig
7777
```
7878
@@ -92,7 +92,7 @@ spec:
9292
folder: ecm1
9393
region: us-west-2
9494
endpoint: s3.us-west-2.amazonaws.com
95-
resourceSetName: rancher-resource-set
95+
resourceSetName: rancher-resource-set-full
9696
encryptionConfigSecretName: encryptionconfig
9797
```
9898
@@ -112,7 +112,7 @@ spec:
112112
folder: ecm1
113113
region: us-west-2
114114
endpoint: s3.us-west-2.amazonaws.com
115-
resourceSetName: rancher-resource-set
115+
resourceSetName: rancher-resource-set-full
116116
encryptionConfigSecretName: encryptionconfig
117117
schedule: "@every 1h"
118118
retentionCount: 10
@@ -134,7 +134,7 @@ spec:
134134
folder: ecm1
135135
region: us-west-2
136136
endpoint: s3.us-west-2.amazonaws.com
137-
resourceSetName: rancher-resource-set
137+
resourceSetName: rancher-resource-set-full
138138
encryptionConfigSecretName: encryptionconfig
139139
```
140140

0 commit comments

Comments
 (0)