gluster / gluster-subvol

Subdirectories of Gluster volumes as PVs in Kubernetes and OpenShift
Apache License 2.0
11 stars 6 forks source link

Limit operator & operands to Linux hosts #45

Closed JohnStrunk closed 5 years ago

JohnStrunk commented 5 years ago

gluster-subvol will only work on Linux hosts. Apply proper nodeAffinity to ensure it is only scheduled there. This also requires properly merging in other nodeAffinity specs from the CR.

JohnStrunk commented 5 years ago

On 1.13.0, the node label is: beta.kubernetes.io/os: linux, but the "beta" is removed in 1.14.

I was planning to use nodeSelector to specify this since nodeAffinity is exposed in the CRD and presents a problem merging the values. I may have to use nodeAffinity since it allows "OR"-type operations via nodeSelectorTerms but this presents a problem when someone wants to override the affinity. They need to preserve these terms and weave their own conditions in manually.