ChrisHirsch / kuberhealthy-storage-check

A storage check for the kuberhealthy project
Apache License 2.0
10 stars 12 forks source link

nodeSelector for all pods #16

Open gfthybridlabs opened 3 years ago

gfthybridlabs commented 3 years ago

Hi,

Using EBS volumes in a multi-AZ cluster causes problems with pods not scheduled in the same zone.

I tried to get around this by setting up different storageclasses with a topology value limiting it to a known AZ based on the name i.e. kh-check-ew2 = topology.ebs.csi.aws.com/zone=eu-west-2a

Then I put a nodeSelector in the podSpec of the khcheck object based on the same for the nodes.

The main pod has the nodeSelector but the init/check pod don't pick up that value and therefore go into different AZ's and cannot mount the volume.

Is there anyway to get them to use the nodeSelector labels ?

Many thanks.

github-actions[bot] commented 3 years ago

:wave: Welcome to Kuberhealthy Storage Check. Thanks for opening your first issue.