rackerlabs / genestack

Where Flex cloud brings infrastructures to where you are.
https://docs.rackspacecloud.com/
Apache License 2.0
24 stars 28 forks source link

Alertmanager pod is stuck in pending state if the masters are not labeled with "node-role.kubernetes.io/worker" #439

Open pratik705 opened 1 week ago

pratik705 commented 1 week ago

Describe the bug Following affinity is set for Alertmanager[1]. Additionally, nodeSelector is also set to the controller[2]. If the controllers/masters are not labeled as node-role.kubernetes.io/worker, Alertmanager will be stuck in a pending state, as expected. To resolve the issue, I had to remove the affinity. [1]

    affinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
            - matchExpressions:
                - key: node-role.kubernetes.io/worker
                  operator: In
                  values:
                    - worker

[2]

      nodeSelector:
        openstack-control-plane: enabled

To Reproduce Steps to reproduce the behavior:

  1. Dont label the master/controlelrs with node-role.kubernetes.io/worker.
  2. Try deploying the prometheus following the instructions

Current behavior

Expected behavior