Enable load balancing
If you're running Kubernetes in the cloud, you must configure an external load balancer for the Portworx API service on your source and destination clusters. An external load balancer is necessary because it assigns a public IP address for accessing Portworx on port 9001 from your worker nodes.
caution
It is recommended that you enable authorization on your Portworx cluster before enabling a load balancer.
Enable load balancing by running the kubectl edit stc
command and adding the annotation to change service type value from nodePort
to LoadBalancer
as shown below:
kubectl edit stc <stc-name> -n <namespace>
apiVersion: core.libopenstorage.org/v1
kind: StorageCluster
metadata:
annotations:
portworx.io/service-type: "portworx-service:LoadBalancer"
...