yaoih is a bash script that automates bringing up an OpenShift 4.x cluster using an installer from the OpenShift mirror.
yaoih (-r <release> | -p <version>) -c <location of cloud specific install-config.yaml> -d <install dir> -n <network config> [-x] <first delete the specified cluster>
The openshift-install
release version to be used.
Example: 4.4.4
or latest-4.11
The openshift-install
CI stream to be used. This will
pick the latest version in that stream. Example: 4.14.0-0.ci
The openshift-install
CI version to be used.
Example: 4.14.0-0.ci-2023-03-20-081138
Either -r or -p or -v needs to be specified or the existing binary in $INSTALLER_BIN will be used. If neither -r or -p or -v is specified and there is no existing binary, an error will be thrown. The -r takes precedence over -p or -v. -v takes precedence over -p.
Specify the install-config.yaml
that has been generated using the openshift-install create install-config
command.
The directory that will be used by openshift-install
.
This needs to be used only if you are trying to change network configuration.
An example hybrid OVN Network manifest that will be used by openshift-install
is show below:
apiVersion: operator.openshift.io/v1
kind: Network
metadata:
creationTimestamp: null
name: cluster
spec:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
externalIP:
policy: {}
networkType: OVNKubernetes
serviceNetwork:
- 172.30.0.0/16
defaultNetwork:
type: OVNKubernetes
ovnKubernetesConfig:
hybridOverlayConfig:
hybridClusterNetwork:
- cidr: 10.132.0.0/14
hostPrefix: 23
Optional argument that can be used if you want to first delete the cluster before creating a new one.
This is a a required environment variable that specifies the location where yaoih will download the openshift-install
binary