Skip to content

Commit 13119bb

Browse files
committed
Update Blog “getting-started-with-volume-snapshots-on-a-kubernetes-cluster-in-hpe-greenlake-for-private-cloud-enterprise”
1 parent 510ffed commit 13119bb

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

content/blog/getting-started-with-volume-snapshots-on-a-kubernetes-cluster-in-hpe-greenlake-for-private-cloud-enterprise.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ Here is the PVC YAML manifest file that creates a new PVC *mysql-pvc-restore* fr
631631

632632

633633

634-
```markdown
634+
```shell
635635
$ cat mysql-pvc-restore.yaml
636636
apiVersion: v1
637637
kind: PersistentVolumeClaim
@@ -665,15 +665,14 @@ You will see the new PVC *mysql-pvc-restore*, together with its PV, is crated
665665

666666

667667

668-
```markdown
668+
```shell
669669
$ kubectl get persistentvolumeclaims -n mysql
670670
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
671671
mysql-pvc Bound pvc-3e55e9b3-097f-4ddf-bdcb-60825a7905ec 1Gi RWO gl-sbp-frank-gl1-sstor01 33m
672-
mysql-pvc-restore Bound pvc-92940c36-eb1d-4de5-9c1e-57261ccbecad 1Gi RWO gl-sbp-frank-gl1-sstor01 8s
673-
672+
mysql-pvc-restore Bound pvc-92940c36-eb1d-4de5-9c1e-57261ccbecad 1Gi RWO gl-sbp-frank-gl1-sstor01 8s
673+
674674

675675

676-
677676
$ kubectl get persistentvolumes
678677
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
679678

@@ -691,7 +690,7 @@ Typing the following command to edit the MySQL deployment config and change t
691690

692691

693692

694-
```markdown
693+
```shell
695694
$ kubectl edit deployment.apps/mysql -n mysql
696695
697696
volumes:
@@ -713,7 +712,7 @@ Start the mysql Pod by scaling the replicas in MySQL deployment back to 1:
713712

714713

715714

716-
```markdown
715+
```shell
717716
$ kubectl scale deployment.apps/mysql -n mysql --replicas=1
718717
deployment.apps/mysql scaled
719718

@@ -752,7 +751,7 @@ Forwarding from [::1]:43959 -> 3306
752751

753752

754753

755-
```markdown
754+
```shell
756755
$ mysql -h 127.0.0.1 -uroot -pCfeDemo@123 -P 43959
757756
Welcome to the MariaDB monitor. Commands end with ; or \g.
758757
Your MySQL connection id is 1
@@ -771,7 +770,9 @@ MySQL [(none)]> show databases;
771770
| mysql |
772771
| performance_schema |
773772
+--------------------+
774-
4 rows in set (0,238 sec)
773+
4 rows in set (0,238 sec)
774+
775+
775776

776777

777778
$ mysql -h 127.0.0.1 -uroot -pCfeDemo@123 -P 43959 -t <test_employees_sha.sql

0 commit comments

Comments
 (0)