-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workshop demonstrating vcluster CLI.
- Loading branch information
1 parent
8828977
commit 9366764
Showing
9 changed files
with
186 additions
and
5 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
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 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,3 @@ | ||
# Workshop | ||
|
||
Workshop description |
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,44 @@ | ||
apiVersion: training.educates.dev/v1beta1 | ||
kind: Workshop | ||
metadata: | ||
name: "lab-command-vcluster" | ||
spec: | ||
title: "Test of using the vcluster command" | ||
description: "Test of creating a virtual cluster using the vcluster CLI." | ||
publish: | ||
image: $(image_repository)/labs-vcluster-testing/lab-command-vcluster-files:$(workshop_version) | ||
files: | ||
- directory: | ||
path: . | ||
includePaths: | ||
- /workshop/** | ||
- /resources/** | ||
- /README.md | ||
excludePaths: | ||
- /workshop/.hugo_build.lock | ||
- /workshop/resources/** | ||
workshop: | ||
files: | ||
- image: | ||
url: $(image_repository)/labs-vcluster-testing/lab-command-vcluster-files:$(workshop_version) | ||
session: | ||
namespaces: | ||
budget: large | ||
security: | ||
policy: baseline | ||
applications: | ||
terminal: | ||
enabled: true | ||
layout: split | ||
console: | ||
enabled: true | ||
vendor: octant | ||
editor: | ||
enabled: true | ||
vcluster: | ||
enabled: false | ||
files: | ||
enabled: true | ||
dashboards: | ||
- name: Cluster | ||
url: terminal:vcluster |
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,31 @@ | ||
# pathways: | ||
# default: workshop | ||
# | ||
# paths: | ||
# workshop: | ||
# title: "Workshop" | ||
# | ||
# steps: | ||
# - 00-workshop-overview | ||
# - 01-workshop-instructions | ||
# - 99-workshop-summary | ||
# | ||
# params: | ||
# - name: NAME | ||
# value: undefined | ||
# aliases: | ||
# - ALIAS | ||
|
||
# modules: | ||
# - name: 00-workshop-overview | ||
# title: Workshop Overview | ||
# - name: 01-workshop-instructions | ||
# title: Workshop Instructions | ||
# - name: 99-workshop-summary | ||
# title: Workshop Summary | ||
|
||
# params: | ||
# - name: NAME | ||
# value: undefined | ||
# aliases: | ||
# - ALIAS |
72 changes: 72 additions & 0 deletions
72
workshops/lab-command-vcluster/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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
title: Workshop Overview | ||
--- | ||
|
||
```terminal:execute | ||
session: vcluster | ||
command: vcluster create test --connect | ||
``` | ||
|
||
```terminal:execute | ||
command: vcluster list | ||
``` | ||
|
||
```terminal:execute | ||
command: kubectl config get-contexts | ||
``` | ||
|
||
```terminal:execute | ||
command: kubectl config set-context --current --namespace default | ||
``` | ||
|
||
```terminal:execute | ||
command: kubectl config get-contexts | ||
``` | ||
|
||
```terminal:execute | ||
command: kubectl get nodes | ||
``` | ||
|
||
```terminal:execute | ||
command: kubectl get namespaces | ||
``` | ||
|
||
```terminal:execute | ||
command: kubectl get serviceaccounts | ||
``` | ||
|
||
```terminal:execute | ||
command: kubectl get nodes --context educates | ||
``` | ||
|
||
```terminal:execute | ||
command: kubectl get namespaces --context educates | ||
``` | ||
|
||
```terminal:execute | ||
command: kubectl get serviceaccounts --context educates --namespace default | ||
``` | ||
|
||
```dashboard:open-dashboard | ||
name: Console | ||
``` | ||
|
||
```terminal:execute | ||
command: vcluster delete test | ||
``` | ||
|
||
```terminal:execute | ||
command: vcluster list | ||
``` | ||
|
||
```terminal:execute | ||
command: kubectl config get-contexts | ||
``` | ||
|
||
```dashboard:open-dashboard | ||
name: Cluster | ||
``` | ||
|
||
```terminal:interrupt | ||
session: vcluster | ||
``` |
5 changes: 5 additions & 0 deletions
5
workshops/lab-command-vcluster/workshop/content/01-workshop-instructions.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,5 @@ | ||
--- | ||
title: Workshop Instructions | ||
--- | ||
|
||
This is the first page of the workshop instructions, create as many separate pages as you need to. If necessary pages can be located in sub directories to provided grouping. |
5 changes: 5 additions & 0 deletions
5
workshops/lab-command-vcluster/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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Workshop Summary | ||
--- | ||
|
||
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. |
7 changes: 7 additions & 0 deletions
7
workshops/lab-command-vcluster/workshop/setup.d/download-vcluster-cli.sh
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,7 @@ | ||
#!/bin/bash | ||
|
||
mkdir ~/bin | ||
|
||
curl -L -o ~/bin/vcluster https://github.com/loft-sh/vcluster/releases/download/v0.15.7/vcluster-linux-${PLATFORM_ARCH} | ||
|
||
chmod +x ~/bin/vcluster |