-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Applying NodeSelector and Tolerations to Flux extenstion #4734
Comments
I did a blog post a while ago about installing it using the critical add-ons toleration but using the cli. So it should support tolerations. |
@PixelRobots Thanks for the link! That certainly helps with ensuring Flux can be deployed onto a system node pool with the taint |
Good point. You could add taints to your other node pools but then that can cause headaches for you later on. Have you tried using I am currently not at a computer, away on holiday so can't test for you. Thanks Richard |
@PixelRobots I have been digging into the helm values for the flux installation and it looks like there is a common block that is passed in by default that set's the nodeSelector and tolerations;
|
Setting
It has to be defined as |
Describe scenario
We are using the flux v2 cluster extension for Azure AKS clusters and are facing an issue where right now the flux components are not restricted as to what nodes they can deploy onto, and so are being scheduled onto different nodes across different node pools. Ideally we want to restrict the components to the system node pool which we've locked down with the taint
CriticalAddonsOnly=true:NoSchedule
as recommended here; https://learn.microsoft.com/en-us/azure/aks/use-system-pools?tabs=azure-cli#system-and-user-node-poolsI know the components get deployed onto the cluster using the helm chart
azure-k8s-flux
and we've been able to pass in values into it via the terraform resourceazurerm_kubernetes_cluster_extension
, however it appears to be a private helm chart and we don't know if it supports settingnodeSelector
's ortolerations
.Question
Has anyone faced a similar issue trying to restrict where flux is deployed? Does the
azure-k8s-flux
helm chart support settingnodeSelector
's ortolerations
?The text was updated successfully, but these errors were encountered: