Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added data/images/gb1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/gb2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/gb3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/images/gb4.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/yaml/guestbook-file-storage-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: guestbook-pvc
labels:
billingType: "monthly"
region: us-south
zone: dal10
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 20Gi
storageClassName: ibmc-file-gold
9 changes: 9 additions & 0 deletions workshop/Lab0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Pre-work


## 1. Setup Kubernetes environment

Run through the instructions listed [here](https://github.com/IBM/kube101/tree/master/workshop/Lab0)

## 2. Download or clone the repo

13 changes: 13 additions & 0 deletions workshop/Lab1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Lab 1. Container storage and Kubernetes

Expolore how local storage works on the pods.
Mount it on Docker.

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

## Scenario 1: Deploy the application using `kubectl`

```bash
git clone https://github.com/IBM/workshop-template
cd workshop-template
```
46 changes: 46 additions & 0 deletions workshop/Lab2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Lab 2 File storage with kubernetes



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

## Review the storage classes for file storage

```bash
kubectl get storageclasses | grep file
```

Expected output:
```
$ kubectl get storageclasses | grep file

default ibm.io/ibmc-file Delete Immediate false 27m
ibmc-file-bronze ibm.io/ibmc-file Delete Immediate false 27m
ibmc-file-bronze-gid ibm.io/ibmc-file Delete Immediate false 27m
ibmc-file-custom ibm.io/ibmc-file Delete Immediate false 27m
ibmc-file-gold (default) ibm.io/ibmc-file Delete Immediate false 27m
ibmc-file-gold-gid ibm.io/ibmc-file Delete Immediate false 27m
ibmc-file-retain-bronze ibm.io/ibmc-file Retain Immediate false 27m
ibmc-file-retain-custom ibm.io/ibmc-file Retain Immediate false 27m
ibmc-file-retain-gold ibm.io/ibmc-file Retain Immediate false 27m
ibmc-file-retain-silver ibm.io/ibmc-file Retain Immediate false 27m
ibmc-file-silver ibm.io/ibmc-file Delete Immediate false 27m
ibmc-file-silver-gid ibm.io/ibmc-file Delete Immediate false 27m
```

This lab uses the default `ibmc-file-gold`

```
kubectl describe storageclass ibmc-file-gold
Name: ibmc-file-gold
IsDefaultClass: Yes
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"}
,storageclass.kubernetes.io/is-default-class=true
Provisioner: ibm.io/ibmc-file
Parameters: billingType=hourly,classVersion=2,iopsPerGB=10,sizeRange=[20-4000]Gi,type=Endurance
AllowVolumeExpansion: <unset>
MountOptions: <none>
ReclaimPolicy: Delete
VolumeBindingMode: Immediate
Events: <none>
```
2 changes: 2 additions & 0 deletions workshop/Lab3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Lab 1. Using IBM Cloud Block Storage with Kubernetes

11 changes: 11 additions & 0 deletions workshop/Lab4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Lab 1. Title
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.

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

## Scenario 1: Deploy the application using `kubectl`

```bash
git clone https://github.com/IBM/workshop-template
cd workshop-template
```
11 changes: 11 additions & 0 deletions workshop/Lab5/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Lab 1. Title
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.

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

## Scenario 1: Deploy the application using `kubectl`

```bash
git clone https://github.com/IBM/workshop-template
cd workshop-template
```
11 changes: 11 additions & 0 deletions workshop/Lab6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Lab 1. Title
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.

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

## Scenario 1: Deploy the application using `kubectl`

```bash
git clone https://github.com/IBM/workshop-template
cd workshop-template
```
11 changes: 11 additions & 0 deletions workshop/Lab7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Lab 1. Title
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.

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

## Scenario 1: Deploy the application using `kubectl`

```bash
git clone https://github.com/IBM/workshop-template
cd workshop-template
```
35 changes: 9 additions & 26 deletions workshop/README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,22 @@
# Introduction
# Introduction to Kubernetes Storage

## Workshop Title
## Objectives

Welcome to our workshop! In this workshop we'll be using foo to accomplish bar. The goals of this workshop are:

* Goals!
* Have fun!

### About this workshop
### Overview

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

* [Agenda](./#agenda)
* [Compatibility](./#compatibility)
* [Technology Used](./#technology-used)
* [Credits](./#credits)

## Agenda

| | |
| :--- | :--- |
| [Exercise 0: Pre-work](getting-started/pre-work.md) | Pre-work for the project |
| [Exercise 1: Some Exercise](https://github.com/IBM/workshop-template/tree/a089e9f550bba0b36446f9ccb77bc0475c693ebc/workshop/some-exercise/README.md) | Exercise to do the thing |
Lecture: Update K8s storage lecture.
Lab 1: Container storage and Kubernetes
Lab 2 File storage with kubernetes.
Lab 3: Block storage with kubernetes.
Lab 4: Kubernetes StatefulSets.
Lab 5: Object Storage with Kubernetes.

## Compatibility

This workshop has been tested on the following platforms:

* **osName**: version X, version Y

## Technology Used

* Brief Description

## Credits

* [Full Name](https://github.com/githubid)

32 changes: 15 additions & 17 deletions workshop/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
# Table of contents
# Summary

* [Introduction](README.md)
<!-- Rules of SUMMARY.md are here: https://docs.gitbook.com/integrations/github/content-configuration#summary -->
<!-- All headings MUST be THREE hashmarks (###) -->
<!-- Indented bullets (4 spaces) will make the first line be a section -->

## Getting Started
### Workshop

* [Pre-work](getting-started/pre-work.md)
* [Lab 0: Prework](Lab0/README.md)
* [Lab 1: ](Lab1/README.md)
* [Lab 2: ](Lab2/README.md)
* [Lab 3: ](Lab3/README.md)
* [Lab 4: ](Lab4/README.md)
* [Lab 5: ](Lab5/README.md)
* [Lab 6: ](Lab6/README.md)
* [Lab 7: ](Lab7/README.md)

## Some Heading

* [Some Section](some-heading/some-section/README.md)
* [Some Exercise](some-heading/some-section/some-exercise.md)
* [Test Page](some-heading/some-section/test-page.md)

## Workshop Resources

* [Instructor Guide](workshop-resources/admin-guide.md)

## Resources

* [IBM Developer](https://developer.ibm.com)
### Resources

* [IBM Developer](https://developer.ibm.com)
25 changes: 0 additions & 25 deletions workshop/pre-work/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions workshop/some-exercise/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions workshop/some-heading/some-section/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions workshop/some-heading/some-section/some-exercise.md

This file was deleted.

36 changes: 0 additions & 36 deletions workshop/some-heading/some-section/test-page.md

This file was deleted.

3 changes: 0 additions & 3 deletions workshop/some-section/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions workshop/workshop-resources/admin-guide.md

This file was deleted.