Open pratiksanglikar opened 3 years ago
Hey @pratiksanglikar,
When you have the module installed via PowerShell can you run kubectl in cmd.exe? And also what version of Powershell are you using
I just wanna see what can be done to solve this.
Cheers P
Hi @Phiph ,
Yes, I can run kubectl
through cmd.exe when installed via PowerShell.
PowerShell version -
> Get-Host | Select-Object Version
Version
-------
5.1.19041.610
Thanks @pratiksanglikar
Looks like the kube detector uses a new Process() object - I don't know much about how it interacts with Powershell.
I'll experiment with the set up soon and let you know what I find. in the meantime I don't suppose you've got another project that plays well with kubectl installed via powershell that runs .net core?
Thank you for looking into it, @Phiph! I just checked that I can create a .NET Core project with DevSpaces support, which can play with the same kubectl installed via PowerShell.
I had the same issue by installing kubectl on Windows using the official instructions and making it available on the path: https://kubernetes.io/docs/tasks/tools/install-kubectl/
Installing Docker Desktop and Enabling Kubernetes in the UI made the "tye deploy" to successfully detect kubectl
@angellaa Can you explain you case? I have installed minik8s and Docker Desktop with Kubernetes.
Where is "UI"?
Describe the bug
Tye fails to resolve the
kubectl
installation whenkubectl
is installed through the PowerShell script on Windows 10.To Reproduce
Install
kubectl
through the PowerShell script -Verify kubectl installation
install Tye
dotnet tool install -g Microsoft.Tye --version "0.6.0-alpha.21070.5"
create a new project and add it to the solution -
Try deploying the tye application
tye deploy --interactive
Notice the error -
Further technical details
tye --version
If possible rerun the command with
-v debug
and include the outputThe platform (Linux/macOS/Windows) Windows