Progress on exercise 3 and some other fixes.
This commit is contained in:
@ -28,7 +28,7 @@ To get underway open your web browser and navigate to the following link to rese
|
||||
</Zoom>
|
||||
|
||||
|
||||
## 1.2 - Logging into your cluster
|
||||
## 1.2 - Logging into your cluster console
|
||||
|
||||
After entering an email and the provided password you'll be presented with a console url and login credentials for your OpenShift cluster.
|
||||
|
||||
@ -40,4 +40,16 @@ Open the console url and login.
|
||||
| *Obtaining a workshop environment* |
|
||||
</Zoom>
|
||||
|
||||
You're now ready to proceed with the next exercise 🎉.
|
||||
|
||||
## 1.3 - Logging into your bastion host
|
||||
|
||||
Along with the cluster web console we will also use the command line during this workshop. You've been allocated a bastion host that you can ssh to as part of step 1.1.
|
||||
|
||||
Follow the steps below to connect to your environment bastion host:
|
||||
|
||||
1. Open your preferrred terminal application.
|
||||
2. Enter `ssh lab-user@<bastion-hostname>` replacing `<bastion-hostname>` with the hostname listed in your **Bastion Access** environment details page.
|
||||
3. Enter `yes` if you receive a host key verification prompt. This only appears as it is the first time you have connected to this host.
|
||||
4. When prompted enter the password mentioned under **Bastion Access** in your environment details page.
|
||||
|
||||
Congratulations, you're now ready to proceed with the next exercise 🎉.
|
||||
|
||||
@ -21,13 +21,14 @@ To install Operators on OpenShift we use Operator Hub. A simplistic way of think
|
||||
| *OpenShift Operator Hub* |
|
||||
</Zoom>
|
||||
|
||||
|
||||
## 2.1 - Enable hybrid networking
|
||||
|
||||
As a cluster administrator, you can configure a Red Hat OpenShift cluster network to allow Linux and Windows nodes to host Linux and Windows workloads, respectively.
|
||||
Before installing the windows maching config operator our first step as a cluster administrator is configure a our OpenShift cluster network to allow Linux and Windows nodes to host Linux and Windows workloads, respectively.
|
||||
|
||||
This requires enabling a feature called **[hybrid networking](https://docs.openshift.com/container-platform/4.15/networking/ovn_kubernetes_network_provider/configuring-hybrid-networking.html#configuring-hybrid-ovnkubernetes)**.
|
||||
This requires enabling a feature called **[hybrid overlay networking](https://docs.openshift.com/container-platform/4.15/networking/ovn_kubernetes_network_provider/configuring-hybrid-networking.html#configuring-hybrid-ovnkubernetes)**.
|
||||
|
||||
To configure hybrid networking, run the following command in your bastion host terminal:
|
||||
To configure hybrid overlay networking, run the following command in your bastion host terminal:
|
||||
|
||||
```bash
|
||||
oc patch networks.operator.openshift.io cluster --type=merge \
|
||||
@ -49,10 +50,16 @@ oc patch networks.operator.openshift.io cluster --type=merge \
|
||||
}'
|
||||
```
|
||||
|
||||
<Zoom>
|
||||
| |
|
||||
|:-----------------------------------------------------------------------------:|
|
||||
| *Patching an OpenShift cluster network to enable hybrid networking* |
|
||||
</Zoom>
|
||||
|
||||
|
||||
## 2.2 - 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.
|
||||
If you have a running OpenShift cluster and have enabled hybrid overlay networking, you can then install the optional **Windows Machine Config Operator**. This operator will configure any Windows machines we add to the cluster, enabling Windows container workloads to be run within your OpenShift cluster.
|
||||
|
||||
Windows instances can be added either by creating a `MachineSet`, or by specifying existing instances through a `ConfigMap`. The operator will do all the necessary steps to configure the instance so that it can join the cluster as a worker node.
|
||||
|
||||
@ -75,15 +82,15 @@ Follow the steps below to install the operator:
|
||||
|
||||
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.
|
||||
Run the commands below from your bastion host to create the required secret.
|
||||
|
||||
1. Enter `ssh lab-user@<bastion-hostname>` replacing `<bastion-hostname>` 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.
|
||||
1. Generate a new ssh key with `ssh-keygen -t rsa -f ${HOME}/.ssh/winkey -q -N ''`
|
||||
2. 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
|
||||
oc create secret generic cloud-private-key \
|
||||
--from-file=private-key.pem=${HOME}/.ssh/winkey \
|
||||
--namespace openshift-windows-machine-config-operator
|
||||
```
|
||||
|
||||
<Zoom>
|
||||
|
||||
@ -112,3 +112,11 @@ After retrieving your cluster id and zone update the sample `MachineSet` using y
|
||||
|
||||
Within OpenShift you can then click the ➕ button in the top right hand corner, paste in your yaml and click **Create**.
|
||||
|
||||
|
||||
```
|
||||
|
||||
<Zoom>
|
||||
| |
|
||||
|:-----------------------------------------------------------------------------:|
|
||||
| *Create a windows machineset* |
|
||||
</Zoom>
|
||||
|
||||
Reference in New Issue
Block a user