Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update docs for new velero parameters #603

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions docs/source/analyze/velero.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ title: Velero
description: Check backup, restore settings and status.
---

The `Velero` analyzer is available to check statuses of Custom Resources installed by velero, such as: backup storage locations, backup repositories, backups and restores.
The `Velero` analyzer is available to check statuses of Custom Resources installed by velero, such as: BackupStorageLocations, BackupRepositories, Backups and Restores. If it finds resources in the Failed or PartiallyFailed state, it will generate a Failure, surface the reason for the failure, and attempt to provide a remediation.

## Parameters

**collectorName:** (N/A) Velero currently does not require a special collector as all the Custom Resources are already collected in support bundle by the `Cluster Resources` collector.
**collectorName:** (N/A) Velero currently does not require a collectorName as a reference, all the Custom Resources are already collected in support bundle by the `Cluster Resources` collector.

**backupsCount:** (Optional) `integer` The number of most recent backups to analyze. Defaults to `1`.

**restoresCount:** (Optional) `integer` The number of most recent restores to analyze. Defaults to `1`.

## Example Analyzer Definition

Expand All @@ -28,7 +32,8 @@ spec:

**Note**

For the logs collector:
For the Velero analyzer to find the Velero pod logs correctly, pair it with the `logs` collector:

- `name` should always be `velero/logs` as it's the default path created in support bundle to be then used by velero analyzer.
- `namespace` could be changed to any other namespace in case velero was installed in a different namespace.

Expand All @@ -40,7 +45,9 @@ Checks that at least 1 backup repository is configured and available.

### backups.velero.io

Warns of the following phases if one or more of the following states:
Analyzes the most recent N backups, where N is the value of the `backupsCount` parameter. If the backup is in a failed state, it will generate a Fail message, surface the reason for the failure, and attempt to provide a remediation.

Failed states include:

- `BackupPhaseFailed`
- `BackupPhasePartiallyFailed`
Expand All @@ -66,7 +73,7 @@ Generates 'pod volume restore' count summary and any failures.

### restores.velero.io

Generates'restore' count summary and any failures. Failures if any of the following states are found:
Analyzes the most recent N restores, where N is the value of the `restoresCount` parameter. If the restore is in a failed state, it will generate a Fail message, surface the reason for the failure, and attempt to provide a remediation.

- `RestorePhaseFailed`
- `RestorePhasePartiallyFailed`
Expand All @@ -87,5 +94,5 @@ Analyzes the logs for the velero node agent. This analyzer will only run if the

Checks for the following strings in `node-agent*` pod log file(s):

- `error|panic|fatal`
- `permission denied`
- `error|panic|fatal`
- `permission denied`