[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Configure the load balancer

Hi Udi.

Am 30.04.2019 um 22:01 schrieb Udi Kalifon:
> Hi all.
> I started an app (gcr.io/kuar-demo/kuard-amd64:blue
> <http://gcr.io/kuar-demo/kuard-amd64:blue>) in 3 replicas, but I can see that
> it's always the same pod that is serving the requests. How do I check what load
> balancer is used (if any), and change it to be more fair?
> I am very new to openshift. I am practicing on minishift 3.11.

You can try to run this image which is based on this repo


oc new-project demo-001
oc new-app --docker-image=docker.io/me2digital/caddy --name=caddy
oc scale dc/caddy --replicas=3
oc create route edge caddy --service=caddy --insecure-policy=Redirect

You then have a route and you can use this route to call the template


To disable cookie session sticky you will need to set this annotation

oc annotate route caddy haproxy.router.openshift.io/disable_cookies=true


> Regards,
> Udi Kalifon; Senior Automation QE


> Red Hat GmbH, http://www.de.redhat.com/, Registered seat: Grasbrunn,
> Commercial register: Amtsgericht Muenchen, HRB 153243,
> Managing Directors: Charles Cachera, Michael O'Neill, Tom Savage, Eric Shander
> _______________________________________________
> users mailing list
> users lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]