You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/blog/how-to-backup-and-restore-stateful-applications-on-kubernetes-using-kasten-k10-in-hpe-greenlake-for-private-cloud-enterprise.md
+25-7Lines changed: 25 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,13 @@ date: 2024-01-18T07:33:24.381Z
5
5
author: Guoping Jia
6
6
authorimage: /img/guoping.png
7
7
disable: false
8
+
tags:
9
+
- Backup and restore
10
+
- Volume snapshots
11
+
- Stateful applications
12
+
- Kubernetes
13
+
- HPE GreenLake for Private Cloud Enterprise
14
+
- hpe-greenlake-for-private-cloud-enterprise
8
15
---
9
16
This blog post describes how to backup and restore using Kasten K10 the stateful applications running in a Kubernetes (K8s) cluster in HPE GreenLake for Private Cloud Enterprise. Using pre-installed HPE CSI driver for K8s in the cluster, Kasten K10 works seamlessly for
10
17
@@ -18,6 +25,15 @@ Before starting, make sure you meet the following requirements:
18
25
* The kubectl CLI tool, together with the kubeconfig file for accessing the K8s cluster
19
26
* The optional mysql CLI tool, for accessing the deployed sample MySQL database service
20
27
28
+
### Kasten K10
29
+
30
+
Kasten K10 is a data management platform purpose-built for K8s that was developed by Kasten. Following Veeam acquisition of Kasten early in 2020, Kasten K10 is often referred to as Kasten by Veeam.
31
+
32
+
33
+
34
+
Kasten K10 has been named [a Leader and Outperformer in GigaOm’s K8s Data Protection report for the third consecutive year](https://www.veeam.com/news/kasten.html). It offers an easy-to-use, scalable, and secure system for K8s backup/restore, disaster recovery and mobility of K8s applications.
35
+
36
+
21
37
### HPE CSI driver for K8s
22
38
23
39
The Container Storage Interface (CSI) defines a standard interface for container orchestration systems, like K8s, to expose arbitrary block and file storage systems to their containerized workloads. Support for CSI in K8s was introduced as *alpha* in its v1.9 release, and promoted to *beta* in its v1.10 release. Since v1.13 release, the implementation of the CSI has been in *GA* in K8s. With the adoption of CSI, the K8s volume layer becomes truly extensible. Using CSI, 3rd party storage providers, such as HPE, can write and deploy plugins exposing new storage systems in K8s without ever having to touch the core K8s code. This gives K8s users more options for storage and makes the system more secure and reliable.
Following the [Kasten K10 installation page](https://docs.kasten.io/latest/index.html), the Kasten K10 can be installed to the K8s cluster using the following commands with helm:
102
+
Following the [Kasten K10 installation page](https://docs.kasten.io/latest/index.html), the Kasten K10 can be installed to the K8s cluster using the following commands using helm:
After all the Pods are in running states, edit the service *gateway* to change its service type from *ClusterIP* to *NodePort*. This will generate a service port and expose the service via the configured gatway host plus the port.
154
+
After all the Pods are in running states, edit the service *gateway* to change its service type from *ClusterIP* to *NodePort*. This will generate a service port and expose the service via the configured gatway host name plus the generated the port.
139
155
140
156
```markdown
141
157
$ kubectl edit svc gateway -n kasten-io
@@ -163,26 +179,28 @@ spec:
163
179
service/gateway edited
164
180
```
165
181
166
-
Typing the following command to get the service endpoint:
182
+
Typing the following command to get the *gateway*service endpoint:
167
183
168
184
```markdown
169
185
$ kubectl get svc gateway -n kasten-io -o jsonpath={.metadata.annotations.hpecp-internal-gateway/8000}
The Kasten K10 service dashboard can be accessed by pointing the browser to the URL *http://gl-tor-upc-cp-gw-node1.customer.yyz.gl-hpe.local:10021/k10/#/*:
189
+
The Kasten K10 service dashboard can then be accessed by pointing your browser to the URL *http://gl-tor-upc-cp-gw-node1.customer.yyz.gl-hpe.local:10021/k10/#/*:
174
190
175
191

176
192
177
-
Click*Accept Terms* after specifying your email and company name, you will be landed to Kasten K10 Dashboard:
193
+
Clicking*Accept Terms* after specifying your email and company name, you will be landed to Kasten K10 Dashboard:
178
194
179
195

180
196
197
+
Kasten K10 automatically discovers all the applications and their data across namespaces in the cluster. The K10 dashboard displays a list of applications that are mapped to namespaces. It also displays a summary of the cluster’s backup data footprint, showing *0.0 B* when accessing the dashboard for the first time.
198
+
181
199
### Deploy MySQL database
182
200
183
201
In order to show backup and restore process, an MySQL database from [my GitHub repo](https://github.com/GuopingJia/mysql-app) will be deployed as a sample stateful application to the cluster.
184
202
185
-
1. Install MySQL application
203
+
1. Install MySQL database
186
204
187
205
188
206
MySQL database requires a persistent volume to store data. Here is the PVC YAML manifest file:
0 commit comments