-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addind files, examiner and convert some to hugo
- Loading branch information
1 parent
c419326
commit f8e4b1e
Showing
33 changed files
with
217 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,5 +25,7 @@ spec: | |
terminal: | ||
enabled: true | ||
layout: split | ||
files: | ||
enabled: true | ||
editor: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,8 @@ spec: | |
layout: split | ||
console: | ||
enabled: true | ||
files: | ||
enabled: true | ||
docker: | ||
enabled: true | ||
registry: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 12 additions & 1 deletion
13
workshops/lab-examiner-scripts/workshop/content/00-workshop-overview.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
This is the initial landing page for your workshop. Include in this page a description of what your workshop is about. | ||
+++ | ||
title = 'Workshop Overview' | ||
+++ | ||
|
||
The Educates training platform is a Kubernetes native application which provides | ||
time limited sandboxes for hosted workshop environments. | ||
|
||
This series of workshops demonstrates the capabilities of the Educates training | ||
platform and how it can be used. | ||
|
||
In this workshop you will get an overview of how a to create an examiner workshop to test | ||
what the learner has learnt. |
37 changes: 37 additions & 0 deletions
37
workshops/lab-examiner-scripts/workshop/content/01-deploying-a-pod.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
+++ | ||
title = 'Deploying a pod' | ||
+++ | ||
|
||
In this this task you are required to deploy a pod. The name of the pod must be "one". | ||
|
||
Before doing so, it is suggested you create a watch on pods in the namespace so you can monitor what happens. | ||
|
||
```execute-2 | ||
watch kubectl get pods | ||
``` | ||
|
||
The examiner is already running and will indicate when the task has been completed. | ||
|
||
```examiner:execute-test | ||
name: test-that-pod-exists | ||
title: Verify that pod named "one" exists. | ||
args: | ||
- one | ||
retries: .INF | ||
delay: 1 | ||
autostart: true | ||
``` | ||
|
||
Don't know how to deploy the required pod? One way is to execute the following command. | ||
|
||
```execute | ||
kubectl run one -it --image=busybox:latest --restart=Never -- sh | ||
``` | ||
|
||
You could also have manually created a `Pod` resource definition as a YAML or JSON file and used it with `kubectl apply`. | ||
|
||
If you used the above command to deploy the pod, you will need to exit from the interactive shell it created before continuing. | ||
|
||
```execute | ||
exit | ||
``` |
1 change: 0 additions & 1 deletion
1
workshops/lab-examiner-scripts/workshop/content/01-workshop-instructions.md
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
workshops/lab-examiner-scripts/workshop/content/02-deleting-a-pod.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
+++ | ||
title = 'Deleting a pod' | ||
+++ | ||
|
||
In this task you are required to delete the pod named "one" that you previously created. | ||
|
||
The examiner is already running and will indicate when the task has been completed. | ||
|
||
```examiner:execute-test | ||
name: test-that-pod-does-not-exist | ||
title: Verify that pod named "one" does not exist. | ||
args: | ||
- one | ||
retries: .INF | ||
delay: 1 | ||
autostart: true | ||
``` | ||
|
||
Don't know how to delete the pod? One way is to execute the following command. | ||
|
||
```execute | ||
kubectl delete pod one | ||
``` |
28 changes: 28 additions & 0 deletions
28
workshops/lab-examiner-scripts/workshop/content/03-user-input.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
+++ | ||
title = 'User input' | ||
+++ | ||
|
||
We will create a pod with the user provided name | ||
|
||
```examiner:execute-test | ||
name: start-pod | ||
prefix: Task | ||
title: Start pod with name | ||
inputs: | ||
schema: | ||
name: | ||
type: string | ||
title: "Name:" | ||
default: "my-app" | ||
required: true | ||
form: | ||
- "*" | ||
- type: submit | ||
title: Start | ||
``` | ||
|
||
Stop the watch for pods in the namespace. | ||
|
||
```execute-2 | ||
<ctrl-c> | ||
``` |
28 changes: 27 additions & 1 deletion
28
workshops/lab-examiner-scripts/workshop/content/99-workshop-summary.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
This is the last page of the workshop. Include in this page a summary of the workshop and any links to resources relevant to the workshop. This ensures anyone doing the workshop has material they can research later to learn more. | ||
+++ | ||
title = 'Workshop Summary' | ||
+++ | ||
|
||
This is the end of the workshop. The Educates workshop resource definition for | ||
this workshop can be viewed by clicking: | ||
|
||
```dashboard:create-dashboard | ||
name: Resource | ||
prefix: Workshop | ||
title: View workshop definition | ||
description: "" | ||
url: /files/resources/workshop.yaml | ||
``` | ||
|
||
The source code repository for this series of workshops showcasing the Educates | ||
training platform can be found at: | ||
|
||
```dashboard:open-url | ||
url: https://github.com/educates/labs-educates-showcase | ||
``` | ||
|
||
Documentation for Educates can be found at: | ||
|
||
```dashboard:open-url | ||
url: https://docs.educates.dev/ | ||
``` |
15 changes: 15 additions & 0 deletions
15
workshops/lab-examiner-scripts/workshop/examiner/tests/start-pod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
TMPFILE=/tmp/examiner-$(basename "$0") | ||
|
||
trap "rm -f $TMPFILE" EXIT | ||
|
||
cat - > $TMPFILE | ||
|
||
NAME=$(jq -r ".name" $TMPFILE) | ||
|
||
kubectl run -it $NAME --image=busybox:latest --restart=Never | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
workshops/lab-examiner-scripts/workshop/examiner/tests/test-that-pod-does-not-exist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
kubectl get pod/$1 -o name | ||
|
||
if [ "$?" == "0" ]; then | ||
exit 1 | ||
fi | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
workshops/lab-examiner-scripts/workshop/examiner/tests/test-that-pod-exists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
|
||
kubectl get pods --field-selector=status.phase=Running -o name | egrep -e "^pod/$1$" | ||
|
||
if [ "$?" != "0" ]; then | ||
exit 1 | ||
fi | ||
|
||
exit 0 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ spec: | |
terminal: | ||
enabled: true | ||
layout: split | ||
files: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ spec: | |
layout: split | ||
git: | ||
enabled: true | ||
files: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ spec: | |
terminal: | ||
enabled: true | ||
layout: split | ||
files: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ spec: | |
layout: split | ||
editor: | ||
enabled: true | ||
files: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,5 @@ spec: | |
layout: split | ||
editor: | ||
enabled: true | ||
files: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ spec: | |
terminal: | ||
enabled: true | ||
layout: split | ||
files: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ spec: | |
terminal: | ||
enabled: true | ||
layout: split | ||
files: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,5 @@ spec: | |
enabled: false | ||
vcluster: | ||
enabled: false | ||
files: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,3 +26,5 @@ spec: | |
enabled: true | ||
reveal.js: | ||
version: 3.X | ||
files: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
workshops/lab-workshop-session/workshop/content/00-workshop-overview.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
...kshop/content/01-workshop-instructions.md → ...content/01-workshop-instructions/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
4 changes: 4 additions & 0 deletions
4
workshops/lab-workshop-session/workshop/content/02-clickable-actions.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
workshops/lab-workshop-session/workshop/content/03-terminal-environment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
workshops/lab-workshop-session/workshop/content/04-session-lifecycle.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
workshops/lab-workshop-session/workshop/content/99-workshop-summary.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.