Run Command: grep awk xargs

Mark Sanders 20 Reputation points
2024-08-05T19:06:48.65+00:00

For my cluster under Kubernetes resources > Run command, I get the below error. Is there a way to add these packages?

/bin/sh: 1: grep: not found
/bin/sh: 1: awk: not found
/bin/sh: 1: xargs: not found
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,145 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 37,416 Reputation points Microsoft Employee
    2024-08-06T19:12:52.38+00:00

    @Mark Sanders

    My understanding is that you are using the Run Command in AKS to attempt to run Linux commands. This is not the intended functionality of Run Command for AKS. It is intended to run kubectl and helm commands on your cluster. You can use the commands listed here.

    If you want to run commands on the cluster nodes you can Connect using kubectl debug. Please check to see if this option works for you. If you have more questions please let me know and I will do my best to assist.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.