Rename Ark to Velero!!!

Signed-off-by: Nolan Brubaker <brubakern@vmware.com>
This commit is contained in:
Nolan Brubaker
2019-02-04 17:35:22 -05:00
committed by Andy Goldstein
parent bbc6caf7fe
commit 43714caaec
411 changed files with 12857 additions and 3522 deletions
+4 -4
View File
@@ -1,13 +1,13 @@
# Examples
This directory contains sample YAML config files for running Ark on each core provider. Starting with v0.10, these files are packaged into [the Ark release tarballs][2], and we highly recommend that you use the packaged versions of these files to ensure compatibility with the released code.
This directory contains sample YAML config files for running Velero on each core provider. Starting with v0.10, these files are packaged into [the Velero release tarballs][2], and we highly recommend that you use the packaged versions of these files to ensure compatibility with the released code.
* `common/`: Contains manifests to set up Ark. Can be used across cloud provider platforms. (Note that Azure requires its own deployment file due to its unique way of loading credentials).
* `common/`: Contains manifests to set up Velero. Can be used across cloud provider platforms. (Note that Azure requires its own deployment file due to its unique way of loading credentials).
* `minio/`: Used in the [Quickstart][1] to set up [Minio][0], a local S3-compatible object storage service. It provides a convenient way to test Ark without tying you to a specific cloud provider.
* `minio/`: Used in the [Quickstart][1] to set up [Minio][0], a local S3-compatible object storage service. It provides a convenient way to test Velero without tying you to a specific cloud provider.
* `aws/`, `azure/`, `gcp/`, `ibm/`: Contains manifests specific to the given cloud provider's setup.
[0]: https://github.com/minio/minio
[1]: /README.md#quickstart
[2]: https://github.com/heptio/ark/releases
[2]: https://github.com/heptio/velero/releases
@@ -13,11 +13,11 @@
# limitations under the License.
---
apiVersion: ark.heptio.com/v1
apiVersion: velero.io/v1
kind: BackupStorageLocation
metadata:
name: default
namespace: heptio-ark
namespace: velero
spec:
provider: aws
objectStorage:
@@ -13,12 +13,12 @@
# limitations under the License.
---
apiVersion: ark.heptio.com/v1
apiVersion: velero.io/v1
kind: VolumeSnapshotLocation
metadata:
name: aws-default
namespace: heptio-ark
namespace: velero
spec:
provider: aws
config:
region: <YOUR_REGION>
region: <YOUR_REGION>
+8 -8
View File
@@ -16,30 +16,30 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: heptio-ark
name: ark
namespace: velero
name: velero
spec:
replicas: 1
template:
metadata:
labels:
component: ark
component: velero
annotations:
iam.amazonaws.com/role: arn:aws:iam::<AWS_ACCOUNT_ID>:role/<HEPTIO_ARK_ROLE_NAME>
iam.amazonaws.com/role: arn:aws:iam::<AWS_ACCOUNT_ID>:role/<VELERO_ROLE_NAME>
prometheus.io/scrape: "true"
prometheus.io/port: "8085"
prometheus.io/path: "/metrics"
spec:
restartPolicy: Always
serviceAccountName: ark
serviceAccountName: velero
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
- name: velero
image: gcr.io/heptio-images/velero:latest
ports:
- name: metrics
containerPort: 8085
command:
- /ark
- /velero
args:
- server
volumeMounts:
+8 -8
View File
@@ -16,26 +16,26 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: heptio-ark
name: ark
namespace: velero
name: velero
spec:
replicas: 1
template:
metadata:
labels:
component: ark
component: velero
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8085"
prometheus.io/path: "/metrics"
spec:
restartPolicy: Always
serviceAccountName: ark
serviceAccountName: velero
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
- name: velero
image: gcr.io/heptio-images/velero:latest
command:
- /ark
- /velero
args:
- server
## uncomment following line and specify values if needed for multiple provider snapshot locations
@@ -50,7 +50,7 @@ spec:
env:
- name: AWS_SHARED_CREDENTIALS_FILE
value: /credentials/cloud
- name: ARK_SCRATCH_DIR
- name: VELERO_SCRATCH_DIR
value: /scratch
#- name: AWS_CLUSTER_NAME
# value: <YOUR_CLUSTER_NAME>
+8 -8
View File
@@ -16,7 +16,7 @@ apiVersion: apps/v1
kind: DaemonSet
metadata:
name: restic
namespace: heptio-ark
namespace: velero
spec:
selector:
matchLabels:
@@ -26,7 +26,7 @@ spec:
labels:
name: restic
spec:
serviceAccountName: ark
serviceAccountName: velero
securityContext:
runAsUser: 0
volumes:
@@ -39,10 +39,10 @@ spec:
- name: scratch
emptyDir: {}
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
- name: velero
image: gcr.io/heptio-images/velero:latest
command:
- /ark
- /velero
args:
- restic
- server
@@ -59,11 +59,11 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: HEPTIO_ARK_NAMESPACE
- name: VELERO_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: AWS_SHARED_CREDENTIALS_FILE
value: /credentials/cloud
- name: ARK_SCRATCH_DIR
value: /scratch
- name: VELERO_SCRATCH_DIR
value: /scratch
@@ -16,29 +16,29 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: heptio-ark
name: ark
namespace: velero
name: velero
spec:
replicas: 1
template:
metadata:
labels:
component: ark
component: velero
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8085"
prometheus.io/path: "/metrics"
spec:
restartPolicy: Always
serviceAccountName: ark
serviceAccountName: velero
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
- name: velero
image: gcr.io/heptio-images/velero:latest
ports:
- name: metrics
containerPort: 8085
command:
- /ark
- /velero
args:
- server
## uncomment following line and specify values if needed for multiple provider snapshot locations
@@ -47,7 +47,7 @@ spec:
- secretRef:
name: cloud-credentials
env:
- name: ARK_SCRATCH_DIR
- name: VELERO_SCRATCH_DIR
value: /scratch
volumeMounts:
- name: plugins
@@ -13,11 +13,11 @@
# limitations under the License.
---
apiVersion: ark.heptio.com/v1
apiVersion: velero.io/v1
kind: BackupStorageLocation
metadata:
name: default
namespace: heptio-ark
namespace: velero
spec:
provider: azure
objectStorage:
@@ -13,11 +13,11 @@
# limitations under the License.
---
apiVersion: ark.heptio.com/v1
apiVersion: velero.io/v1
kind: VolumeSnapshotLocation
metadata:
name: azure-default
namespace: heptio-ark
namespace: velero
spec:
provider: azure
config:
+8 -8
View File
@@ -16,7 +16,7 @@ apiVersion: apps/v1
kind: DaemonSet
metadata:
name: restic
namespace: heptio-ark
namespace: velero
spec:
selector:
matchLabels:
@@ -26,7 +26,7 @@ spec:
labels:
name: restic
spec:
serviceAccountName: ark
serviceAccountName: velero
securityContext:
runAsUser: 0
volumes:
@@ -36,10 +36,10 @@ spec:
- name: scratch
emptyDir: {}
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
- name: velero
image: gcr.io/heptio-images/velero:latest
command:
- /ark
- /velero
args:
- restic
- server
@@ -57,9 +57,9 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: HEPTIO_ARK_NAMESPACE
- name: VELERO_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: ARK_SCRATCH_DIR
value: /scratch
- name: VELERO_SCRATCH_DIR
value: /scratch
+41 -41
View File
@@ -16,11 +16,11 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: backups.ark.heptio.com
name: backups.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -31,11 +31,11 @@ spec:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: schedules.ark.heptio.com
name: schedules.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -46,11 +46,11 @@ spec:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: restores.ark.heptio.com
name: restores.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -61,11 +61,11 @@ spec:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: downloadrequests.ark.heptio.com
name: downloadrequests.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -76,11 +76,11 @@ spec:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: deletebackuprequests.ark.heptio.com
name: deletebackuprequests.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -91,11 +91,11 @@ spec:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: podvolumebackups.ark.heptio.com
name: podvolumebackups.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -106,11 +106,11 @@ spec:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: podvolumerestores.ark.heptio.com
name: podvolumerestores.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -121,11 +121,11 @@ spec:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: resticrepositories.ark.heptio.com
name: resticrepositories.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -136,11 +136,11 @@ spec:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: backupstoragelocations.ark.heptio.com
name: backupstoragelocations.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -151,11 +151,11 @@ spec:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: volumesnapshotlocations.ark.heptio.com
name: volumesnapshotlocations.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -166,11 +166,11 @@ spec:
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: serverstatusrequests.ark.heptio.com
name: serverstatusrequests.velero.io
labels:
component: ark
component: velero
spec:
group: ark.heptio.com
group: velero.io
version: v1
scope: Namespaced
names:
@@ -180,28 +180,28 @@ spec:
apiVersion: v1
kind: Namespace
metadata:
name: heptio-ark
name: velero
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ark
namespace: heptio-ark
name: velero
namespace: velero
labels:
component: ark
component: velero
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: ark
name: velero
labels:
component: ark
component: velero
subjects:
- kind: ServiceAccount
namespace: heptio-ark
name: ark
namespace: velero
name: velero
roleRef:
kind: ClusterRole
name: cluster-admin
+5 -5
View File
@@ -2,9 +2,9 @@
## 00-prereqs.yaml
This file contains the prerequisites necessary to run the Ark server:
This file contains the prerequisites necessary to run the Velero server:
- `heptio-ark` namespace
- `ark` service account
- RBAC rules to grant permissions to the `ark` service account
- CRDs for the Ark-specific resources (Backup, Schedule, Restore, etc.)
- `velero` namespace
- `velero` service account
- RBAC rules to grant permissions to the `velero` service account
- CRDs for the Velero-specific resources (Backup, Schedule, Restore, etc.)
@@ -13,11 +13,11 @@
# limitations under the License.
---
apiVersion: ark.heptio.com/v1
apiVersion: velero.io/v1
kind: BackupStorageLocation
metadata:
name: default
namespace: heptio-ark
namespace: velero
spec:
provider: gcp
objectStorage:
@@ -13,10 +13,10 @@
# limitations under the License.
---
apiVersion: ark.heptio.com/v1
apiVersion: velero.io/v1
kind: VolumeSnapshotLocation
metadata:
name: gcp-default
namespace: heptio-ark
namespace: velero
spec:
provider: gcp
provider: gcp
+8 -8
View File
@@ -16,29 +16,29 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: heptio-ark
name: ark
namespace: velero
name: velero
spec:
replicas: 1
template:
metadata:
labels:
component: ark
component: velero
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8085"
prometheus.io/path: "/metrics"
spec:
restartPolicy: Always
serviceAccountName: ark
serviceAccountName: velero
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
- name: velero
image: gcr.io/heptio-images/velero:latest
ports:
- name: metrics
containerPort: 8085
command:
- /ark
- /velero
args:
- server
## uncomment following line and specify values if needed for multiple provider snapshot locations
@@ -53,7 +53,7 @@ spec:
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /credentials/cloud
- name: ARK_SCRATCH_DIR
- name: VELERO_SCRATCH_DIR
value: /scratch
volumes:
- name: cloud-credentials
+8 -8
View File
@@ -16,7 +16,7 @@ apiVersion: apps/v1
kind: DaemonSet
metadata:
name: restic
namespace: heptio-ark
namespace: velero
spec:
selector:
matchLabels:
@@ -26,7 +26,7 @@ spec:
labels:
name: restic
spec:
serviceAccountName: ark
serviceAccountName: velero
securityContext:
runAsUser: 0
volumes:
@@ -39,10 +39,10 @@ spec:
- name: scratch
emptyDir: {}
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
- name: velero
image: gcr.io/heptio-images/velero:latest
command:
- /ark
- /velero
args:
- restic
- server
@@ -59,11 +59,11 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: HEPTIO_ARK_NAMESPACE
- name: VELERO_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /credentials/cloud
- name: ARK_SCRATCH_DIR
value: /scratch
- name: VELERO_SCRATCH_DIR
value: /scratch
@@ -13,11 +13,11 @@
# limitations under the License.
---
apiVersion: ark.heptio.com/v1
apiVersion: velero.io/v1
kind: BackupStorageLocation
metadata:
name: default
namespace: heptio-ark
namespace: velero
spec:
provider: aws
objectStorage:
+8 -8
View File
@@ -16,29 +16,29 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: heptio-ark
name: ark
namespace: velero
name: velero
spec:
replicas: 1
template:
metadata:
labels:
component: ark
component: velero
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8085"
prometheus.io/path: "/metrics"
spec:
restartPolicy: Always
serviceAccountName: ark
serviceAccountName: velero
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
- name: velero
image: gcr.io/heptio-images/velero:latest
ports:
- name: metrics
containerPort: 8085
command:
- /ark
- /velero
args:
- server
volumeMounts:
@@ -51,7 +51,7 @@ spec:
env:
- name: AWS_SHARED_CREDENTIALS_FILE
value: /credentials/cloud
- name: ARK_SCRATCH_DIR
- name: VELERO_SCRATCH_DIR
value: /scratch
volumes:
- name: cloud-credentials
+5 -5
View File
@@ -16,7 +16,7 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: heptio-ark
namespace: velero
name: minio
labels:
component: minio
@@ -58,7 +58,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
namespace: heptio-ark
namespace: velero
name: minio
labels:
component: minio
@@ -78,7 +78,7 @@ spec:
apiVersion: v1
kind: Secret
metadata:
namespace: heptio-ark
namespace: velero
name: cloud-credentials
labels:
component: minio
@@ -92,7 +92,7 @@ stringData:
apiVersion: batch/v1
kind: Job
metadata:
namespace: heptio-ark
namespace: velero
name: minio-setup
labels:
component: minio
@@ -112,7 +112,7 @@ spec:
command:
- /bin/sh
- -c
- "mc --config-dir=/config config host add ark http://minio:9000 minio minio123 && mc --config-dir=/config mb -p ark/ark"
- "mc --config-dir=/config config host add velero http://minio:9000 minio minio123 && mc --config-dir=/config mb -p velero/velero"
volumeMounts:
- name: config
mountPath: "/config"
@@ -13,21 +13,21 @@
# limitations under the License.
---
apiVersion: ark.heptio.com/v1
apiVersion: velero.io/v1
kind: BackupStorageLocation
metadata:
name: default
namespace: heptio-ark
namespace: velero
spec:
provider: aws
objectStorage:
bucket: ark
bucket: velero
config:
region: minio
s3ForcePathStyle: "true"
s3Url: http://minio.heptio-ark.svc:9000
s3Url: http://minio.velero.svc:9000
# Uncomment the following line and provide the value of an externally
# available URL for downloading logs, running Ark describe, and more.
# available URL for downloading logs, running Velero describe, and more.
# publicUrl: https://minio.mycluster.com
@@ -16,29 +16,29 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
namespace: heptio-ark
name: ark
namespace: velero
name: velero
spec:
replicas: 1
template:
metadata:
labels:
component: ark
component: velero
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8085"
prometheus.io/path: "/metrics"
spec:
restartPolicy: Always
serviceAccountName: ark
serviceAccountName: velero
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
- name: velero
image: gcr.io/heptio-images/velero:latest
ports:
- name: metrics
containerPort: 8085
command:
- /ark
- /velero
args:
- server
volumeMounts:
@@ -51,7 +51,7 @@ spec:
env:
- name: AWS_SHARED_CREDENTIALS_FILE
value: /credentials/cloud
- name: ARK_SCRATCH_DIR
- name: VELERO_SCRATCH_DIR
value: /scratch
volumes:
- name: cloud-credentials
+8 -8
View File
@@ -16,7 +16,7 @@ apiVersion: apps/v1
kind: DaemonSet
metadata:
name: restic
namespace: heptio-ark
namespace: velero
spec:
selector:
matchLabels:
@@ -26,7 +26,7 @@ spec:
labels:
name: restic
spec:
serviceAccountName: ark
serviceAccountName: velero
securityContext:
runAsUser: 0
volumes:
@@ -39,10 +39,10 @@ spec:
- name: scratch
emptyDir: {}
containers:
- name: ark
image: gcr.io/heptio-images/ark:latest
- name: velero
image: gcr.io/heptio-images/velero:latest
command:
- /ark
- /velero
args:
- restic
- server
@@ -59,11 +59,11 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: HEPTIO_ARK_NAMESPACE
- name: VELERO_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: AWS_SHARED_CREDENTIALS_FILE
value: /credentials/cloud
- name: ARK_SCRATCH_DIR
value: /scratch
- name: VELERO_SCRATCH_DIR
value: /scratch
+2 -2
View File
@@ -4,12 +4,12 @@ This directory contains manifests for two versions of a sample Nginx app under t
## `base.yaml`
This is the most basic version of the Nginx app, which can be used to test Ark's backup and restore functionality.
This is the most basic version of the Nginx app, which can be used to test Velero's backup and restore functionality.
*This can be deployed as is.*
## `with-pv.yaml`
This sets up an Nginx app that logs to a persistent volume, so that Ark's PV snapshotting functionality can also be tested.
This sets up an Nginx app that logs to a persistent volume, so that Velero's PV snapshotting functionality can also be tested.
*This requires you to first replace the placeholder value `<YOUR_STORAGE_CLASS_NAME>`.*
+4 -4
View File
@@ -49,10 +49,10 @@ spec:
labels:
app: nginx
annotations:
pre.hook.backup.ark.heptio.com/container: fsfreeze
pre.hook.backup.ark.heptio.com/command: '["/sbin/fsfreeze", "--freeze", "/var/log/nginx"]'
post.hook.backup.ark.heptio.com/container: fsfreeze
post.hook.backup.ark.heptio.com/command: '["/sbin/fsfreeze", "--unfreeze", "/var/log/nginx"]'
pre.hook.backup.velero.io/container: fsfreeze
pre.hook.backup.velero.io/command: '["/sbin/fsfreeze", "--freeze", "/var/log/nginx"]'
post.hook.backup.velero.io/container: fsfreeze
post.hook.backup.velero.io/command: '["/sbin/fsfreeze", "--unfreeze", "/var/log/nginx"]'
spec:
volumes:
- name: nginx-logs