Open kpiroto opened 1 year ago
Could you please assign me this issue?
@maxlemieux any updates?
Hi @cdenneen I took another look at this issue, and based on the upstream subchart values it seems like the setting needs to be under pod
:
pixie-chart:
pod:
nodeSelector:
pixie: allowed
Let me know if this gives the results you need. I've tested it successfully in the past. The documented patch method should also work.
Sorry I saw this but was hoping this would help with affinity but doesn’t. Thanks for follow up.
@maxlemieux in order to do this you'd require setting a label on all nodes like pixie: allowed
which I'm not sure is best solution since really should be able to use affinity rules. You have a global.fargate: true
setting which applies affinity rules to all child charts of nri-bundle
so this should be no different.
The documented patch method should also work.
@maxlemieux since you have global.fargate: true
can that be translated into a patch
method to apply the affinity
resulting in same as the rest of the charts? So while most you can apply the affinity to child charts directly, in this case if global.fargate: true
it should apply that similar affinity as a patch. Basically the chart would convert the _helper fargate affinity into a json patch and set here. Gives you the same result without customers having to create one-off workarounds like this.
Bug description
The nodeSelector configuration is applied to pixie-chart, but it seems to be ignored
Version of Helm and Kubernetes
Helm 3, Kubernetes 1.20
Which chart?
pixie-chart from nri-bundle chart
What happened?
I have configured nodeSelector on pixie-chart, but the
NODE SELECTOR
for the vizier-pem DaemonSet is none:If I configure using the global nodeSelector option of nri-bundle chart it works:
What you expected to happen?
Run vizier-pem DaemonSet only in a set of nodes using nodeSelector
How to reproduce it?
Add the label pixie=allowed to a node, then install the helm chart:
helm install:
I also tried to use the approach from this doc:
Anything else we need to know?
I used terraform to apply those helm configurations, follows the relevant part of code:
The latest
px-dev-viziers.yaml
andolm-crd.yaml
CRDs are also applied.Values from helm, after terraform apply:
Or this, when using the patch model: