0

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?

4

2 回答 2

1

这当然是可能的:提到的 yaml 由多个对象定义组成。例如命名空间和服务帐户。

它们中的每一个都可以使用删除kubectl delete <type> <name>

由于所有对象都是在命名空间中创建的,emojivoto因此可以通过删除命名空间来删除​​所有内容:kubectl delete namespace emojivoto

另一种选择是将 yaml 文件保存在本地并kubectl delete -f <file>改为使用。

于 2020-05-09T12:38:16.150 回答
0

我也在尝试关注相同的链接“ https://linkerd.io/2/getting-started/ ”,但是当我尝试运行命令curl -sL https://run.linkerd.io/install | sh在我的 powershell 中我收到如下错误,请您指导我。

错误:

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
于 2020-05-14T07:09:25.077 回答