mirror of https://github.com/istio/istio.io.git
Sync pr 6154 (#6157)
This commit is contained in:
parent
23aeda36dd
commit
926ff1d2cc
|
@ -37,7 +37,7 @@ $ curl https://storage.googleapis.com/istio-build/dev/latest | xargs -I {} curl
|
|||
然后,在当前的 Kubernetes 集群上运行它:
|
||||
|
||||
{{< text bash >}}
|
||||
$ ./istioctl x analyze -k
|
||||
$ istioctl x analyze -k
|
||||
{{< /text >}}
|
||||
|
||||
就是这样! 它会为您提供任何适用的建议。
|
||||
|
@ -57,22 +57,22 @@ Warn [IST0102](Namespace default) The namespace is not enabled for Istio injecti
|
|||
分析一组特定的本地文件:
|
||||
|
||||
{{< text bash >}}
|
||||
$ ./istioctl x analyze a.yaml b.yaml
|
||||
$ istioctl x analyze a.yaml b.yaml
|
||||
{{< /text >}}
|
||||
|
||||
分析当前文件夹中的所有 yaml 文件:
|
||||
|
||||
{{< text bash >}}
|
||||
$ ./istioctl x analyze *.yaml
|
||||
$ istioctl x analyze *.yaml
|
||||
{{< /text >}}
|
||||
|
||||
模拟将当前文件夹中的文件应用于当前集群:
|
||||
|
||||
{{< text bash >}}
|
||||
$ ./istioctl x analyze -k *.yaml
|
||||
$ istioctl x analyze -k *.yaml
|
||||
{{< /text >}}
|
||||
|
||||
您可以运行 `./istioctl x analyze --help` 来查看完整的选项集。
|
||||
您可以运行 `istioctl x analyze --help` 来查看完整的选项集。
|
||||
|
||||
## 帮助我们改进此工具{#helping-us-improve-this-tool}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ replicationcontroller "my-nginx" created
|
|||
然后,创建另一个 pod 来调用该服务。
|
||||
|
||||
{{< text bash >}}
|
||||
$ kubectl apply -f <(bin/istioctl kube-inject -f @samples/sleep/sleep.yaml@)
|
||||
$ kubectl apply -f <(istioctl kube-inject -f @samples/sleep/sleep.yaml@)
|
||||
{{< /text >}}
|
||||
|
||||
获取 pods
|
||||
|
@ -107,7 +107,7 @@ $ kubectl delete -f @samples/https/nginx-app.yaml@
|
|||
与 sidecar 一起部署
|
||||
|
||||
{{< text bash >}}
|
||||
$ kubectl apply -f <(bin/istioctl kube-inject -f @samples/https/nginx-app.yaml@)
|
||||
$ kubectl apply -f <(istioctl kube-inject -f @samples/https/nginx-app.yaml@)
|
||||
{{< /text >}}
|
||||
|
||||
确保该 pod 已经启动且正在运行
|
||||
|
@ -187,10 +187,10 @@ prometheus-86cb6dd77c-ntw88 1/1 Running 0 23h
|
|||
然后重新部署 HTTPS 服务和 sleep 服务
|
||||
|
||||
{{< text bash >}}
|
||||
$ kubectl delete -f <(bin/istioctl kube-inject -f @samples/sleep/sleep.yaml@)
|
||||
$ kubectl apply -f <(bin/istioctl kube-inject -f @samples/sleep/sleep.yaml@)
|
||||
$ kubectl delete -f <(bin/istioctl kube-inject -f @samples/https/nginx-app.yaml@)
|
||||
$ kubectl apply -f <(bin/istioctl kube-inject -f @samples/https/nginx-app.yaml@)
|
||||
$ kubectl delete -f <(istioctl kube-inject -f @samples/sleep/sleep.yaml@)
|
||||
$ kubectl apply -f <(istioctl kube-inject -f @samples/sleep/sleep.yaml@)
|
||||
$ kubectl delete -f <(istioctl kube-inject -f @samples/https/nginx-app.yaml@)
|
||||
$ kubectl apply -f <(istioctl kube-inject -f @samples/https/nginx-app.yaml@)
|
||||
{{< /text >}}
|
||||
|
||||
确保该 pod 已经启动且正在运行
|
||||
|
|
Loading…
Reference in New Issue