Start writing windows exercise 1.

This commit is contained in:
2024-05-27 00:48:39 +12:00
parent e6eda458c0
commit 73615265dd
4 changed files with 64 additions and 0 deletions

53
data/windows/README.org Normal file
View File

@ -0,0 +1,53 @@
#+TITLE: OpenShift Workshops
#+AUTHOR: James Blair
#+DATE: <2024-05-26 Sun>
This directory contains the setup instructions for an OpenShift Windows Container Workshop.
* Pre-requisites
This guide assumes you have an existing OpenShift 4.15 cluster running in AWS.
For my purposes I have clusters provisioned via the Red Hat Demo System.
* Cluster setup
Follow the steps below to prepare each cluster in advance of the hackathon.
** Login and verify network
Our first step is to login to the cluster and confirm cluster network details
#+begin_src tmux
oc login --web <api-server>
#+end_src
#+begin_src tmux
# Check cluster cidr
oc get network.operator cluster -o yaml
#+end_src
** Enable hybrid overlay networking
https://docs.openshift.com/container-platform/4.15/networking/ovn_kubernetes_network_provider/configuring-hybrid-networking.html#configuring-hybrid-ovnkubernetes
#+begin_src tmux
# Patch the cluster network to enable hybrid overlay networking
oc patch networks.operator.openshift.io cluster --type=merge \
-p '{
"spec":{
"defaultNetwork":{
"ovnKubernetesConfig":{
"hybridOverlayConfig":{
"hybridClusterNetwork":[
{
"cidr": "10.128.0.0/14",
"hostPrefix": 23
}
]
}
}
}
}
}'
#+end_src