# How to test if load balancing exist

**URL:** <https://community.traefik.io/t/how-to-test-if-load-balancing-exist/28795>\
**Category:** Traefik v3 (latest)\
**Tags:** kubernetes-ingress\
**Created:** [October 2, 2025, 4:27pm UTC](https://community.traefik.io/t/how-to-test-if-load-balancing-exist/28795 "2025-10-02T16:27:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcabrerazuniga](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jcabrerazuniga](https://community.traefik.io/u/jcabrerazuniga)\
**Post date:** [October 2, 2025, 4:27pm UTC](https://community.traefik.io/t/how-to-test-if-load-balancing-exist/28795/1 "2025-10-02T16:27:12Z")

</div>

I am using Traefik in Kubernetes and I have everything running but I have no idea if there is a load balancing against the replicas of “mypod”. My Deployment looks as:

```auto
---
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: mypod
      namespace: kube-system
      labels:
        app: mypod
    spec:
      replicas: 3
      selector:
        matchLabels:
          app: mypod
      template:
        metadata:
          labels:
            app: mypod
        spec:
          containers:
          - name: php-apache-4-rcweb
            image: my.registry.local:5000/image_name:0.0.1 # Or your custom image

            env:
             - name: TZ
                ....

            ports:
            - containerPort: 80

            volumeMounts:
             
              ....

            command: ["/start_apache.sh"]

          volumes:
                 ....

---

    apiVersion: v1
    kind: Service
    metadata:
      name: mypod-service
      namespace: kube-system
      annotations:
        traefik.ingress.kubernetes.io/service.sticky.cookie: "true"
        traefik.ingress.kubernetes.io/service.sticky.cookie.name: mypod-service-cookie
        traefik.ingress.kubernetes.io/service.sticky.cookie.secure: "true"
        traefik.ingress.kubernetes.io/service.sticky.cookie.maxAge: "3600"
    spec:
      selector:
        app: mypod
      ports:
        - protocol: TCP
          port: 8080 # The port on which the Service listens for incoming traffic.   
          targetPort: 80 # The port on the Pods to which the Service will forward the traffic.

```

How can I be sure there is a load balancing? am I having some errors respect of the use of Traefik?

thanks in advance

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [October 3, 2025, 8:04am UTC](https://community.traefik.io/t/how-to-test-if-load-balancing-exist/28795/2 "2025-10-03T08:04:45Z")

</div>

You can enable Traefik access log in JSON format, it will give you more details for each request proxied/forwarded.

---

<div class="post-metadata">

**Author:** ![jcabrerazuniga](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jcabrerazuniga](https://community.traefik.io/u/jcabrerazuniga)\
**Post date:** [October 17, 2025, 11:05am UTC](https://community.traefik.io/t/how-to-test-if-load-balancing-exist/28795/3 "2025-10-17T11:05:59Z")

</div>

As I was checking the logs for mypod replicas which are running Apache2 I found that there is load balancing… I am just not sure if the annotations:

> annotations:
> 
> ```auto
> traefik.ingress.kubernetes.io/service.sticky.cookie: "true"                
> traefik.ingress.kubernetes.io/service.sticky.cookie.name: mypod-service-cookie      
> traefik.ingress.kubernetes.io/service.sticky.cookie.secure: "true"       
> traefik.ingress.kubernetes.io/service.sticky.cookie.maxAge: "3600"
> 
> ```
> 
> are working as I noticed that the apache2 logs are increasing their size at each pod and it seems sometimes my http request get answered by one pod and seconds later by another apparently ignoring the maxAge: “3600” value. Am I correctly using the annotations?
