oc create -f nginx-stateless/nginx-deployment.yaml #uses openshift-specific Route
kubectl get all -n nginx-example > nginx-running-before.txt
kubectl create -f nginx-stateless/nginx-stateless-backup.yaml
Make sure the backup is completed (kubectl get backup -n velero nginx-stateless -o jsonpath='{.status.phase}'
should show "Completed"). Then, run:
kubectl delete namespace nginx-example
kubectl create -f nginx-stateless/nginx-stateless-restore.yaml
Make sure the restore is completed (kubectl get restore -n velero nginx-stateless -o jsonpath='{.status.phase}'
)
should show "Completed", and the application pod should be
running. Now run:
kubectl get all -n nginx-example > nginx-running-after.txt
Compare "nginx-running-before.txt" and "nginx-running-after.txt"