Access Factoryinsight Outside the Cluster
This page describes how to access Factoryinsight from outside the cluster.
less than a minute
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
From UMHLens / OpenLens, click on the + icon on the bottom bar and select Create resource.
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
Click Create & Close.
Access FactoryInsight
- Go to
http://<host-ip>:8081/
to verify that the service is working. You should see the wordonline
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
- See Access Kafka Outside the Cluster
- See Access the MQTT Broker Outside the Cluster
- See Access Services from Within the Cluster
Last modified May 5, 2023: feat: finishing touches (1147002)