77[id="creating-single-etcd-backup_{context} "]
88= Creating a single automated etcd backup
99
10+ [role="_abstract"]
1011Follow these steps to create a single etcd backup by creating and applying a custom resource (CR).
1112
1213.Prerequisites
@@ -32,10 +33,11 @@ spec:
3233 - ReadWriteOnce
3334 resources:
3435 requests:
35- storage: 200Gi <1>
36+ storage: 200Gi
3637 volumeMode: Filesystem
3738----
38- <1> The amount of storage available to the PVC. Adjust this value for your requirements.
39+ +
40+ Adjust the `storage` value for your requirements.
3941+
4042.. Apply the PVC by running the following command:
4143+
@@ -73,9 +75,10 @@ metadata:
7375 name: etcd-single-backup
7476 namespace: openshift-etcd
7577spec:
76- pvcName: etcd-backup-pvc <1>
78+ pvcName: etcd-backup-pvc
7779----
78- <1> The name of the PVC to save the backup to. Adjust this value according to your environment.
80+ +
81+ Adjust the `pvcName` value according to your environment.
7982+
8083.. Apply the CR to start a single backup:
8184+
@@ -115,7 +118,7 @@ metadata:
115118 name: etcd-backup-pv-fs
116119spec:
117120 capacity:
118- storage: 100Gi <1>
121+ storage: 100Gi
119122 volumeMode: Filesystem
120123 accessModes:
121124 - ReadWriteOnce
@@ -130,10 +133,15 @@ spec:
130133 - key: kubernetes.io/hostname
131134 operator: In
132135 values:
133- - <example_master_node> <2>
136+ - <example_master_node>
134137----
135- <1> The amount of storage available to the PV. Adjust this value for your requirements.
136- <2> Replace this value with the node to attach this PV to.
138+ +
139+ where:
140+ +
141+ --
142+ `100Gi` :: Specifies the amount of storage available to the PV. Adjust this value for your requirements.
143+ `<example_master_node>` :: Specifies the node to attach this PV to.
144+ --
137145+
138146.. Verify the creation of the PV by running the following command:
139147+
@@ -164,9 +172,10 @@ spec:
164172 volumeMode: Filesystem
165173 resources:
166174 requests:
167- storage: 10Gi <1>
175+ storage: 10Gi
168176----
169- <1> The amount of storage available to the PVC. Adjust this value for your requirements.
177+ +
178+ Adjust the `storage` value for your requirements.
170179+
171180.. Apply the PVC by running the following command:
172181+
@@ -185,9 +194,10 @@ metadata:
185194 name: etcd-single-backup
186195 namespace: openshift-etcd
187196spec:
188- pvcName: etcd-backup-pvc <1>
197+ pvcName: etcd-backup-pvc
189198----
190- <1> The name of the persistent volume claim (PVC) to save the backup to. Adjust this value according to your environment.
199+ +
200+ Adjust the `pvcName` value according to your environment.
191201+
192202.. Apply the CR to start a single backup:
193203+
0 commit comments