Skip to content

Commit 1246ce5

Browse files
authored
Adapts EC lab for preflight and default updates (#363)
TL;DR ----- Corrects the Embedded Cluster lab to address changes in Embedded Cluster preflights and Vendor Portal defaults Details -------- Skip host preflights by default in the Embedded Cluster lab. This is *required* because of an incompatibility between the check for a wildcard DNS record and the Instruqt infrastructure. Instruqt has a wildcard DNS entry that causes the preflight to fail, and we need to have a lab for Embedded Cluster. Since I didn't want to teach the bad habit of ignoring preflight failures, I had to [add an environment variable to the Embedded Cluster CLI](replicatedhq/embedded-cluster#2364) and use it to skip the preflights. While I was testing the change, I realized we had issues with inconsistencies in the defaults in the `replicated` CLI that meant some of our customer creation steps in lab setup were failing. This change addresses those issues. Also removes the KOTS CLI installation process that isn't needed any longer.
1 parent 1269f80 commit 1246ce5

File tree

10 files changed

+12
-7
lines changed

10 files changed

+12
-7
lines changed

instruqt/delivering-as-an-appliance/01-specifying-the-cluster/assignment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ tabs:
1919
hostname: shell
2020
difficulty: basic
2121
timelimit: 300
22+
enhanced_loading: null
2223
---
2324

2425
A virtual Kubernetes appliance consists of your application, a Kubernetes

instruqt/delivering-as-an-appliance/01-specifying-the-cluster/setup-shell

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ done
2626
mkdir -p ${HOME_DIR}/release
2727
chown replicant:replicant ${HOME_DIR}/release
2828
chmod 755 ${HOME_DIR}/release
29+

instruqt/delivering-as-an-appliance/02-customize-for-your-app/assignment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ tabs:
1919
hostname: shell
2020
difficulty: basic
2121
timelimit: 300
22+
enhanced_loading: null
2223
---
2324

2425
The Kubernetes appliance installation is one of the first things

instruqt/delivering-as-an-appliance/03-collecting-configuration/assignment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ tabs:
2222
hostname: shell
2323
difficulty: basic
2424
timelimit: 300
25+
enhanced_loading: null
2526
---
2627

2728
One of the benefits of building a Kubernetes appliance is providing a guided

instruqt/delivering-as-an-appliance/04-using-the-configuration/assignment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ tabs:
2020
hostname: shell
2121
difficulty: basic
2222
timelimit: 300
23+
enhanced_loading: null
2324
---
2425

2526
The configuration screen we built looks great, guides the customer through

instruqt/delivering-as-an-appliance/05-downloading-and-installing/assignment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ tabs:
2121
new_window: true
2222
difficulty: basic
2323
timelimit: 1200
24+
enhanced_loading: null
2425
---
2526

2627
Now that we've prepared SlackerNews for an Embedded Cluster installation,

instruqt/delivering-as-an-appliance/05-downloading-and-installing/setup-node

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ fi
1818
# download the Replicated KOTS CLI, which plugs into the `kubectl` command
1919
# and provides a subcommend to reset the password for the admin console
2020
mkdir -p /var/lib/embedded-cluster/bin
21-
export REPL_INSTALL_PATH=/var/lib/embedded-cluster/bin
22-
curl https://kots.io/install | bash
2321

2422
agent variable set ADMIN_CONSOLE_PASSWORD "$(get_admin_console_password)"
2523
agent variable set SLACKERNEWS_DOMAIN get_slackernews_domain
2624
agent variable set ADMIN_EMAIL "${INSTRUQT_PARTICIPANT_ID}@nitflex.tv"
2725
agent variable set CUSTOMER_ID $(get_customer_id Nitflex)
2826
agent variable set LICENSE_ID $(get_license_id Nitflex)
2927

28+
echo "export SKIP_HOST_PREFLIGHTS=true" >> /root/.bashrc
29+
3030
exit 0

instruqt/delivering-as-an-appliance/05-downloading-and-installing/solve-node

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ curl -f https://replicated.app/embedded/${app_slug}/stable \
4949

5050
echo "The install command takes a long time and Instruqt can't handle its output..."
5151

52-
./${app_slug} install --license license.yaml --no-prompt --skip-host-preflights --admin-console-password $(agent variable get ADMIN_CONSOLE_PASSWORD) > /dev/null
52+
./${app_slug} install --license license.yaml --no-prompt --admin-console-password $(agent variable get ADMIN_CONSOLE_PASSWORD) > /dev/null
5353

5454
exit 0

instruqt/delivering-as-an-appliance/06-completing-the-install/assignment.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ tabs:
2222
new_window: true
2323
difficulty: basic
2424
timelimit: 1200
25+
enhanced_loading: null
2526
---
2627

2728
We're part way through the installation of SlackerNews as a Kubernetes

instruqt/delivering-as-an-appliance/track.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ developers:
3636
idle_timeout: 700
3737
timelimit: 2400
3838
lab_config:
39-
overlay: false
40-
width: 25
41-
position: right
4239
sidebar_enabled: true
4340
feedback_recap_enabled: true
4441
feedback_tab_enabled: false
@@ -47,4 +44,5 @@ lab_config:
4744
hideStopButton: false
4845
default_layout: AssignmentRight
4946
default_layout_sidebar_size: 25
50-
checksum: "10811747556592817534"
47+
checksum: "1997671224954465538"
48+
enhanced_loading: false

0 commit comments

Comments
 (0)