I have followed the getting started instructions here: https://linkerd.io/2/getting-started/
Please see the command below:
kubectl kustomize kustomize/deployment | \
linkerd inject - | \
kubectl apply -f -
emojivoto is now installed an accessible as I expected.
How can I remove emojivoto? This appears to work:
kubectl delete -f https://run.linkerd.io/emojivoto.yml
However, is it possible to do this without using an online resource?
I am also trying to follow same link "https://linkerd.io/2/getting-started/", but i when i am trying to run command curl -sL https://run.linkerd.io/install | sh in my powershell i am getting error as follows can you please guide me.
Error:
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
This is of course possible: The mentioned yaml consists of multiple object definitions. For example namespaces and service accounts.
Each of them can be deleted using kubectl delete <type> <name>
.
Since all objects are created in the namespace emojivoto
it is possible to remove everything by just removing the namespace: kubectl delete namespace emojivoto
.
The other option is to save the yaml file locally and use kubectl delete -f <file>
instead.