Skip to content

Instantly share code, notes, and snippets.

View yussufsh's full-sized avatar

Yussuf Shaikh yussufsh

View GitHub Profile
export INFRA_ID=$(jq -r .infraID metadata.json)
echo $INFRA_ID
openshift-install create ignition-configs
openshift-install create manifests
rm -f openshift/99_openshift-cluster-api_master-machines-*.yaml openshift/99_openshift-cluster-api_worker-machineset-*.yaml
sed -i 's/mastersSchedulable: true/mastersSchedulable: False/g' manifests/cluster-scheduler-02-config.yml
cat <<EOF >install-config.yaml
apiVersion: v1
baseDomain: ${CLUSTER_DOMAIN}
compute:
- hyperthreading: Enabled
name: worker
platform: {}
replicas: 0
controlPlane:
hyperthreading: Enabled
mkdir install
cd install
export CLUSTER_NAME=ocp47
export BASE_DOMAIN=example.com
export MASTER_COUNT=3
export WORKER_COUNT=2
export NETWORK_NAME=<network_name>
export RHCOS_IMAGE_ID=<rhcos_image_id>
export PULL_SECRET="<pull-secret-text>"