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