Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
velero-plugin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
velero-plugin
Commits
00dabbdf
Unverified
Commit
00dabbdf
authored
Sep 15, 2020
by
Shuwei Hao
Committed by
GitHub
Sep 15, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38 from haoshuwei/doc/update-docs
update help doc for velero and restic
parents
2d33b898
c3291631
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
15 deletions
+44
-15
README.md
+30
-15
install/02-configmap.yaml
+14
-0
No files found.
README.md
View file @
00dabbdf
...
@@ -57,6 +57,8 @@ For more information, see [the AlibabaCloud documentation on RAM users guides][1
...
@@ -57,6 +57,8 @@ For more information, see [the AlibabaCloud documentation on RAM users guides][1
2.
Attach policies to give
`velero`
the necessary permissions:
2.
Attach policies to give
`velero`
the necessary permissions:
> Note that you'd better release the velero's delete permissions once you have completed your backup or restore task for safety reasons.
```bash
```bash
{
{
"Version": "1",
"Version": "1",
...
@@ -105,29 +107,36 @@ For more information, see [the AlibabaCloud documentation on RAM users guides][1
...
@@ -105,29 +107,36 @@ For more information, see [the AlibabaCloud documentation on RAM users guides][1
REGION=<YOUR_REGION>
REGION=<YOUR_REGION>
```
```
2.
Create a
namespace velero and a secret cloud-credentials
2.
Create a
nd run velero and velero-plugin for alibabacloud
Run the following command to create a
namespace named `velero`
Run the following command to create a
nd run velero and velero-plugin for alibabacloud
`kubectl create namespace velero`
```
velero install \
--provider alibabacloud \
--image registry.$REGION.aliyuncs.com/acs/velero:1.4.2-2b9dce65-aliyun \
--bucket $BUCKET \
--secret-file ./credentials-velero \
--use-volume-snapshots=false \
--backup-location-config region=$REGION \
--use-restic \
--plugins registry.$REGION.aliyuncs.com/acs/velero-plugin-alibabacloud:v1.0.0-2d33b89 \
--wait
```
Run the following command to create a secret named `cloud-credentials`
If you want use an internal oss endpoint, you can add params:
`kubectl create secret generic cloud-credentials --namespace velero --from-file cloud=install/credentials-velero
`
`--backup-location-config region=$REGION,network=internal
`
3.
Create and run velero and velero-plugin for alibabacloud
If you want use a oss prefix to store backup files, you can add params:
Run the following command to create and run velero and velero-plugin for alibabacloud
`--prefix <your oss bucket prefix>`
```
3.
Create ConfigMap for velero restic helper image in your restore cluster
kubectl apply -f install/00-crds.yaml
```
```
Run the following command to create a velero restic helper configmap in your restore cluster(optional for backup cluster).
sed -i "s#<BUCKET>#$BUCKET#" install/01-velero.yaml
sed -i "s#<REGION>#$REGION#" install/01-velero.yaml
`kubectl -n velero apply -f install/02-configmap.yaml`
kubectl apply -f install/01-velero.yaml
```
4.
Cleanup velero installation
4.
Cleanup velero installation
...
@@ -166,6 +175,12 @@ For more information, see [the AlibabaCloud documentation on RAM users guides][1
...
@@ -166,6 +175,12 @@ For more information, see [the AlibabaCloud documentation on RAM users guides][1
kubectl apply -f examples/with-pv.yaml
kubectl apply -f examples/with-pv.yaml
```
```
Add annotations to pod volume, restic will backup the volume data during backup process.
```
kubectl -n nginx-example annotate pod/nginx-deployment-7477779c4f-dxspm backup.velero.io/backup-volumes=nginx-logs
```
Create a backup:
Create a backup:
`velero backup create nginx-backup-volume --include-namespaces nginx-example --wait`
`velero backup create nginx-backup-volume --include-namespaces nginx-example --wait`
...
...
install/02-configmap.yaml
0 → 100644
View file @
00dabbdf
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
restic-restore-action-config
labels
:
velero.io/plugin-config
:
"
"
velero.io/restic
:
RestoreItemAction
data
:
image
:
registry.cn-hangzhou.aliyuncs.com/acs/velero-restic-restore-helper:latest
cpuRequest
:
200m
memRequest
:
128Mi
cpuLimit
:
200m
memLimit
:
128Mi
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment