You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+32-16
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,11 @@ Below is a listing of plugin versions and respective Velero versions that are co
17
17
| v1.0.x | v1.3.x |
18
18
| v1.0.x | v1.2.0 |
19
19
20
+
## Kubernetes cluster prerequisites
21
+
22
+
Ensure that the VMs for your agent pool allow Managed Disks. If I/O performance is critical,
23
+
consider using Premium Managed Disks, which are SSD backed.
24
+
20
25
## Setup
21
26
22
27
To set up Velero on Azure, you:
@@ -102,12 +107,16 @@ az storage container create -n $BLOB_CONTAINER --public-access off --account-nam
102
107
103
108
## Set permissions for Velero
104
109
105
-
### Kubernetes cluster prerequisites
110
+
There are two ways Velero can authenticate to Azure: (1) by using a Velero-specific [service principal][17]; or (2) by using a storage account access key.
106
111
107
-
Ensure that the VMs for your agent pool allow Managed Disks. If I/O performance is critical,
108
-
consider using Premium Managed Disks, which are SSD backed.
112
+
If you plan to use Velero to take Azure snapshots of your persistent volume managed disks, you **must** use the service principal method.
109
113
110
-
### Get resource group for persistent volume snapshots
114
+
If you don't plan to take Azure disk snapshots, either method is valid.
115
+
116
+
117
+
### Option 1: Create service principal
118
+
119
+
#### Get resource group containing your VMs/disks
111
120
112
121
_(Optional) If you decided to backup to a different Subscription, make sure you change back to the Subscription
113
122
of your cluster's resources before continuing._
@@ -129,11 +138,7 @@ of your cluster's resources before continuing._
129
138
130
139
Get your cluster's Resource Group name from the `ResourceGroup` value in the response, and use it to set `$AZURE_RESOURCE_GROUP`.
131
140
132
-
### Create service principal
133
-
134
-
To integrate Velero with Azure, you must create a Velero-specific [service principal][17].
135
-
136
-
_(Optional) When you do not need to create volume snapshots, you can use [storage account access key][10] instead._
141
+
#### Create service principal
137
142
138
143
1. Obtain your Azure Account Subscription ID and Tenant ID:
139
144
@@ -164,7 +169,7 @@ _(Optional) When you do not need to create volume snapshots, you can use [storag
164
169
AZURE_CLIENT_ID=`az ad sp list --display-name "velero" --query '[0].appId' -o tsv`
165
170
```
166
171
167
-
1. Now you need to create a file that contains all the environment variables you just set. The command looks like the following:
172
+
1. Now you need to create a file that contains all the relevant environment variables. The command looks like the following:
168
173
169
174
```bash
170
175
cat <<EOF > ./credentials-velero
@@ -179,17 +184,17 @@ _(Optional) When you do not need to create volume snapshots, you can use [storag
179
184
180
185
> available `AZURE_CLOUD_NAME` values: `AzurePublicCloud`, `AzureUSGovernmentCloud`, `AzureChinaCloud`, `AzureGermanCloud`
181
186
182
-
### Set storage account access key
187
+
### Option 2: Use storage account access key
183
188
184
-
_(Optional) To integrate Velero with Azure, you can use storage account key instead of service principal._
189
+
_Note: this option is **not valid**ifyou are planning to take Azure snapshots of your managed disks with Velero._
1. Now you need to create a file that contains all the environment variables you just set. The command looks like the following:
197
+
1. Now you need to create a file that contains all the relevant environment variables. The command looks like the following:
193
198
194
199
```bash
195
200
cat <<EOF > ./credentials-velero
@@ -200,14 +205,14 @@ _(Optional) To integrate Velero with Azure, you can use storage account key inst
200
205
201
206
> available `AZURE_CLOUD_NAME` values: `AzurePublicCloud`, `AzureUSGovernmentCloud`, `AzureChinaCloud`, `AzureGermanCloud`
202
207
203
-
1. Set name of the variable with access key stored in`credentials-velero` using `--backup-location-config` option see [additional configurable parameters][7].
204
-
205
208
## Install and start Velero
206
209
207
210
[Download][4] Velero
208
211
209
212
Install Velero, including all prerequisites, into the cluster and start the deployment. This will create a namespace called `velero`, and place a deployment named `velero`in it.
0 commit comments