Skip to content

Instantly share code, notes, and snippets.

@nrb
Last active Mar 19, 2019
Embed
What would you like to do?
Velero backup file structure
resources
├── deployments.apps
│   └── namespaces
│   └── nginx-example
│   └── nginx-deployment.json
├── endpoints
│   └── namespaces
│   └── nginx-example
│   └── my-nginx.json
├── namespaces
│   └── cluster
│   └── nginx-example.json
├── persistentvolumeclaims
│   └── namespaces
│   └── nginx-example
│   └── nginx-logs.json
├── persistentvolumes
│   └── cluster
│   └── pvc-250ce112-2e2a-11e9-91ed-42010a8a0173.json
├── pods
│   └── namespaces
│   └── nginx-example
│   └── nginx-deployment-ccc5595f4-k9pjh.json
├── replicasets.apps
│   └── namespaces
│   └── nginx-example
│   └── nginx-deployment-ccc5595f4.json
├── secrets
│   └── namespaces
│   └── nginx-example
│   └── default-token-7jd7x.json
├── serviceaccounts
│   └── namespaces
│   └── nginx-example
│   └── default.json
└── services
└── namespaces
└── nginx-example
└── my-nginx.json
{
"apiVersion": "v1",
"kind": "PersistentVolume",
"metadata": {
"annotations": {
"kubernetes.io/createdby": "gce-pd-dynamic-provisioner",
"pv.kubernetes.io/bound-by-controller": "yes",
"pv.kubernetes.io/provisioned-by": "kubernetes.io/gce-pd"
},
"labels": {
"failure-domain.beta.kubernetes.io/region": "us-west1",
"failure-domain.beta.kubernetes.io/zone": "us-west1-b__us-west1-c",
"velero-restore": "ark-nginx-20190311130917",
"velero.io/backup-name": "ark-nginx",
"velero.io/restore-name": "ark-nginx-20190311130917"
},
"name": "pvc-250ce112-2e2a-11e9-91ed-42010a8a0173",
},
"spec": {
"accessModes": [
"ReadWriteOnce"
],
"capacity": {
"storage": "1Gi"
},
"gcePersistentDisk": {
"fsType": "ext4",
"pdName": "UPDATE THE DISK NAME HERE"
},
"persistentVolumeReclaimPolicy": "Delete"
},
}
{
"apiVersion": "v1",
"kind": "PersistentVolume",
"metadata": {
"annotations": {
"kubernetes.io/createdby": "gce-pd-dynamic-provisioner",
"pv.kubernetes.io/bound-by-controller": "yes",
"pv.kubernetes.io/provisioned-by": "kubernetes.io/gce-pd"
},
"creationTimestamp": "2019-03-11T17:09:54Z",
"finalizers": [
"kubernetes.io/pv-protection"
],
"labels": {
"failure-domain.beta.kubernetes.io/region": "us-west1",
"failure-domain.beta.kubernetes.io/zone": "us-west1-b__us-west1-c",
"velero-restore": "ark-nginx-20190311130917",
"velero.io/backup-name": "ark-nginx",
"velero.io/restore-name": "ark-nginx-20190311130917"
},
"name": "pvc-250ce112-2e2a-11e9-91ed-42010a8a0173",
"resourceVersion": "8675060",
"selfLink": "/api/v1/persistentvolumes/pvc-250ce112-2e2a-11e9-91ed-42010a8a0173",
"uid": "7d6b58f8-4420-11e9-8c55-42010a8a0078"
},
"spec": {
"accessModes": [
"ReadWriteOnce"
],
"capacity": {
"storage": "1Gi"
},
"claimRef": {
"apiVersion": "v1",
"kind": "PersistentVolumeClaim",
"name": "nginx-logs",
"namespace": "nginx-example",
"resourceVersion": "8675058",
"uid": "7d9d12ad-4420-11e9-8c55-42010a8a0078"
},
"gcePersistentDisk": {
"fsType": "ext4",
"pdName": "restore-c5b86074-9466-45b2-bed0-3db9780c40b6"
},
"persistentVolumeReclaimPolicy": "Delete"
},
"status": {
"phase": "Bound"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment