This is a pretty basic question so I figure I must be missing something obvious, Does openshift service uses round-robin to load balance between pods? Or does it forward requests to the pod with the greatest amount of available resources? Or is it totally random?
My service configuration looks like that:
kind: service
metadata:
name: temp
labels:
app: temp
spec:
port:
targetPort: temp-port
to:
kind: Service
name: temp
Best Answer
Posting this community wiki answer to point on the official documentation of Openshift and Kubernetes (in additional resources) that should answer the question posted.
Feel free to edit and expand.
As per OpenShift documentation (
v3.11
):Answering on the question how the traffic is load balanced when going to the
Service
:I'd reckon you can also take a look on additional resources: