|
3952 | 3952 | type: string |
3953 | 3953 | short-summary: Name of the identity binding to show. |
3954 | 3954 | """ |
3955 | | - |
3956 | | -helps[ |
3957 | | - "aks agent" |
3958 | | -] = """ |
3959 | | - type: command |
3960 | | - short-summary: Run AI assistant to analyze and troubleshoot Kubernetes clusters. |
3961 | | - long-summary: |- |
3962 | | - This command allows you to ask questions about your Azure Kubernetes cluster and get answers using AI models. |
3963 | | - Environment variables must be set to use the AI model, please refer to https://docs.litellm.ai/docs/providers to learn more about supported AI providers and models and required environment variables. |
3964 | | - parameters: |
3965 | | - - name: --name -n |
3966 | | - type: string |
3967 | | - short-summary: Name of the managed cluster. |
3968 | | - - name: --resource-group -g |
3969 | | - type: string |
3970 | | - short-summary: Name of the resource group. |
3971 | | - - name: --model |
3972 | | - type: string |
3973 | | - short-summary: Model to use for the LLM. |
3974 | | - - name: --api-key |
3975 | | - type: string |
3976 | | - short-summary: API key to use for the LLM (if not given, uses environment variables AZURE_API_KEY, OPENAI_API_KEY). |
3977 | | - - name: --config-file |
3978 | | - type: string |
3979 | | - short-summary: Path to configuration file. |
3980 | | - - name: --max-steps |
3981 | | - type: int |
3982 | | - short-summary: Maximum number of steps the LLM can take to investigate the issue. |
3983 | | - - name: --no-interactive |
3984 | | - type: bool |
3985 | | - short-summary: Disable interactive mode. When set, the agent will not prompt for input and will run in batch mode. |
3986 | | - - name: --no-echo-request |
3987 | | - type: bool |
3988 | | - short-summary: Disable echoing back the question provided to AKS Agent in the output. |
3989 | | - - name: --show-tool-output |
3990 | | - type: bool |
3991 | | - short-summary: Show the output of each tool that was called during the analysis. |
3992 | | - - name: --refresh-toolsets |
3993 | | - type: bool |
3994 | | - short-summary: Refresh the toolsets status. |
3995 | | -
|
3996 | | - examples: |
3997 | | - - name: Ask about pod issues in the cluster with Azure OpenAI |
3998 | | - text: |- |
3999 | | - export AZURE_API_BASE="https://my-azureopenai-service.openai.azure.com/" |
4000 | | - export AZURE_API_VERSION="2025-01-01-preview" |
4001 | | - export AZURE_API_KEY="sk-xxx" |
4002 | | - az aks agent "Why are my pods not starting?" --name MyManagedCluster --resource-group MyResourceGroup --model azure/my-gpt4.1-deployment |
4003 | | - - name: Ask about pod issues in the cluster with OpenAI |
4004 | | - text: |- |
4005 | | - export OPENAI_API_KEY="sk-xxx" |
4006 | | - az aks agent "Why are my pods not starting?" --name MyManagedCluster --resource-group MyResourceGroup --model gpt-4o |
4007 | | - - name: Run in interactive mode without a question |
4008 | | - text: az aks agent "Check the pod status in my cluster" --name MyManagedCluster --resource-group MyResourceGroup --model azure/my-gpt4.1-deployment --api-key "sk-xxx" |
4009 | | - - name: Run in non-interactive batch mode |
4010 | | - text: az aks agent "Diagnose networking issues" --no-interactive --max-steps 15 --model azure/my-gpt4.1-deployment |
4011 | | - - name: Show detailed tool output during analysis |
4012 | | - text: az aks agent "Why is my service workload unavailable in namespace workload-ns?" --show-tool-output --model azure/my-gpt4.1-deployment |
4013 | | - - name: Use custom configuration file |
4014 | | - text: az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.yaml --model azure/my-gpt4.1-deployment |
4015 | | - - name: Run agent with no echo of the original question |
4016 | | - text: az aks agent "What is the status of my cluster?" --no-echo-request --model azure/my-gpt4.1-deployment |
4017 | | - - name: Refresh toolsets to get the latest available tools |
4018 | | - text: az aks agent "What is the status of my cluster?" --refresh-toolsets --model azure/my-gpt4.1-deployment |
4019 | | - - name: Run agent with config file |
4020 | | - text: | |
4021 | | - az aks agent "Check kubernetes pod resource usage" --config-file /path/to/custom.yaml |
4022 | | - Here is an example of config file: |
4023 | | - ```json |
4024 | | - model: "gpt-4o" |
4025 | | - api_key: "..." |
4026 | | - # define a list of mcp servers, mcp server can be defined |
4027 | | - mcp_servers: |
4028 | | - aks_mcp: |
4029 | | - description: "The AKS-MCP is a Model Context Protocol (MCP) server that enables AI assistants to interact with Azure Kubernetes Service (AKS) clusters" |
4030 | | - url: "http://localhost:8003/sse" |
4031 | | -
|
4032 | | - # try adding your own tools or toggle the built-in toolsets here |
4033 | | - # e.g. query company-specific data, fetch logs from your existing observability tools, etc |
4034 | | - # To check how to add a customized toolset, please refer to https://docs.robusta.dev/master/configuration/holmesgpt/custom_toolsets.html#custom-toolsets |
4035 | | - # To find all built-in toolsets, please refer to https://docs.robusta.dev/master/configuration/holmesgpt/builtin_toolsets.html |
4036 | | - toolsets: |
4037 | | - # add a new json processor toolset |
4038 | | - json_processor: |
4039 | | - description: "A toolset for processing JSON data using jq" |
4040 | | - prerequisites: |
4041 | | - - command: "jq --version" # Ensure jq is installed |
4042 | | - tools: |
4043 | | - - name: "process_json" |
4044 | | - description: "A tool that uses jq to process JSON input" |
4045 | | - command: "echo '{{ json_input }}' | jq '.'" # Example jq command to format JSON |
4046 | | - # disable a built-in toolsets |
4047 | | - aks/core: |
4048 | | - enabled: false |
4049 | | - ``` |
4050 | | -""" |
0 commit comments