This procedure applies only to producer pods that are automatically generated after creating a new workspace in the One Connect platform.
The goal is to expose these pods through an internal LoadBalancer service, assigning an EXTERNAL-IP that allows controlled access from outside the cluster.
Once the workspace is created, validate that the producer pods have been generated correctly in the oneconnect namespace.
Use the following command:
kubectl get pods -n oneconnect


Important: In the list of pods, locate the group of producer pods.
The producer ID you need corresponds to the initial part of its name. Example: 00503ee7-5d4d-40f4-a82e-4eff8f28cbd2-producer-86d984b6d8-r6btc
This ID will be used later when configuring the service file.
To confirm the exact value to use, execute the following command on one of the producer pods:
kubectl describe pod 00503ee7-5d4d-40f4-a82e-4eff8f28cbd2-producer-86d984b6d8-r6btc -n oneconnect

Key detail: The value shown under oneconnect is the one you must use in the service configuration.
Example: 00503ee7-5d4d-40f4-a82e-4eff8f28cbd2-producer
In the kubernetes folder there is already a file named internallb-workspace.yaml.
This file is not created from scratch, only modified to update the selector with the producer ID obtained in the previous step.
Steps to access the folder:
cd oneconnect-kubernetes
cd kubernetesOpen the file with nano to edit:
nano internallb-workspace.yamlInside the file, locate the selector section and replace the current oneconnect value with the new ID.
apiVersion: v1
kind: Service
metadata:
name: XXX
namespace: ${NAMESPACE_ONECONNECT}
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
type: LoadBalancer
ports:
- port: 8080
selector:
oneconnect: XXXapiVersion: v1
kind: Service
metadata:
name: ENDPOINTNAME
namespace: oneconnect
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
type: LoadBalancer
ports:
- port: 8080
selector:
oneconnect: 00503ee7-5d4d-40f4-a82e-4eff8f28cbd2-producerSave changes:
Press Ctrl + X → confirm with Y → press Enter
Once the file is edited, apply the configuration so Kubernetes updates the service and associates it with the new workspace.
kubectl apply -f internallb-workspace.yamlExpected output: service/si configured
This confirms that the change was applied successfully.
Verify that the service is active and that AWS has assigned an EXTERNAL-IP.
This will be the external access point to the producer pod.
kubectl get svc -n oneconnect
Important: If the EXTERNAL-IP field shows <pending>, wait a few minutes until the LoadBalancer is fully provisioned.