Home > Storage > PowerFlex > White Papers > Oracle in Docker Containers Managed by Kubernetes > Step 3: Set up the Kubernetes load-balancer
Load balancing in Kubernetes is used to optimally balance the load distribution emanating out of the networking traffic from external sources. Load balancing is accomplished through a feature called kube-proxy, which manages the virtual IPs used by services. To access deployments in the Kubernetes cluster from the external network, we must set up a load-balancer. In this setup, we are using MetalLB as a load-balancer.
#kubectl apply -f https://raw.githubusercontent.com/google/metallb/v0.8.3/manifests/metallb.yaml
This command deploys MetalLB in the Kubernetes cluster, under the metallb-system namespace.
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
address-pools:
- name: default
protocol: layer2
addresses:
- 10.230.87.180-10.230.87.190
#kubectl create -f metallb-config.yaml