Skip to content

Commit c7e49e9

Browse files
justicornmjnagel
andauthored
chore: add velero csi plugin (#424)
## Description Adding the CSI plugin to Velero ... ## Related Issue Fixes # <!-- or --> Relates to # ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md)(https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md#submitting-a-pull-request) followed --------- Co-authored-by: Micah Nagel <[email protected]>
1 parent c3ecc8b commit c7e49e9

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

src/velero/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,20 @@ uds zarf tools kubectl apply -f - <<-EOF
9797
ttl: 240h0m0s
9898
EOF
9999
```
100+
101+
## Manually restore backup
102+
```bash
103+
velero restore create uds-restore-$(date +%s) \
104+
--from-backup <backup-name> \
105+
--include-namespaces <namespaces-to-restore> --wait
106+
```
107+
108+
> [!NOTE]
109+
> The default behavior of Velero will not recreate resources that already exist.
110+
> If the intention is to restore data on a PV, the PV/PVC will have to be deleted
111+
> before running the restore.
112+
113+
> [!NOTE]
114+
> Additional configuration will be required to get CSI backed PVCs to be snapshotted
115+
> as noted in the [Velero documentation](https://velero.io/docs/main/csi/#prerequisites) - VolumeSnapshotLocation, VolumeSnapshotClass, etc.
116+
> as well as switching `snapshotVolume` to `true` in the backup config.

src/velero/values/registry1-values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ initContainers:
1414
volumeMounts:
1515
- mountPath: /target
1616
name: plugins
17+
- name: velero-plugin-for-csi
18+
image: registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-csi:v0.7.0
19+
imagePullPolicy: IfNotPresent
20+
volumeMounts:
21+
- mountPath: /target
22+
name: plugins

src/velero/values/upstream-values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ initContainers:
1414
volumeMounts:
1515
- mountPath: /target
1616
name: plugins
17+
- name: velero-plugin-for-csi
18+
image: velero/velero-plugin-for-csi:v0.7.0
19+
imagePullPolicy: IfNotPresent
20+
volumeMounts:
21+
- mountPath: /target
22+
name: plugins

src/velero/zarf.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ components:
1919
- velero/velero:v1.13.2
2020
- velero/velero-plugin-for-aws:v1.9.2
2121
- docker.io/bitnami/kubectl:1.30.1
22+
- velero/velero-plugin-for-csi:v0.7.0
2223

2324
- name: velero
2425
required: true
@@ -33,4 +34,5 @@ components:
3334
images:
3435
- registry1.dso.mil/ironbank/opensource/velero/velero:v1.13.2
3536
- registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-aws:v1.9.2
37+
- registry1.dso.mil/ironbank/opensource/velero/velero-plugin-for-csi:v0.7.0
3638
- registry1.dso.mil/ironbank/big-bang/base:2.1.0

0 commit comments

Comments
 (0)