Continue writing exercise 2.

This commit is contained in:
2023-12-19 22:50:30 +13:00
parent 0753676c9a
commit 9755604d51
5 changed files with 59 additions and 53 deletions

View File

@ -1,6 +1,6 @@
const headerNavLinks = [
{ href: '/workshop', title: 'Exercises' }
// { href: 'https://etherpad.wikimedia.org/p/tssc-workshop-bne-dec-23', title: 'Etherpad'}
{ href: '/workshop', title: 'Exercises' },
{ href: 'https://etherpad.wikimedia.org/p/OpenShiftDisco_2023_12_20', title: 'Etherpad' }
]
export default headerNavLinks

View File

@ -19,7 +19,7 @@ There are of course many different options for installing OpenShift in a restric
## 1.1 - Obtaining your environment
To get underway open your web browser and navigate to the etherpad link to reserve yourself a user [insert etherpad link here]. You can reserve a user by noting your name or initials next to a user that has not yet been claimed.
To get underway open your web browser and navigate to this etherpad link to reserve yourself a user https://etherpad.wikimedia.org/p/OpenShiftDisco_2023_12_20. You can reserve a user by noting your name or initials next to a user that has not yet been claimed.
<Zoom>
|![workshop](/workshops/static/images/disconnected/etherpad.gif) |
@ -34,7 +34,7 @@ Throughout the remainder of the workshop you will be using a number of command l
To save you from needing to install or configure these tools on your own device for the remainder of this workshop a web terminal will be available for you.
Simply copy the link next to the user your reserved in etherpad and paste into your browser.
Simply copy the link next to the user your reserved in etherpad and paste into your browser. If you are prompted to login select `htpass` and enter the credentials listed in etherpad.
## 1.3 - Creating an air gap

View File

@ -160,5 +160,51 @@ tar -xzf openshift-installer.tar.gz openshift-install
rm -f openshift-installer.tar.gz
```
<Zoom>
|![workshop](/workshops/static/images/disconnected/downloading-tools.gif) |
|:-----------------------------------------------------------------------------:|
| *Downloading required tools with curl* |
</Zoom>
## 2.6 - Mirroring content to disk
The `oc-mirror` plugin supports mirroring content directly from upstream sources to a mirror registry, but since there is an air gap between our **Low side** and **High side**, that's not an option for this lab. Instead, we'll mirror content to a tarball on disk that we can then sneakernet into the bastion server on the **High side**. We'll then mirror from the tarball into the mirror registry from there.
> Note: A pre-requisite for this process is an OpenShift pull secret to authenticate to the Red Hat registries. This has already been created for you to avoid the delay of registering for individual Red Hat accounts during this workhop. You can copy this into your newly created prep system by running `scp -pr -i disco_key .docker ec2-user@$PREP_SYSTEM_IP:` in your web terminal. In a real world scenario this pull secret can be downloaded from https://console.redhat.com/openshift/install/pull-secret.
Let's get started by generating an `ImageSetConfiguration` that describes the parameters of our mirror. Run the command below to generate a boilerplate configuration file, it may take a minute:
```bash
oc mirror init > imageset-config.yaml
```
> You can take a look at the default file by running `cat imageset-config.yaml` in your web terminal. Feel free to pause the workshop tasks for a few minutes and read through the [OpenShift documentation](https://docs.openshift.com/container-platform/4.14/updating/updating_a_cluster/updating_disconnected_cluster/mirroring-image-repository.html#oc-mirror-creating-image-set-config_mirroring-ocp-image-repository) for the different options available within the image set configuration.
To save time and storage, we're going to remove the operator catalogs and mirror only the release images for this workshop. We'll still get a fully functional cluster, but OperatorHub will be empty.
To complete this, remove the operators object from your `imageset-config.yaml` by running the command below in your web terminal:
```
cat << EOF > imageset-config.yaml
kind: ImageSetConfiguration
apiVersion: mirror.openshift.io/v1alpha2
storageConfig:
local:
path: ./
mirror:
platform:
channels:
- name: stable-4.14
type: ocp
additionalImages:
- name: registry.redhat.io/ubi8/ubi:latest
helm: {}
EOF
```
Now we're ready to kick off the mirror! This will take a few minutes, you can keep an eye on the progress in your web terminal:
```bash
oc mirror --config imageset-config.yaml file:///mnt/high-side
```

View File

@ -7,67 +7,27 @@
<language>en-us</language>
<managingEditor>jablair@redhat.com (Red Hat)</managingEditor>
<webMaster>jablair@redhat.com (Red Hat)</webMaster>
<lastBuildDate>Mon, 04 Dec 2023 00:00:00 GMT</lastBuildDate>
<lastBuildDate>Mon, 18 Dec 2023 00:00:00 GMT</lastBuildDate>
<atom:link href="https://jmhbnz.github.io/workshops/feed.xml" rel="self" type="application/rss+xml"/>
<item>
<guid>https://jmhbnz.github.io/workshops/workshop/exercise1</guid>
<title>Getting familiar with OpenShift</title>
<title>Understanding our lab environment</title>
<link>https://jmhbnz.github.io/workshops/workshop/exercise1</link>
<description>In this first exercise we&#39;ll get familiar with OpenShift.</description>
<pubDate>Mon, 04 Dec 2023 00:00:00 GMT</pubDate>
<description>Let&#39;s get familiar with our lab setup.</description>
<pubDate>Mon, 18 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>disconnected</category>
</item>
<item>
<guid>https://jmhbnz.github.io/workshops/workshop/exercise2</guid>
<title>Deploying your first application</title>
<title>Preparing our low side</title>
<link>https://jmhbnz.github.io/workshops/workshop/exercise2</link>
<description>Time to deploy your first app!</description>
<pubDate>Tue, 05 Dec 2023 00:00:00 GMT</pubDate>
<description>Downloading content and tooling for sneaker ops 💾</description>
<pubDate>Mon, 18 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>images</category>
</item>
<item>
<guid>https://jmhbnz.github.io/workshops/workshop/exercise3</guid>
<title>Scaling and self-healing applications</title>
<link>https://jmhbnz.github.io/workshops/workshop/exercise3</link>
<description>Let&#39;s scale our application up 📈</description>
<pubDate>Wed, 06 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>autoscaling</category>
</item>
<item>
<guid>https://jmhbnz.github.io/workshops/workshop/exercise4</guid>
<title>Deploying an application via helm chart</title>
<link>https://jmhbnz.github.io/workshops/workshop/exercise4</link>
<description>Exploring alternative deployment approaches.</description>
<pubDate>Wed, 06 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>deployments</category><category>helm</category>
</item>
<item>
<guid>https://jmhbnz.github.io/workshops/workshop/exercise5</guid>
<title>Deploying an application via operator</title>
<link>https://jmhbnz.github.io/workshops/workshop/exercise5</link>
<description>Exploring alternative deployment approaches.</description>
<pubDate>Wed, 06 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>operator-framework</category>
</item>
<item>
<guid>https://jmhbnz.github.io/workshops/workshop/exercise6</guid>
<title>Deploying an application from source</title>
<link>https://jmhbnz.github.io/workshops/workshop/exercise6</link>
<description>Exploring alternative deployment approaches.</description>
<pubDate>Thu, 07 Dec 2023 00:00:00 GMT</pubDate>
<author>jablair@redhat.com (Red Hat)</author>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>s2i</category><category>shipwright</category>
<category>openshift</category><category>containers</category><category>kubernetes</category><category>disconnected</category>
</item>
</channel>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 MiB