mkozioro opened a new issue #39:
URL: https://github.com/apache/pulsar-helm-chart/issues/39


   **Describe the bug**
   I've noticed, that multiple zookeeper pods started on same kubernetes node. 
It looks like issue with labels and podAntiAffinity settings.
   Example using zookeeper
   
   
koziorow@pl1lxl-108450:~/projects/LNS-DevEnv/repo/batch-service-infra/terraform-apache-pulsar$
 kubectl describe pod pulsar-zookeeper-0 
   Name:         pulsar-zookeeper-0
   Namespace:    default
   Priority:     0
   Node:         aks-default-12797261-vmss000001/10.240.0.115
   Start Time:   Mon, 13 Jul 2020 12:22:02 +0200
   Labels:       **app=pulsar**
                 cluster=pulsar
                 component=zookeeper
                 controller-revision-hash=pulsar-zookeeper-7d87bf67f9
                 release=pulsar
                 statefulset.kubernetes.io/pod-name=pulsar-zookeeper-0
   
   In chart:
           podAntiAffinity:
             requiredDuringSchedulingIgnoredDuringExecution:
             - labelSelector:
                 matchExpressions:
                 - key: "app"
                   operator: In
                   values:
                   **- "{{ template "pulsar.name" . }}-{{ 
.Values.zookeeper.component }}"**
                 - key: "release"
                   operator: In
                   values:
                   - {{ .Release.Name }}
                 - key: "component"
                   operator: In
                   values:
                   - {{ .Values.zookeeper.component }}
               topologyKey: "kubernetes.io/hostname"
   
   **Expected behavior**
   Zookeeper pods should start on different nodes. Problem exists also in other 
components. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to