diff --git a/data/workshop/exercise1.mdx b/data/workshop/exercise1.mdx index f208a9b..8c9d2b4 100644 --- a/data/workshop/exercise1.mdx +++ b/data/workshop/exercise1.mdx @@ -8,7 +8,9 @@ authors: ['default'] summary: "Let's get underway with the workshop." --- -Welcome to the OpenShift Windows Containers Workshop! Here you'll have a chance to build your windows container prowess. +Welcome to the OpenShift Windows Containers Workshop! Here you'll have a chance to build your windows container prowess. + +With a Red Hat subscription, you can get support for running Windows workloads in OpenShift Container Platform. For this workshop you'll be given a fresh OpenShift 4 cluster which currently only runs linux containers. You will complete a series of exercises to transform the cluster to be capable to run Windows containers. diff --git a/data/workshop/exercise2.mdx b/data/workshop/exercise2.mdx index a0c206e..9ce8731 100644 --- a/data/workshop/exercise2.mdx +++ b/data/workshop/exercise2.mdx @@ -22,7 +22,7 @@ To install Operators on OpenShift we use Operator Hub. A simplistic way of think -## 1.1 - Install the windows machine config operator +## 2.1 - Install the windows machine config operator If you have a running OpenShift cluster, you can install the optional **Windows Machine Config Operator** to configure Windows machines into nodes, enabling Windows container workloads to be ran within your OpenShift cluster. @@ -40,3 +40,26 @@ Follow the steps below to install the operator: | *Installing the windows machine config operator* | +> Note: The operator installation may take several minutes to complete. Wait for the status of `succeeded` before continuing with the following step. +> + +## 2.2 - Create configuration secrets + +The windows machine config operator expects a secret to be present in its namespace called `cloud-private-key` containing a private key. This private key will be used to log into the soon to be provisioned Windows machine and set it up as an OpenShift node. + +Run the commands below to connect to your environment bastion host and create the required secret. + +1. Enter `ssh lab-user@` replacing `` with the one listed in your **Bastion Access** environment details page. +2. Enter the password mentioned under **Bastion Access** in your environment details page. +3. Generate a new ssh key with `ssh-keygen -t rsa -f ${HOME}/.ssh/winkey -q -N ''` +4. Run the command below to create the required secret from the public key you just created. + +```bash +oc create secret generic cloud-private-key --from-file=private-key.pem=${HOME}/.ssh/winkey -n openshift-windows-machine-config-operator +``` + + +|![workshop](/workshops/static/images/windows/create-secret.gif) | +|:-----------------------------------------------------------------------------:| +| *Create a private key secret* | + diff --git a/public/static/images/windows/create-secret.gif b/public/static/images/windows/create-secret.gif new file mode 100644 index 0000000..df39ae4 Binary files /dev/null and b/public/static/images/windows/create-secret.gif differ