Minikube on Windows 11 gives error on alias kubectl="minikube kubectl --" - minikube

I am following the tutorial for installing Minikube on Windows at:
https://minikube.sigs.k8s.io/docs/start/
It says that I should make a alias, however when I do this I get a error:
alias kubectl="minikube kubectl --"
Gives error:
alias : This command cannot find a matching alias because an alias with the name 'kubectl=minikube kubectl --' does not
exist.
At line:1 char:1
+ alias kubectl="minikube kubectl --"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (kubectl=minikube kubectl --:String) [Get-Alias], ItemNotFoundException
+ FullyQualifiedErrorId : ItemNotFoundException,Microsoft.PowerShell.Commands.GetAliasCommand

Related

While I try to add docker desktop kubernetes to rancher cluster it shows error in curl command which they provided in adding cluster in rancher

curl --insecure -sfL https://104.211.32.151:8443/v3/import/zp2b5dhb7h79fn7qlk2g7k4rl2mv7b2j29s8brxfzmhskfnt4tvpmd.yaml | kubectl apply -f -
Invoke-WebRequest : A parameter cannot be found that matches parameter name 'sfL'.
At line:1 char:17
+ curl --insecure -sfL https://104.211.32.151:8443/v3/import/zp2b5dhb7h ...
+ ~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
It depends on your shell.
I usually use c:\Program files\Git\mingw64\bin\curl.exe (shipped with Git for windows) or C:\Windows\System32\curl.exe (with Windows 10), in a regular CMD shell session.
But if you are using a Powershell, as explained here, curl is a built in alias to Invoke-WebRequest cmdlet.
Use curl.exe instead of curl.

Windows cmdlet over powershell passes but gives access denied over winrm for Cluster aware updating

I am executing Invoke-CACURun for windows cluster aware updating on domain controller as an administrator. While that works on powershell, it is failing over ansible with ntlm transport and same credentials.
The command executed
ansible domain_controller -i ansible_hosts -m win_shell -a 'whoami;Invoke-CauRun -ClusterName "xyzWFC
The error I get is
Invoke-CauRun : Could not open cluster "xyzWFC": (Win32Exception) Access is denied
At line:1 char:72
+ ... .UTF8Encoding $false; whoami;Invoke-CauRun -ClusterName "xyzWFC";
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Invoke-CauRun], CauAccessDeniedException
+ FullyQualifiedErrorId : OpenClusterAccessDenied,Microsoft.ClusterAwareUpdating.Commands.InvokeCauRunCommandnon-zero return code
Any help on this?

Installation error in Service mesh Linkerd in aks

I have followed the getting started instructions here: https://linkerd.io/2/getting-started/ for installing linkerd but i am not able to install cli of linkerd.
Please see the command below: curl -sL https://run.linkerd.io/install | sh
Please see the error below:
Invoke-WebRequest : A positional parameter cannot be found that accepts argument 'https://run.linkerd.io/install'.
At line:1 char:1
+ curl --sL https://run.linkerd.io/install | sh
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
I had the same issue as you. The way I resolved it is as follows:
1) Install WSL for Windows 10: https://learn.microsoft.com/en-us/windows/wsl/install-win10.
2) Install Ubuntu from the Windows store: https://www.microsoft.com/en-gb/p/ubuntu/9nblggh4msv6
Then launch the Ubuntu shell and follow the instructions again. Please note this is not a virtual machine - just a shell.

Running MongoDB, not recognizing mongod.exe or mongo.exe

I have been running MongoDB fine on my system, ran it 2 days ago. Now I am not able to access my file folders at all. When I type DIR, I see the files but when I try to access them through command line I get ObjectNotFound.
PS C:\Program Files\MongoDB\Server\4.2\bin> cd ./mongo.exe
cd : Cannot find path './mongo.exe' because it does not exist.
At line:1 char:1
+ cd ./mongo.exe
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (./mongo.exe:String) [Set-
Location], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

Issues while running Register-ELBInstanceWithLoadBalancer on powershell

I am trying to add existing Windows Instances to and ELB using below command on powershell :-
Register-ELBInstanceWithLoadBalancer -LoadBalancerName ire798ELB
-Instances i-2eb0a88d -Region us-east-1a
But it is giving me below error :-
Register-ELBInstanceWithLoadBalancer : A WebException with status
ConnectFailure was thrown. At line:1 char:1
+ Register-ELBInstanceWithLoadBalancer -LoadBalancerName ire798ELB -Instances i-2e ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (Amazon.PowerShe...dBalancerCmdlet:RegisterELBInst...dBalancerCmdlet)
[Register-ELBInstanceWithLoadBalancer], InvalidOperationException
+ FullyQualifiedErrorId :
Amazon.Runtime.AmazonServiceException,Amazon.PowerShell.Cmdlets.ELB.RegisterELBInstanceW
ithLoadBalancerCmdlet
I tried searching on the net but could not find anything helpful. Can anyone here help me with this please.
Your -Region parameter isn't correct. 'us-east-1a' is an availability zone within the us-east-1 region.