Introduction
Prerequisites
Limitations and Expectations
References
Procedure
This procedure details the steps necessary to configure the Bastion Host onto RMS2 during initial installation. This VM is used for host provisioning, MySQL Cluster, and installing the hosts with kubernetes and the common services.
All steps are executable from a SSH application (putty) connected laptop accessible via the Management Interface.
Table 3-10 Procedure to configure Bastion Host
Step # | Procedure | Description |
---|---|---|
1.
|
Create the /var/occne/<cluster_name> directory on the Bastion Host |
Create the directory using the occne_cluster_name variable
contained in the hosts.ini file.
$ mkdir /var/occne $ mkdir /var/occne/<cluster_name> |
2.
|
Copy the host.ini file to the /var/occne/<cluster_name> directory |
Copy the hosts.ini file (created using procedure: OCCNE Inventory File Preparation) into the /var/occne/<cluster_name>/ directory from RMS1 (this procedure assumes the same hosts.ini file is being used here as was used to install the OS onto RMS2 from RMS1. If not then the hosts.ini file must be retrieved from the Utility USB mounted onto RMS2 and copied from RMS2 to the Bastion Host). This hosts.ini file defines each host to the OS Installer
Container running the os-install image downloaded from the repo.
$ scp root@172.16.3.4:/var/occne/<cluster_name> /var/occne/<cluster_name>/hosts.ini The current sample hosts.ini file requires a "/" to be added
to the entry for the occne_helm_images_repo.
vim (or use vi) and edit the hosts.ini file and add the"/"to the occne_helm_images_repo entry. occne_helm_images_repo='bastion-1:5000 -> occne_helm_images_repo='bastion-1:5000/ |
3.
|
Check and Disable Firewall | Check the status of the firewall. If active
then disable it.
$ systemctl status firewalld $ systemctl stop firewalld $ systemctl disable firewalld To verify: $ systemctl status firewalld |
4.
|
Set up Binaries, Helm Charts and Docker Registry on Bastion Host VM |
|
5.
|
Create a docker registry on Bastion Host |
|
6.
|
Setup NFS on the Bastion Host | Run the following commands:
$ echo '/var/occne 172.16.3.100/24(ro,no_root_squash)' >> /etc/exports $ systemctl start nfs-server $ systemctl enable nfs-server Verify nfs is running: $ ps -elf | grep nfs $ systemctl status nfs-server |
7.
|
Setup the Bastion Host to clock off the ToR Switch |
The ToR acts as the NTP source for all hosts. Update the chrony.conf file with the source NTP server by
adding the VIP address of the ToR switch from:
OCCNE 1.0 Installation PreFlight Checklist : Complete OA and Switch IP
SwitchTable as the NTP source.
$ vim /etc/chrony.conf Add the following line at the end of the file: server 172.16.3.1 chrony was installed in the first step of this procedure. Enable the service. $ systemctl enable --now chronyd $ systemctl status chronyd chrony was installed in the first step of this procedure. Enable the service. $ systemctl enable --now chronyd$ systemctl status chronyd Execute the chronyc sources -v command to display the current status of NTP on the Bastion Host. The S field should be set to * indicating NTP sync. $ chronyc sources -v 210 Number of sources = 1 .-- Source mode '^' = server, '=' = peer, '#' = local clock. / .- Source state '*' = current synced, '+' = combined , '-' = not combined, | / '?' = unreachable, 'x' = time may be in error, '~' = time too variable. || .- xxxx [ yyyy ] +/- zzzz || Reachability register (octal) -. | xxxx = adjusted offset, || Log2(Polling interval) --. | | yyyy = measured offset, || \ | | zzzz = estimated error. || | | \ MS Name/IP address Stratum Poll Reach LastRx Last sample =============================================================================== ^* 172.16.3.1 4 9 377 381 -1617ns[ +18us] +/- 89ms Edit the /var/occne/<cluster_name>/host.ini file to include the ToR Switch IP as the NTP server host. $ vim /var/occne/<cluster_name>/hosts.ini Change field: ntp_server='<ToR Switch IP'
|