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

Commit 979f998

Browse files
authored
Merge pull request #2 from rojanjose/master
Setup repo structure
2 parents a04494a + 6b33341 commit 979f998

File tree

22 files changed

+153
-154
lines changed

22 files changed

+153
-154
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: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Pre-work
2+
3+
4+
## 1. Setup Kubernetes environment
5+
6+
Run through the instructions listed [here](https://github.com/IBM/kube101/tree/master/workshop/Lab0)
7+
8+
## 2. Download or clone the repo
9+

workshop/Lab1/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Lab 1. Container storage and Kubernetes
2+
3+
Expolore how local storage works on the pods.
4+
Mount it on Docker.
5+
6+
The application is the [Guestbook App](https://github.com/IBM/guestbook), which is a sample multi-tier web application.
7+
8+
## Scenario 1: Deploy the application using `kubectl`
9+
10+
```bash
11+
git clone https://github.com/IBM/workshop-template
12+
cd workshop-template
13+
```

workshop/Lab2/README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Lab 2 File storage with kubernetes
2+
3+
4+
5+
The application is the [Guestbook App](https://github.com/IBM/guestbook), which is a sample multi-tier web application.
6+
7+
## Review the storage classes for file storage
8+
9+
```bash
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+
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+
```

workshop/Lab3/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Lab 1. Using IBM Cloud Block Storage with Kubernetes
2+

workshop/Lab4/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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.
3+
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+
```

0 commit comments

Comments
 (0)