AgentBaker
AgentBaker copied to clipboard
collect-windows-logs.ps1 throwed an error in using kubectl.exe to collect logs
What happened: collect-windows-logs.ps1 throwed below error.
Path C:\Windows\Minidump does not exist
Collecting logs from C:\Windows\SystemTemp
d----- 3/12/2024 11:00 AM px4lqsv0.2fu
Collecting the information of the node and pods by kubectl
c:\k\kubectl.exe : WARNING: This version information is deprecated and will be replaced with the output from kubectl
version --short. Use --output=yaml|json to get the full version.
At C:\k\debug\collect-windows-logs.ps1:336 char:24
+ ... function kubectl { c:\k\kubectl.exe --kubeconfig c:\k\config $args }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (WARNING: This v...e full version.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
All logs collected: ...
**********************
Windows PowerShell transcript end
End time: 20240312110015
**********************
What you expected to happen: No error.
How to reproduce it:
Anything else we need to know?:
Environment:
- AgentBaker version:
- Kubernetes version (use
kubectl version): - OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a): - Install tools:
- Others: