Installation error in Service mesh Linkerd in aks - kubernetes

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.

Related

Problems with instalation gulp

I have a problem with instalation gulp for VScode.`
gulp : File C:\Users\Євгеній\AppData\Roaming\npm\gulp.ps1 cannot be loaded because running scripts is disabled on this system.
For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ gulp -v
+ ~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
`
Please help fix this issues
I am just start learning programming. My system Windows 10

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?

Wget Path Environment Variable on Windows

On Windows 10, I installed Wget by choco install wget.
Then I added wget.exe location folder to Path Environment Variable (which at the time of installation was C:\ProgramData\chocolatey\lib\Wget\tools).
However, Wget commands using PowerShell / cmd, like wget --help and wget [any_link] don't work right away, they work only if I type wget.exe --help and wget.exe [any_link]
wget --help error:
wget : The remote name could not be resolved: '--help'
At line:1 char:1
+ wget --help
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
How to disable explicit .exe extension? I know it's a minor problem, but when you do not use Wget very often, each time it takes you some time recollecting this annoying detail...
This is because Powershell already has its own wget command defined, that actually is an alias of Invoke-WebRequest cmdlet. If you remove the alias you can use wget.exe command without the file extension. Just try
Remove-Item Alias:wget
wget --help

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.