OpenShift 3.6 Node Guest Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
* [[OpenShift_3.6_Installation#Guest_Configuration|OpenShift 3.6 Installation]]
* [[OpenShift_3.6_Installation#Guest_Configuration|OpenShift 3.6 Installation]]


For each master, infranode and node:


=Clone the Generic Template=


Use the [[OpenShift_3.6_Generic_Guest_Template#Overview|generic template]] as a base image and clone it, as described below.


===OpenShift Node Configuration===
While cloning the guest, make sure to:
* Adjust the memory and the number of virtual CPUs.
* Provision docker storage sized proportionally with the nature of the node.


Clone the template following the procedure described here [[Linux_Virtualization_Cloning_a_KVM_Guest_Virtual_Machine|Cloning a KVM Guest]]. While cloning, consider the following:
{{Internal|Linux Virtualization Cloning a KVM Guest Virtual Machine|Cloning a Guest}}


Adjust the memory and the number of virtual CPUs.
The process will produce a ocp36.master (smaller docker storage), ocp36.infanode, ocp36.node1, ocp36.node2, etc.


Configure the DNS client to use the DNS server that was installed as part of the procedure. See "[[/etc/resolv.conf#Manual_resolv.conf_Configuration|manual /etc/resolv.conf Configuration]]" and https://docs.openshift.com/container-platform/3.5/install_config/install/prerequisites.html#prereq-dns
=Resources=


Configure docker disk (note that the sequence described blow needs a modified /usr/bin/docker-storage-setup):
Verify resources (memory, CPU).


systemctl stop docker
=Configure Docker Storage=
unalias rm
 
rm -r /var/lib/docker
Repeat the template docker storage setup procedure:
cat /dev/null > /etc/sysconfig/docker-storage
 
pvs
{{Internal|OpenShift_3.6_Generic_Guest_Template#Docker_Storage_Setup|Guest Template Docker Storage Setup}}
fdisk /dev/vdb
 
/usr/bin/docker-storage-setup --force
Activate at boot:
systemctl is-enabled docker
 
  systemctl start docker
  systemctl enable docker
  systemctl status docker
  systemctl disable docker-storage-setup

Latest revision as of 07:00, 9 November 2017

Internal

For each master, infranode and node:

Clone the Generic Template

Use the generic template as a base image and clone it, as described below.

While cloning the guest, make sure to:

  • Adjust the memory and the number of virtual CPUs.
  • Provision docker storage sized proportionally with the nature of the node.
Cloning a Guest

The process will produce a ocp36.master (smaller docker storage), ocp36.infanode, ocp36.node1, ocp36.node2, etc.

Resources

Verify resources (memory, CPU).

Configure Docker Storage

Repeat the template docker storage setup procedure:

Guest Template Docker Storage Setup

Activate at boot:

systemctl enable docker
systemctl disable docker-storage-setup