[BUG] csi-local-manager Azure Container Storage deployment isn't affinitied to Linux OS
Describe the bug In an AKS cluster with Windows nodes, the csi-local-manager Deployment of Azure Container Storage can be scheduled on Windows nodes, and it then fails to pull.
To Reproduce Steps to reproduce the behavior:
- Have one linux and one Windows node
- Install Azure Container Storage latest version
Expected behavior The components are scheduled only on nodes capable of running them.
Screenshots If applicable, add screenshots to help explain your problem. Make sure not to include sensitive or personal information.
Environment (please complete the following information):
- Kubernetes version 1.35.4
- CLI Extension version acstor 2.1.0
Additional context Installed with Terraform using the extension resource.
Podspec:
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/component
operator: In
values:
- webhook
topologyKey: kubernetes.io/hostname
weight: 100
This is still a bug.
@AllenWen-at-Azure are you able to reopen?
@saurabh0501 can you please drive on this? Thanks.
@cailyoung this issue has been addressed in Azure Container Storage v2.2.0. When you have a chance, please try the latest release and let us know if you encounter any further issues or have any feedback. Thank you! Tagging @Azure/aks-storage for visibility.
@saurabh0501 I can see our clusters upgraded and the new affinity looks perfect. Thanks!