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
- Install the MetalLB Operator from the OperatorHub.
For detailed steps, see Installing the MetalLB Operator(Red Hat documentation)
- 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 - Apply the new YAML file by running the following
command:
oc apply -f <yaml-filename>