Access Factoryinsight Outside the Cluster

This page describes how to access Factoryinsight from outside the cluster.

This page describes how to access Factoryinsight outside the cluster.

The United Manufacturing Hub is not exposed to the internet, therefore you cannot use the default Kubernetes Ingress to access Factoryinsight.

Instead, you can create a LoadBalancer service to expose it from the host.

Before you begin

You need to have a UMH cluster. If you do not already have a cluster, you can create one by using the Management Console .

Create a LoadBalancer service

  1. From UMHLens / OpenLens, click on the + icon on the bottom bar and select Create resource.

  2. Copy and paste the following YAML into the editor:

    apiVersion: v1
    kind: Service
    metadata:
      name: exposing-factoryinsight-externally
      namespace: united-manufacturing-hub
    spec:
      type: LoadBalancer
      selector:
        app.kubernetes.io/name: united-manufacturing-hub-factoryinsight
      ports:
        - protocol: TCP
          port: 8081
          targetPort: 80
    
  3. Click Create & Close.

Access FactoryInsight

  1. Go to http://<host-ip>:8081/ to verify that the service is working. You should see the word online in the browser.

Discussion

The service is exposed on port 8081, but you can change it to any other port that is not already in use.

What’s next

Last modified May 5, 2023: feat: finishing touches (1147002)