Warning Use at your own risk (dangerous steps commented) #!/bin/bash set -e USE_SSH=false DRAINMODE="" while getopts ":sd:" opt; do case ${opt} in s ) USE_SSH=true echo "SSH mode enabled." ;; d ) DRAINMODE=$OPTARG echo "Drain mode set to: $DRAINMODE" ;; \? ) echo "Invalid option: $OPTARG" 1>&2 echo "Usage: $0 [-s] [-d DRAINMODE]" echo " -s Use SSH to reboot nodes instead of oc debug" echo " -d Set drain mode options (e.
LAB overview In this LAB, I’m going to deploy a single node OpenShift Cluster in Openshift Virtualization using a private network without internet access.
1. Requirements A linux machine with clients installed
Openshift Client https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/stable/openshift-client-linux.tar.gz Openshift install client https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/4.17.16/openshift-install-linux.tar.gz oc mirror https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest/oc-mirror.rhel9.tar.gz virtctl (Get the downlond links from the Openshift Console) A mirror registry to store Openshift Images Mirror registry for Red Hat openshift will be used in this lab
Components overview Ansible Automation Platform Red Hat® Ansible® Automation Platform is an end-to-end automation platform to configure systems, deploy software, and orchestrate advanced workflows. It includes resources to create, manage, and scale across the entire enterprise.
Execution Environements These are container images which include the operating system kernel (Red Hat Enterprise Linux® Universal Base Image), automation engine (ansible-core), programming language (Python), as well as all necessary dependencies. Together, they create an isolated execution environment that can interact with—and run on—almost any IT platform.