Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 6b33341

Browse files
Rojan JoseRojan Jose
authored andcommitted
Repo layout
1 parent 15b05b9 commit 6b33341

File tree

10 files changed

+69
-35
lines changed

10 files changed

+69
-35
lines changed

data/images/gb1.jpg

56.9 KB
Loading

data/images/gb2.jpg

21 KB
Loading

data/images/gb3.jpg

54.9 KB
Loading

data/images/gb4.webp

57.7 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: guestbook-pvc
5+
labels:
6+
billingType: "monthly"
7+
region: us-south
8+
zone: dal10
9+
spec:
10+
accessModes:
11+
- ReadWriteMany
12+
resources:
13+
requests:
14+
storage: 20Gi
15+
storageClassName: ibmc-file-gold

workshop/Lab0/README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
11
# Pre-work
22

3-
This section is broken up into the following steps:
43

5-
1. [Sign up for IBM Cloud](#1-sign-up-for-ibm-cloud)
6-
1. [Download or clone the repo](#2-download-or-clone-the-repo)
4+
## 1. Setup Kubernetes environment
75

8-
## 1. Sign up for IBM Cloud
9-
10-
Ensure you have an IBM Cloud ID
11-
12-
![Cloud Sign up](../.gitbook/generic/ibm-cloud-sign-up.png)
6+
Run through the instructions listed [here](https://github.com/IBM/kube101/tree/master/workshop/Lab0)
137

148
## 2. Download or clone the repo
159

16-
Various parts of this workshop will require the attendee to upload files or run scripts that we've stored in the repository. So let's get that done early on, you'll need [`git`](https://git-scm.com) on your laptop to clone the repository directly, or access to [GitHub.com](https://github.com/) to download the zip file.
17-
18-
To Download, go to the [GitHub repo for this workshop](https://github.com/IBM/workshop-template) and download the archived version of the workshop and extract it on your laptop.
19-
20-
Alternately, run the following command:
21-
22-
```bash
23-
git clone https://github.com/IBM/workshop-template
24-
cd workshop-template
25-
```

workshop/Lab1/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
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 1. Container storage and Kubernetes
2+
3+
Expolore how local storage works on the pods.
4+
Mount it on Docker.
35

46
The application is the [Guestbook App](https://github.com/IBM/guestbook), which is a sample multi-tier web application.
57

workshop/Lab2/README.md

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,46 @@
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+
34

45
The application is the [Guestbook App](https://github.com/IBM/guestbook), which is a sample multi-tier web application.
56

6-
## Scenario 1: Deploy the application using `kubectl`
7+
## Review the storage classes for file storage
78

89
```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+
1133
```
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+
```

workshop/Lab3/README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,2 @@
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 1. Using IBM Cloud Block Storage with Kubernetes
32

4-
The application is the [Guestbook App](https://github.com/IBM/guestbook), which is a sample multi-tier web application.
5-
6-
## Scenario 1: Deploy the application using `kubectl`
7-
8-
```bash
9-
git clone https://github.com/IBM/workshop-template
10-
cd workshop-template
11-
```

workshop/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77

88
The introductory page of the workshop is broken down into the following sections:
99

10+
Lecture: Update K8s storage lecture.
11+
Lab 1: Container storage and Kubernetes
12+
Lab 2 File storage with kubernetes.
13+
Lab 3: Block storage with kubernetes.
14+
Lab 4: Kubernetes StatefulSets.
15+
Lab 5: Object Storage with Kubernetes.
16+
1017

1118
## Technology Used
1219

0 commit comments

Comments
 (0)