remove tagging of PV from with PV example, backup by namespace

Signed-off-by: Steve Kriss <steve@heptio.com>
This commit is contained in:
Steve Kriss
2017-12-20 16:30:38 -08:00
parent 5fc5bdbcf8
commit cbc8a7927e
+2 -9
View File
@@ -393,7 +393,7 @@ kubectl apply -f examples/nginx-app/base.yaml
Now create a backup:
```bash
ark backup create nginx-backup --selector app=nginx
ark backup create nginx-backup --include-namespaces nginx-example
```
Simulate a disaster:
@@ -418,17 +418,10 @@ Start the sample nginx app:
kubectl apply -f examples/nginx-app/with-pv.yaml
```
Because Kubernetes does not automatically transfer labels from PVCs to dynamically generated PVs, you need to do so manually:
```bash
nginx_pv_name=$(kubectl get pv -o jsonpath='{.items[?(@.spec.claimRef.name=="nginx-logs")].metadata.name}')
kubectl label pv $nginx_pv_name app=nginx
```
Now create a backup with PV snapshotting:
```bash
ark backup create nginx-backup --selector app=nginx
ark backup create nginx-backup --include-namespaces nginx-example
```
Simulate a disaster: