[BUG] Azure ARC logcollector is missing nodeSelector os = linux
- Dominant language
- PowerShell
- Stars
- 118
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When the Azure ARC connection is enabled it installs a deployment `logcollector` within namespace `azure-arc`.
The deployment seems to be a linux application and is unable to run on Windows kubernetes nodes.
However the deployment is missing a nodeSelector os = linux and therefore might get scheduled on Windows nodes.
Here it fails with:
```
Failed to pull image "mcr.microsoft.com/azurearck8s/fluent-bit-collector:1.13.1": rpc error: code = NotFound desc = failed to pull and unpack image "mcr.microsoft.com/azurearck8s/fluent-bit-collector:1.13.1": no match for platform in manifest: not found
```
**To Reproduce**
Steps to reproduce the behavior:
1. Install new Hybrid AKS cluster with Azure ARC enabled
2. Add Linux and Windows worker pools
3. Drain the linux nodes
**Expected behavior**
The deployment must be changed and a nodeSelector for linux must be added.
See https://samcogan.com/kubernetes-pod-allocation-in-a-multi-os-cluster/
**Environment (please complete the following information):**
- OS: Microsoft Azure Stack HCI
- Version 10.0.20349
- AKS-HCI Version 1.0.20.10819
- Kubernetes Version v1.26.3
Contributor guide
Assessment
This issue has not been assessed yet.