Assisted Install Notes

Prerequisites

Before starting have a naming and IP plan. The following is based on static IP.

  • Cluster name; ex. ocp1

  • Base domain; ex. lab.local

  • Have each Nodes primary interface Name and MAC Address.

  • Static IP

    • Each node an assigned IP

    • API VIP (assigned to the DNS Record)

    • Ingress VIP (assigned to the DNS Record)

  • DNS Records

    • api.ocp1.lab.local.

    • api-int.ocp1.lab.local.

    • *.apps.ocp1.lab.local.

    • “A” records for each host/node

    • “PTR” records for each host/node

Tip

Check disk performance for etcd with “fio”. It’s critical to have a high performing disk drive for OCP / etcd.

For more info: How to Use ‘fio’ to Check Etcd Disk Performance in OCP

podman run --volume /var/lib/etcd:/var/lib/etcd:Z quay.io/openshift-scale/etcd-perf

Method of Procedure

  1. Connect to https://console.redhat.com/openshift/overview and authenticate.

  2. Select “Create Cluster”

    ../_images/console-redhat.png
  3. Click the “Datacenter” tab and click “Create Cluster”. This starts the Assisted Intaller.

    ../_images/create-cluster.png
  4. Cluster details

    • Cluster name

    • Base domain

    • OpenShift version

    • Hosts’ network configuration

    Important

    Be sure to select “StaticIP, bridges, and bonds”. This option allows for a custom network config with the deployment.

    ../_images/cluster-details.png

    Click “Next” when ready.

  5. Static network configurations

    1. Select “YAML view” and click “Start from scratch”.

      ../_images/cluster-network.png
    2. For each host add the Network(yaml), MAC address and Interface name.

      Note

      Several examples are included below, Static Network Examples

      Attention

      Each interface in use should be defined here.

      ../_images/cluster-network-config.png
    3. Click “Next” when ready.

  6. Operators

    • Leave the defaults (Nothing selected)

    • Click “Next”.

    ../_images/cluster-operators.png
  7. Host discovery

    1. Click “Add hosts”

      ../_images/cluster-addhosts.png
      • Set Provisioning type = “Full image file - Download a self-contained ISO”

      • Add the “SSH public key”

      • If required set “proxy settings”

        ../_images/cluster-addhosts2.png
      • Click “Generate Discovery ISO” when ready.

    2. Download Discovery ISO

    3. Boot hosts from ISO

    4. Wait for hosts to be discovered.

      Note

      At least three hosts are required to move forward.

      ../_images/cluster-hosts.png
    5. If needed adjust Hostname and Role.

      ../_images/cluster-hosts-disovered.png
    6. Click “Next”.

  8. Storage

    • If needed adjust hosts target storage device for install.

    • Click “Next”.

  9. Networking

    • Add “API IP”

    • Add “Ingress IP”

    • Click “Next”

    ../_images/cluster-networking.png
  10. Review and create

    • Review Cluster summary

    • Click “Install cluster”

    • You can view the progress by watching the “Host inventory” and clicking “View cluster events”

    ../_images/cluster-install.png

    Important

    Be sure to “Download kubeconfig” and Save “kubeadmin Password”

    ../_images/cluster-access.png

Static Network Examples

The following are static network configurations when manually configuring “Static IP, bridges, and bonds”.

Ethernet Network Example
interfaces:
- name: enp1s0
  type: ethernet
  mtu: 1500
  state: up
  ipv4:
    enabled: true
    dhcp: false
    address:
    - ip: 192.168.122.21
      prefix-length: 24
  ipv6:
    enabled: false
dns-resolver:
  config:
    search:
    - lab.local
    server:
    - 192.168.1.68
routes:
  config:
  - destination: 0.0.0.0/0
    next-hop-address: 192.168.122.1
    next-hop-interface: enp1s0
    table-id: 254
VLAN-TAG Network Example
interfaces:
- name: enp1s0
  type: ethernet
  mtu: 1500
  state: up
- name: enp1s0.122
  type: vlan
  state: up
  vlan:
    base-iface: enp1s0
    id: 122
  ipv4:
    enabled: true
    dhcp: false
    address:
    - ip: 192.168.122.21
      prefix-length: 24
  ipv6:
    enabled: false
dns-resolver:
  config:
    search:
    - lab.local
    server:
    - 192.168.1.68
routes:
  config:
  - destination: 0.0.0.0/0
    next-hop-address: 192.168.122.1
    next-hop-interface: enp1s0.122
    table-id: 254
Bond with VLAN-TAG Network Example
interfaces:
- name: enp1s0
  type: ethernet
  mtu: 1500
  state: up
- name: enp2s0
  type: ethernet
  mtu: 1500
  state: up
- name: bond0
  type: bond
  mtu: 1500
  state: up
  link-aggregation:
    mode: active-backup
    port:
    - enp1s0
    - enp2s0
- name: bond0.122
  type: vlan
  state: up
  vlan:
    base-iface: bond0
    id: 122
  ipv4:
    enabled: true
    dhcp: false
    address:
    - ip: 192.168.122.21
      prefix-length: 24
  ipv6:
    enabled: false
dns-resolver:
  config:
    search:
    - lab.local
    server:
    - 192.168.1.68
routes:
  config:
  - destination: 0.0.0.0/0
    next-hop-address: 192.168.122.1
    next-hop-interface: bond0.122
    table-id: 254