Skip to content

BidGithub2022/Red-Hat-OpenShift-Dedicated-on-Google-Cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Red-Hat-OpenShift-Dedicated-on-Google-Cloud

You have logged into your Google Cloud Console.

Steps to install OpenShift Dedicated on Google Cloud:

  1. Create a project.
  2. Enable APIs.
  3. Create Service account.
  4. Grant roles to the service account.
  5. Create a service account key.
  6. Adjust Quota.
  7. Deploy OpenShift.

Cluster installation

Screenshot 2024-04-04 at 11 52 32 AM

Screenshot 2024-04-04 at 11 53 04 AM

Screenshot 2024-04-04 at 11 55 05 AM

Screenshot 2024-04-04 at 11 55 46 AM

Screenshot 2024-04-04 at 11 57 49 AM

Screenshot 2024-04-04 at 12 01 39 PM

Screenshot 2024-04-04 at 12 03 46 PM

Screenshot 2024-04-04 at 12 06 14 PM

Screenshot 2024-04-04 at 12 06 55 PM

Screenshot 2024-04-04 at 12 10 37 PM

Screenshot 2024-04-04 at 12 10 51 PM

Got some error due to some APIs were not anabled. Make sure to go through the doc to enable respective APIs. "networksecurity" API is missing in the documentation.

Cluster is ready

Use identity provider and add user to login to the console. I used htpasswd identity provider and added an user. Wait for few mins before logging into the console for htpasswd klogin prompt to show up.

Screenshot 2024-04-04 at 12 53 41 PM

Instances on gcloud:

Screenshot 2024-04-04 at 7 55 00 PM 1ad8c)

Install the OCV virt operator

Screenshot 2024-04-04 at 1 12 41 PM

Screenshot 2024-04-04 at 1 13 00 PM

Screenshot 2024-04-04 at 1 15 10 PM

Screenshot 2024-04-04 at 1 19 09 PM

Create project

Screenshot 2024-04-04 at 1 21 37 PM

Create RHEL 9 VM

Screenshot 2024-04-04 at 1 22 20 PM

Screenshot 2024-04-04 at 1 22 43 PM

Getting error while creating VM

Screenshot 2024-04-04 at 6 47 50 PM

Screenshot 2024-04-04 at 6 48 15 PM

Screenshot 2024-04-04 at 6 48 35 PM

Reason for the error

The error "2 Insufficient devices.kubevirt.io/kvm" suggests that the Kubernetes/OpenShift cluster lacks the required KVM (Kernel-based Virtual Machine) devices for running virtual machines via KubeVirt. This could mean not enough nodes support virtualization, or KVM is not enabled/available on the nodes. To resolve, ensure virtualization extensions are enabled in the BIOS and that the kubevirt-node-labeller and kubevirt-device-plugin are properly deployed and functioning, making KVM devices available to the nodes.

To enable virtualization on GCP nodes for KVM, ensure your GCP VM instances are of a type that supports nested virtualization, such as n2, n2d, c2, or specific n1 machine types. Then, you can enable nested virtualization by using the "--min-cpu-platform" flag when creating a VM instance or updating an existing one. This setup is crucial for running KubeVirt or similar technologies that require KVM on GCP nodes. For detailed instructions and requirements, refer to the GCP documentation on enabling nested virtualization.

N1, N2, N2D, and C2 are types of Google Cloud Platform (GCP) virtual machine (VM) instances. N1 instances are the first generation and offer a balance of compute, memory, and network resources. N2 and N2D instances are the newer generations providing improved performance and efficiency, with N2D instances also offering AMD CPUs. C2 instances are optimized for compute-intensive applications, offering the highest performance per core on GCP and are suitable for workloads such as gaming, simulation, and scientific modeling.

To enable --min-cpu-platform on GCP, specify it when creating or updating a VM instance through the gcloud command-line tool, setting it to a desired CPU platform, such as "Intel Skylake". This flag ensures your VM uses a CPU meeting or exceeding your specified minimum. For precise syntax and options, refer to the GCP documentation.

Links to refer:

https://www.youtube.com/watch?v=AI4WwSZJi9g

https://docs.openshift.com/container-platform/4.15/installing/installing_gcp/installing-gcp-account.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published