Files

OpenShift Workshops

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

oc login --web <api-server>
# Check cluster cidr
oc get network.operator cluster -o yaml

Enable hybrid overlay networking

https://docs.openshift.com/container-platform/4.15/networking/ovn_kubernetes_network_provider/configuring-hybrid-networking.html#configuring-hybrid-ovnkubernetes

# 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
              }
            ]
          }
        }
      }
    }
  }'