Backing up and Restoring of Kubernetes Block and File Volumes Flashcards

(35 cards)

1
Q

What is the main focus of High Availability (HA)?

A

Minimizing downtime of data and services during component failures.

HA does not protect against data loss.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does Disaster Recovery (DR) enable?

A

Recovery from catastrophic events affecting application and data availability or integrity.

DR solutions replicate data to ensure fast recovery and minimal data loss.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define Backup in the context of data protection.

A

Creating periodic copies or snapshots of data for restoration if lost, corrupted, or deleted.

Backups are stored separately from primary data to protect against corruption.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are common backup methods for applications that do not use low-level operations?

A

Stopping the application and using tools for copying and archiving data, such as rsync and tar.

This ensures data integrity during the backup process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List specialized backup tools for database applications.

A
  • mysqldump for MariaDB
  • pg_dump for PostgreSQL
  • mongodump for MongoDB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What alternative methods can be used to back up different applications?

A
  • File-system backup with dump or xfsdump
  • Volume snapshots from LVM or a storage controller
  • Virtual Machine snapshots or clones
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do backup strategies differ for containerized application workloads?

A

They depend on whether the application is stateless or stateful and the type of storage used (block, file, or object).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a method to back up stateless applications in OpenShift?

A

Saving the original resource definitions in YAML or JSON format and redeploying the application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What operations can be performed to back up stateful applications in Kubernetes?

A

*cloning
* snapshot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What can be created to synchronize objects from one object bucket to another?

A

A Job or a CronJob resource.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does the OpenShift API for Data Protection (OADP) provide?

A

A native backup solution for applications running on OpenShift.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What components does OADP use for backing up Kubernetes resources?

A
  • Velero
  • Kopia
  • Data Mover
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What limitations might the OADP have?

A

Lack of graphical user interface and multitenancy support.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the purpose of creating volume snapshots?

A

To restore or duplicate storage volumes

Volume snapshots enable system administrators to back up and restore data for containerized application workloads.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the Container Storage Interface (CSI) do?

A

Defines APIs for integrating storage solutions in Kubernetes clusters

Vendors develop CSI plug-ins to support storage back ends like Ceph RBD or CephFS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How are CSI plug-ins distributed?

A

As container images

These images serve as a bridge between the Kubernetes cluster and the storage driver.

17
Q

What is a volume snapshot?

A

A point-in-time copy of a Persistent Volume (PV)

It takes no additional space until the volume snapshot and the source volume diverge.

18
Q

What must you do to use a volume snapshot in OpenShift?

A

Clone the volume snapshot to a Persistent Volume (PV)

OpenShift cannot directly use volume snapshots.

19
Q

What is a volume clone?

A

An exact replica of an existing volume

Volume cloning allows duplication of a cluster volume.

20
Q

What command do you use to list CSI storage classes?

A

oc get storageclasses | grep -E ‘^NAME|csi’

This command helps identify available CSI storage classes in the cluster.

21
Q

What are the two storage classes mentioned in the text?

A
  • ocs-storagecluster-ceph-rbd
  • ocs-storagecluster-cephfs
22
Q

What is a key feature of volume snapshots in terms of storage efficiency?

A

No need for a full PV copy each time

Volume snapshots help with storage efficiency by capturing the state of a PV at a specific time.

23
Q

What happens if you create a volume snapshot while a pod is using the PVC?

A

Unwritten or cached data is excluded from the snapshot

It’s recommended to stop or quiesce the applications before creating a snapshot.

24
Q

How can you verify the readiness of a volume snapshot for use?

A

By using the command oc get volumesnapshots

25
What is the default deletion policy for volume snapshot classes?
Delete ## Footnote This means the volume snapshot content is deleted if the volume snapshot object or namespace is deleted.
26
How do you change the deletion policy of a volume snapshot class to Retain?
Use the command: oc patch volumesnapshotclass/ocs-storagecluster-cephfsplugin-snapclass --type merge -p '{"deletionPolicy":"Retain"}'
27
What is the apiVersion for creating a VolumeSnapshot?
snapshot.storage.k8s.io/v1
28
What must the dataSource parameter reference when creating a PVC from a volume snapshot?
The volume snapshot name ## Footnote This includes the API group, the VolumeSnapshot kind, and the name for the volume snapshot.
29
What are some limitations of volume cloning?
* The capacity of the PVC clone must be the same or larger than the source volume. * You can only clone a PVC in the same namespace as the destination PVC. * You cannot clone a PVC from one provisioner to another.
30
What is the storage class requirement for a shallow read-only clone?
Must be CephFS
31
What is the access mode for shallow read-only clones?
ReadOnlyMany
32
What does a shallow read-only clone allow you to do?
Restore files from the snapshot selectively ## Footnote It also enables backing up volumes without restoring the snapshot to a temporary volume.
33
How do you create a volume clone from a PVC?
Reference the source PVC in the dataSource parameter
34
What is the command to list volume snapshot drivers in your cluster?
oc get volumesnapshotclasses
35
What is the role of the CSI snapshot controller?
Creates the VolumeSnapshot custom resource definition (CRD)