Here are the steps to deploy OCP + GPFS. These steps will create an OCP cluster with 3 master + 3 workers by default and then will create a multiattach EBS volume and attach it to the three workers.
- Make sure you have the right ansible dependencies via
ansible-galaxy collection install -r requirements.yml
and also that you have the httpd tools installed (httpd-tools on Fedora orbrew install httpd
on MacOSX) - Make sure your aws credentials and aws cli are in place and working
- Make sure you have redhat tokens which enable downloads, token can be obtained at https://console.redhat.com/openshift/downloads
- Copy the token to ~/.pullsecret.json. The file should be in the following format:
{
"auths": {
"cloud.openshift.com": {
"auth": "YOUR_TOKEN_HERE",
"email": "[email protected]"
},
"quay.io": {
"auth": "YOUR_TOKEN_HERE",
"email": "[email protected]"
},
"registry.redhat.io": {
"auth": "YOUR_TOKEN_HERE",
"email": "[email protected]"
}
}
}
- Run the following to create an
overrides.yml
.
cat > overrides.yml<<EOF
# ocp_domain: "fusionaccess.devcluster.openshift.com"
ocp_cluster_name: "gpfs-bandini"
gpfs_volume_name: "bandini-volume"
# ocp_worker_count: 3
# ocp_worker_type: "m5.2xlarge"
# ocp_master_count: 3
# ocp_master_type: "m5.2xlarge"
# ocp_az: "eu-central-1a"
# ocp_region: "eu-central-1"
# gpfs_version: "v5.2.2.x"
# ssh_pubkey: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO8CumOo7uGDhSG5gzRdMkej/dBZ3YhhpKweKeyW+iCK michele@oshie"
EOF
Change it by uncommenting and tweaking at least the following lines.
ocp_domain
ocp_cluster_name
gpfs_volume_name
ocp_az
ocp_region
-
Make sure you read
group_vars/all
and have all the files with the secret material done. -
Run
make ocp-clients
. This will download the needed oc and openshift-install version in your home folder under ~/aws-gpfs-playground/<ocp_version>. You might need to add this path to your bash PATH or copy it to the /usr/bin folder. -
Run
make install
to install the openshift-fusion-access operator -
Once the installation is complete, you can retrieve the cluster access information from the installation log file located at: ~/aws-gpfs-playground/ocp_install_files/.openshift_install.log
Look for the section in the log after the "Install complete!" message. The log will contain the following key details:
- KUBECONFIG File Path: The path for the Kube Config file.
- OpenShift web-console: The URL for the OpenShift web console in AWS.
- Login Credentials: The username and password to log in to the web console.
To delete the cluster and the EBS volume, run make destroy
Run make gpfs-health
to run some GPFS healthcheck commands
Run make gpfs-cleanup
to remove all the gpfs objects we know about