|
1 | | -# Lab 1. Title |
2 | | -Let's investigate how Helm can help us focus on other things by letting a chart do the work for us. We'll first deploy an application to a Kubernetes cluster by using `kubectl` and then show how we can offload the work to a chart by deploying the same app with Helm. |
| 1 | +# Lab 2 File storage with kubernetes |
| 2 | + |
| 3 | + |
3 | 4 |
|
4 | 5 | The application is the [Guestbook App](https://github.com/IBM/guestbook), which is a sample multi-tier web application. |
5 | 6 |
|
6 | | -## Scenario 1: Deploy the application using `kubectl` |
| 7 | +## Review the storage classes for file storage |
7 | 8 |
|
8 | 9 | ```bash |
9 | | -git clone https://github.com/IBM/workshop-template |
10 | | -cd workshop-template |
| 10 | +kubectl get storageclasses | grep file |
| 11 | +``` |
| 12 | + |
| 13 | +Expected output: |
| 14 | +``` |
| 15 | +$ kubectl get storageclasses | grep file |
| 16 | +
|
| 17 | +default ibm.io/ibmc-file Delete Immediate false 27m |
| 18 | +ibmc-file-bronze ibm.io/ibmc-file Delete Immediate false 27m |
| 19 | +ibmc-file-bronze-gid ibm.io/ibmc-file Delete Immediate false 27m |
| 20 | +ibmc-file-custom ibm.io/ibmc-file Delete Immediate false 27m |
| 21 | +ibmc-file-gold (default) ibm.io/ibmc-file Delete Immediate false 27m |
| 22 | +ibmc-file-gold-gid ibm.io/ibmc-file Delete Immediate false 27m |
| 23 | +ibmc-file-retain-bronze ibm.io/ibmc-file Retain Immediate false 27m |
| 24 | +ibmc-file-retain-custom ibm.io/ibmc-file Retain Immediate false 27m |
| 25 | +ibmc-file-retain-gold ibm.io/ibmc-file Retain Immediate false 27m |
| 26 | +ibmc-file-retain-silver ibm.io/ibmc-file Retain Immediate false 27m |
| 27 | +ibmc-file-silver ibm.io/ibmc-file Delete Immediate false 27m |
| 28 | +ibmc-file-silver-gid ibm.io/ibmc-file Delete Immediate false 27m |
| 29 | +``` |
| 30 | + |
| 31 | +This lab uses the default `ibmc-file-gold` |
| 32 | + |
11 | 33 | ``` |
| 34 | +kubectl describe storageclass ibmc-file-gold |
| 35 | +Name: ibmc-file-gold |
| 36 | +IsDefaultClass: Yes |
| 37 | +Annotations: kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{},"labels":{"kubernetes.io/cluster-service":"true"},"name":"ibmc-file-gold"},"parameters":{"billingType":"hourly","classVersion":"2","iopsPerGB":"10","sizeRange":"[20-4000]Gi","type":"Endurance"},"provisioner":"ibm.io/ibmc-file","reclaimPolicy":"Delete"} |
| 38 | +,storageclass.kubernetes.io/is-default-class=true |
| 39 | +Provisioner: ibm.io/ibmc-file |
| 40 | +Parameters: billingType=hourly,classVersion=2,iopsPerGB=10,sizeRange=[20-4000]Gi,type=Endurance |
| 41 | +AllowVolumeExpansion: <unset> |
| 42 | +MountOptions: <none> |
| 43 | +ReclaimPolicy: Delete |
| 44 | +VolumeBindingMode: Immediate |
| 45 | +Events: <none> |
| 46 | +``` |
0 commit comments