Azure / Azure/azure-powershell

Invoke-AzAksRunCommand, cannot execute it on nodepool with toleration

Open
#26,077 0 comments 0 reactions 0 assignees View on GitHub
customer-reported needs-triage question
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description

hello,

i'm trying to execute following command:

`Invoke-AzAksRunCommand -ResourceGroupName resourceGroup -Name aksCluster -Command "kubectl get pods" -Force`

the command work, create the ns aks-command and after that create a pod to run the command. My problem is that the pods stay stuck in pending state becouse on my nodepool i have toleration configured.

There is a way the run aks-command pods on nodepool with toleration?

Regards

### Script or Debug output

```PowerShell
Invoke-AzAksRunCommand -ResourceGroupName resourceGroup -Name aksCluster -Command "kubectl get pods" -Force
```

### Environment data

_No response_

### Module versions

_No response_

### Error output

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with Invoke-AzAksRunCommand and the AKS command pod behavior described in the issue. Determine how the command pod is scheduled when the nodepool requires a toleration, and clarify whether the expected outcome is support for configuring that toleration or a fix to scheduling; validate with the provided PowerShell command.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, kubernetes, powershell
Domain
cli, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.