Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3335214
commit 6f9adb8
Showing
9 changed files
with
195 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,3 @@ VAULT_UNSEAL_KEY_4="" | |
VAULT_UNSEAL_KEY_5="" | ||
|
||
SLACK_URL="" | ||
|
||
S3_ACCESS_KEY="" | ||
S3_SECRET_KEY="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: velero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: backups.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: backups | ||
kind: Backup | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: backupstoragelocations.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: backupstoragelocations | ||
kind: BackupStorageLocation | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: deletebackuprequests.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: deletebackuprequests | ||
kind: DeleteBackupRequest | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: downloadrequests.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: downloadrequests | ||
kind: DownloadRequest | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: podvolumebackups.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: podvolumebackups | ||
kind: PodVolumeBackup | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: podvolumerestores.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: podvolumerestores | ||
kind: PodVolumeRestore | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: resticrepositories.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: resticrepositories | ||
kind: ResticRepository | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: restores.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: restores | ||
kind: Restore | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: schedules.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: schedules | ||
kind: Schedule | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: serverstatusrequests.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: serverstatusrequests | ||
kind: ServerStatusRequest | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: volumesnapshotlocations.velero.io | ||
labels: | ||
app.kubernetes.io/name: velero | ||
spec: | ||
group: velero.io | ||
version: v1 | ||
scope: Namespaced | ||
names: | ||
plural: volumesnapshotlocations | ||
kind: VolumeSnapshotLocation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM arm32v7/alpine:3.10 | ||
|
||
WORKDIR /tmp | ||
|
||
RUN apk add --no-cache ca-certificates \ | ||
&& apk add --no-cache --virtual build-dependencies bzip2 curl \ | ||
&& curl -k -sSfL -o ./restic_0.9.5_linux_arm.bz2 https://github.com/restic/restic/releases/download/v0.9.5/restic_0.9.5_linux_arm.bz2 \ | ||
&& bunzip2 restic_0.9.5_linux_arm.bz2 \ | ||
&& mv restic_0.9.5_linux_arm /usr/bin/restic \ | ||
&& chmod +x /usr/bin/restic \ | ||
&& curl -k -sSfL -o ./velero-v1.2.0-linux-arm.tar.gz https://github.com/vmware-tanzu/velero/releases/download/v1.2.0/velero-v1.2.0-linux-arm.tar.gz \ | ||
&& tar -xvf ./velero-v1.2.0-linux-arm.tar.gz \ | ||
&& mv velero-v1.2.0-linux-arm/velero /velero \ | ||
&& chmod +x /velero \ | ||
&& rm -rf /tmp/* \ | ||
&& apk del build-dependencies | ||
|
||
WORKDIR / | ||
|
||
ENTRYPOINT ["/velero"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kubectl -n infra create secret generic minio --from-literal="accesskey=$S3_ACCESS_KEY" \ | ||
--from-literal="secretkey=$S3_SECRET_KEY" |