Azure / Azure/agentic-cli-for-aks

agentic CLI can't access .kube/config file

Open
#13 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
11
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Hi There,

I am trying the agentic CLI in client mode and I am facing issues where agentic CLI can't access the .kube/config file to authenticate to the cluster.

```
$ az aks agent "How many nodes are in my cluster?" --resource-group dtsk8s-northeurope-sandbox-rg --name dtsk8s-northeurope-sdbox-aks --mode client
Loaded models: ['azure/gpt-5']
Refreshing available datasources (toolsets)
✅ Toolset core_investigation
✅ Toolset internet
✅ Toolset aks-mcp
Toolset statuses are cached to /root/.aks-agent/toolsets_status.json
✅ Toolset core_investigation
✅ Toolset internet
✅ Toolset aks-mcp
NO ENABLED LOGGING TOOLSET
Using model: azure/gpt-5 (272,000 total tokens, 54,400 output tokens)
This tool uses AI to generate responses and may not always be accurate.
Welcome to AKS AGENT: Type '/exit' to exit, '/help' for commands, '/feedback' to share your thoughts.
User: How many nodes are in my cluster?
```

when it runs inside the docker container, it captures, the .aks-agent directory properly. But I believe it does not mount the .kube directory automatically.

Is there a way to do this otherwise mounting it manually would not be an ideal solution. This is the agentic CLI extension version i have

```
{
"experimental": false,
"extensionType": "whl",
"name": "aks-agent",
"path": "C:\\Users\\skrout\\.azure\\cliextensions\\aks-agent",
"preview": true,
"version": "1.0.0b21"
},
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.