-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #305 from replicatedhq/support-customer-configs
Framing for new lab on adapting preflights/support bundles for customer configurations
- Loading branch information
Showing
30 changed files
with
398 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
instruqt/support-customer-configs/01-create-preflight-check/assignment.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,19 @@ | ||
--- | ||
slug: 01-create-preflight-check | ||
id: | ||
type: challenge | ||
title: Create preflight check | ||
teaser: Enter teaser here | ||
notes: | ||
- type: text | ||
contents: Enter notes here | ||
tabs: | ||
- title: Shell | ||
type: terminal | ||
hostname: shell | ||
difficulty: basic | ||
timelimit: 600 | ||
--- | ||
Introduction | ||
=============== | ||
Enter challenge here... |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/01-create-preflight-check/check-shell
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/sh | ||
# | ||
# This script runs when the platform check the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the check script" | ||
|
||
exit 0 |
10 changes: 10 additions & 0 deletions
10
instruqt/support-customer-configs/01-create-preflight-check/cleanup-shell
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This set line ensures that all failures will cause the script to error and exit | ||
set -euxo pipefail | ||
|
||
# clear the tmux pane and scrollback to look like a fresh shell | ||
tmux clear-history -t shell | ||
tmux send-keys -t shell clear ENTER | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/01-create-preflight-check/setup-shell
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/sh | ||
# | ||
# This script runs when the platform setup the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the setup script" | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/01-create-preflight-check/solve-shell
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/sh | ||
# | ||
# This script runs when the platform solve the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the solve script" | ||
|
||
exit 0 |
19 changes: 19 additions & 0 deletions
19
instruqt/support-customer-configs/02-customize-support-bundle/assignment.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,19 @@ | ||
--- | ||
slug: customize-support-bundle | ||
id: | ||
type: challenge | ||
title: Customize support bundle | ||
teaser: Enter teaser here | ||
notes: | ||
- type: text | ||
contents: Enter notes here | ||
tabs: | ||
- title: Shell | ||
type: terminal | ||
hostname: shell | ||
difficulty: basic | ||
timelimit: 600 | ||
--- | ||
Introduction | ||
=============== | ||
Enter challenge here... |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/02-customize-support-bundle/check-shell
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/sh | ||
# | ||
# This script runs when the platform check the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the check script" | ||
|
||
exit 0 |
10 changes: 10 additions & 0 deletions
10
instruqt/support-customer-configs/02-customize-support-bundle/cleanup-shell
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This set line ensures that all failures will cause the script to error and exit | ||
set -euxo pipefail | ||
|
||
# clear the tmux pane and scrollback to look like a fresh shell | ||
tmux clear-history -t shell | ||
tmux send-keys -t shell clear ENTER | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/02-customize-support-bundle/setup-shell
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/sh | ||
# | ||
# This script runs when the platform setup the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the setup script" | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/02-customize-support-bundle/solve-shell
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/sh | ||
# | ||
# This script runs when the platform solve the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the solve script" | ||
|
||
exit 0 |
19 changes: 19 additions & 0 deletions
19
instruqt/support-customer-configs/03-repackage-helm-chart/assignment.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,19 @@ | ||
--- | ||
slug: repackage-helm-chart | ||
id: | ||
type: challenge | ||
title: Repackage Helm chart | ||
teaser: Enter teaser here | ||
notes: | ||
- type: text | ||
contents: Enter notes here | ||
tabs: | ||
- title: Shell | ||
type: terminal | ||
hostname: shell | ||
difficulty: basic | ||
timelimit: 600 | ||
--- | ||
Introduction | ||
=============== | ||
Enter challenge here... |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/03-repackage-helm-chart/check-shell
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/sh | ||
# | ||
# This script runs when the platform check the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the check script" | ||
|
||
exit 0 |
10 changes: 10 additions & 0 deletions
10
instruqt/support-customer-configs/03-repackage-helm-chart/cleanup-shell
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This set line ensures that all failures will cause the script to error and exit | ||
set -euxo pipefail | ||
|
||
# clear the tmux pane and scrollback to look like a fresh shell | ||
tmux clear-history -t shell | ||
tmux send-keys -t shell clear ENTER | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/03-repackage-helm-chart/setup-shell
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/sh | ||
# | ||
# This script runs when the platform setup the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the setup script" | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/03-repackage-helm-chart/solve-shell
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/sh | ||
# | ||
# This script runs when the platform solve the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the solve script" | ||
|
||
exit 0 |
19 changes: 19 additions & 0 deletions
19
instruqt/support-customer-configs/04-run-preflight-check/assignment.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,19 @@ | ||
--- | ||
slug: run-preflight-check | ||
id: | ||
type: challenge | ||
title: Run preflight check | ||
teaser: Enter teaser here | ||
notes: | ||
- type: text | ||
contents: Enter notes here | ||
tabs: | ||
- title: Shell | ||
type: terminal | ||
hostname: shell | ||
difficulty: basic | ||
timelimit: 600 | ||
--- | ||
Introduction | ||
=============== | ||
Enter challenge here... |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/04-run-preflight-check/check-shell
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/sh | ||
# | ||
# This script runs when the platform check the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the check script" | ||
|
||
exit 0 |
10 changes: 10 additions & 0 deletions
10
instruqt/support-customer-configs/04-run-preflight-check/cleanup-shell
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This set line ensures that all failures will cause the script to error and exit | ||
set -euxo pipefail | ||
|
||
# clear the tmux pane and scrollback to look like a fresh shell | ||
tmux clear-history -t shell | ||
tmux send-keys -t shell clear ENTER | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/04-run-preflight-check/setup-shell
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/sh | ||
# | ||
# This script runs when the platform setup the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the setup script" | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/04-run-preflight-check/solve-shell
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/sh | ||
# | ||
# This script runs when the platform solve the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the solve script" | ||
|
||
exit 0 |
19 changes: 19 additions & 0 deletions
19
instruqt/support-customer-configs/05-create-support-bundle/assignment.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,19 @@ | ||
--- | ||
slug: create-support-bundle | ||
id: | ||
type: challenge | ||
title: Create support bundle | ||
teaser: Enter teaser here | ||
notes: | ||
- type: text | ||
contents: Enter notes here | ||
tabs: | ||
- title: Shell | ||
type: terminal | ||
hostname: shell | ||
difficulty: basic | ||
timelimit: 600 | ||
--- | ||
Introduction | ||
=============== | ||
Enter challenge here... |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/05-create-support-bundle/check-shell
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/sh | ||
# | ||
# This script runs when the platform check the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the check script" | ||
|
||
exit 0 |
10 changes: 10 additions & 0 deletions
10
instruqt/support-customer-configs/05-create-support-bundle/cleanup-shell
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This set line ensures that all failures will cause the script to error and exit | ||
set -euxo pipefail | ||
|
||
# clear the tmux pane and scrollback to look like a fresh shell | ||
tmux clear-history -t shell | ||
tmux send-keys -t shell clear ENTER | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/05-create-support-bundle/setup-shell
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/sh | ||
# | ||
# This script runs when the platform setup the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the setup script" | ||
|
||
exit 0 |
11 changes: 11 additions & 0 deletions
11
instruqt/support-customer-configs/05-create-support-bundle/solve-shell
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/sh | ||
# | ||
# This script runs when the platform solve the challenge. | ||
# | ||
# The platform determines if the script was successful using the exit code of this | ||
# script. If the exit code is not 0, the script fails. | ||
# | ||
|
||
echo "This is the solve script" | ||
|
||
exit 0 |
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,14 @@ | ||
version: "3" | ||
containers: | ||
- name: shell | ||
image: gcr.io/kots-field-labs/shell:instruqt-feature-tmux-template | ||
shell: tmux new-session -A -s shell su - replicant | ||
virtualmachines: | ||
- name: cluster | ||
image: instruqt/k3s-v1-27-1 | ||
shell: /bin/bash | ||
machine_type: n1-standard-1 | ||
allow_external_ingress: | ||
- http | ||
- https | ||
- high-ports |
Oops, something went wrong.