This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.Este conteúdo não está disponível no idioma selecionado.
Chapter 18. Configuring for Red Hat Virtualization
You can configure OpenShift Container Platform to use Red Hat Virtualization.
18.1. Configuring Red Hat Virtualization objects Copiar o linkLink copiado para a área de transferência!
To integrate OpenShift Container Platform with Red Hat Virtualization, take the following actions as part of your host preparation.
- To provide high availability in case of the loss of one hypervisor host, add each class of instance to a negative affinity group. See VM Affinity.
To ensure that the OpenShift Container Platform environment meets the minimum hardware requirements, create templates for virtual machines that use the following resources:
Expand Master nodes
- Minimum 2 CPU Cores
- 16 GB Memory
- Minimum 10 GB root disk
- Minimum 15 GB container image registry disk
- 30 GB local volume disk
- Minimum 25 GB etcd disk
Infrastructure nodes
- Minimum 2 CPU Cores
- 16 GB Memory
- Minimum 10 GB root disk
- Minimum 15 GB container image registry disk
- 30 GB local volume disk
- Minimum 25 GB Gluster registry disk
Application nodes
- 2 CPU Cores
- 8 GB Memory
- Minimum 10 GB root disk
- Minimum 15 GB container image registry disk
- 30 GB local volume disk
Load balancer node
- 1 CPU Core
- 4 GB Memory
- 10 GB root disk
- Create master, infrastructure, and application nodes as well as a load balancer node. Use the templates that you created.
- Create DNS entries for the routers. Provide entries for all infrastructure instances and configure a round-robin strategy so that the router can pass traffic to applications.
- Create a DNS entry for the OpenShift Container Platform web console. Specify the IP address of the load balancer node.
- To use Red Hat Virtualization, you must provide external storage, for example GlusterFS, for persistent storage of registry images and for application storage.
18.2. Configuring OpenShift Container Platform for Red Hat Virtualization Copiar o linkLink copiado para a área de transferência!
You configure OpenShift Container Platform for Red Hat Virtualization by modifying the Ansible inventory file before you install the cluster.
Modify the Ansible inventory file, located at /etc/ansible/hosts by default, to use the following YAML sections:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- If you use the
openshift_node_local_quota_per_fsgroup
parameter, you must specify the partition or LVM to use for the directory of/var/lib/origin/openshift.local.volumes
. The partition must be mounted with the option ofgquota
in fstab.
This inventory file uses the following nodes and disks:
- One load balancer instance
Three master instances
- Extra disks attached: 15 GB for the container image registry, 30 GB for local volume storage, and 25 GB for etcd
Three infrastructure instances
- Extra disks attached: 15 GB for Docker, 30 GB for local volume storage, and, because this cluster uses GlusterFS for persistent storage, 25 GB for a GlusterFS registry
One or more application instance
- Extra disks attached: 15 GB for Docker, 30 GB for local volume storage
- Continue to install the cluster following the Installing OpenShift Container Platform steps. During that process, make any changes to your inventory file that your cluster needs.