SSH access using a Load Balancer Service

You can attach a virtual machine through SSH by adding the MetalLB Operator to your cluster. When a Load Balancer Service is added to the cluster, MetalLB provides external access to an application over the existing network.

Required steps

  1. Install the MetalLB Operator from the OperatorHub.

    For detailed steps, see Installing the MetalLB Operator(Red Hat documentation)

  2. Apply a IPAddressPool manifest using a YAML:
    apiVersion: metallb.io/v1beta1
    kind: IPAddressPool
    metadata:
      name: ip-addresspool
      namespace: metallb-system
    spec:
      addresses:
        - 192.0.2.100 - 192.0.2.200
      autoAssign: true
      avoidBuggyIPs: false
  3. Apply the new YAML file by running the following command:
    oc apply -f <yaml-filename>