mirror of https://github.com/istio/istio.io.git
remove the statsd in multi cluster setup (#3259)
* remove the statsd which we've already deprecated. * remove some other statsd reference. * more removal of statsd. * Add spaces in chinese doc.
This commit is contained in:
parent
52b45b24d9
commit
e622465cdb
|
|
@ -67,7 +67,6 @@ $ helm template install/kubernetes/helm/istio \
|
|||
--set sidecarInjectorWebhook.enabled=false \
|
||||
--set mixer.enabled=false \
|
||||
--set prometheus.enabled=false \
|
||||
--set global.proxy.envoyStatsd.enabled=false \
|
||||
--set pilot.sidecar=false > istio-minimal.yaml
|
||||
{{< /text >}}
|
||||
|
||||
|
|
|
|||
|
|
@ -137,7 +137,6 @@ $ kubectl get pods -n istio-system
|
|||
{{< text bash >}}
|
||||
$ export PILOT_POD_IP=$(kubectl -n istio-system get pod -l istio=pilot -o jsonpath='{.items[0].status.podIP}')
|
||||
$ export POLICY_POD_IP=$(kubectl -n istio-system get pod -l istio=mixer -o jsonpath='{.items[0].status.podIP}')
|
||||
$ export STATSD_POD_IP=$(kubectl -n istio-system get pod -l istio=statsd-prom-bridge -o jsonpath='{.items[0].status.podIP}')
|
||||
$ export TELEMETRY_POD_IP=$(kubectl -n istio-system get pod -l istio-mixer-type=telemetry -o jsonpath='{.items[0].status.podIP}')
|
||||
{{< /text >}}
|
||||
|
||||
|
|
@ -148,9 +147,7 @@ $ kubectl get pods -n istio-system
|
|||
--name istio-remote \
|
||||
--set global.remotePilotAddress=${PILOT_POD_IP} \
|
||||
--set global.remotePolicyAddress=${POLICY_POD_IP} \
|
||||
--set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} \
|
||||
--set global.proxy.envoyStatsd.enabled=true \
|
||||
--set global.proxy.envoyStatsd.host=${STATSD_POD_IP} > $HOME/istio-remote.yaml
|
||||
--set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} > $HOME/istio-remote.yaml
|
||||
{{< /text >}}
|
||||
|
||||
## Install remote cluster manifest
|
||||
|
|
|
|||
|
|
@ -156,9 +156,6 @@ To customize Istio install using Helm, use the `--set <key>=<value>` option in H
|
|||
| `global.proxy.includeInboundPorts` | `"*"` | |
|
||||
| `global.proxy.excludeInboundPorts` | `""` | |
|
||||
| `global.proxy.autoInject` | `enabled` | |
|
||||
| `global.proxy.envoyStatsd.enabled` | `false` | |
|
||||
| `global.proxy.envoyStatsd.host` | `# example: statsd-svc.istio-system` | |
|
||||
| `global.proxy.envoyStatsd.port` | `# example: 9125` | |
|
||||
| `global.proxy.tracer` | `"zipkin"` | |
|
||||
| `global.proxy_init.image` | `proxy_init` | |
|
||||
| `global.imagePullPolicy` | `IfNotPresent` | |
|
||||
|
|
|
|||
|
|
@ -45,8 +45,7 @@ $ helm install install/kubernetes/helm/istio --name istio --namespace istio-syst
|
|||
--set galley.enabled=false \
|
||||
--set sidecarInjectorWebhook.enabled=false \
|
||||
--set mixer.enabled=false \
|
||||
--set prometheus.enabled=false \
|
||||
--set global.proxy.envoyStatsd.enabled=false
|
||||
--set prometheus.enabled=false
|
||||
{{< /text >}}
|
||||
|
||||
Ensure the `istio-pilot-*` and `istio-citadel-*` Kubernetes pods are deployed and their containers are up and running:
|
||||
|
|
|
|||
|
|
@ -94,7 +94,6 @@ to the Kubernetes API server:
|
|||
istio-pilot-5fd885964b-l4df6 2/2 Running 0 2m
|
||||
istio-policy-56f4f4cbbd-2z2bk 2/2 Running 0 2m
|
||||
istio-sidecar-injector-646655c8cd-rwvsx 1/1 Running 0 2m
|
||||
istio-statsd-prom-bridge-7fdbbf769-8k42l 1/1 Running 0 2m
|
||||
istio-telemetry-8687d9d745-mwjbf 2/2 Running 0 2m
|
||||
prometheus-55c7c698d6-f4drj 1/1 Running 0 2m
|
||||
{{< /text >}}
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ $ helm template install/kubernetes/helm/istio \
|
|||
--set sidecarInjectorWebhook.enabled=false \
|
||||
--set mixer.enabled=false \
|
||||
--set prometheus.enabled=false \
|
||||
--set global.proxy.envoyStatsd.enabled=false \
|
||||
--set pilot.sidecar=false > istio-minimal.yaml
|
||||
{{< /text >}}
|
||||
|
||||
|
|
|
|||
|
|
@ -137,7 +137,6 @@ $ kubectl get pods -n istio-system
|
|||
{{< text bash >}}
|
||||
$ export PILOT_POD_IP=$(kubectl -n istio-system get pod -l istio=pilot -o jsonpath='{.items[0].status.podIP}')
|
||||
$ export POLICY_POD_IP=$(kubectl -n istio-system get pod -l istio=mixer -o jsonpath='{.items[0].status.podIP}')
|
||||
$ export STATSD_POD_IP=$(kubectl -n istio-system get pod -l istio=statsd-prom-bridge -o jsonpath='{.items[0].status.podIP}')
|
||||
$ export TELEMETRY_POD_IP=$(kubectl -n istio-system get pod -l istio-mixer-type=telemetry -o jsonpath='{.items[0].status.podIP}')
|
||||
{{< /text >}}
|
||||
|
||||
|
|
@ -148,9 +147,7 @@ $ kubectl get pods -n istio-system
|
|||
--name istio-remote \
|
||||
--set global.remotePilotAddress=${PILOT_POD_IP} \
|
||||
--set global.remotePolicyAddress=${POLICY_POD_IP} \
|
||||
--set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} \
|
||||
--set global.proxy.envoyStatsd.enabled=true \
|
||||
--set global.proxy.envoyStatsd.host=${STATSD_POD_IP} > $HOME/istio-remote.yaml
|
||||
--set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} > $HOME/istio-remote.yaml
|
||||
{{< /text >}}
|
||||
|
||||
## 安装远程集群
|
||||
|
|
|
|||
|
|
@ -122,7 +122,6 @@ keywords: [kubernetes,multicluster]
|
|||
--set global.createRemoteSvcEndpoints=true \
|
||||
--set global.remotePilotCreateSvcEndpoint=true \
|
||||
--set global.remotePilotAddress=${LOCAL_GW_ADDR} \
|
||||
--set global.proxy.envoyStatsd.enabled=false \
|
||||
--set global.disablePolicyChecks=true \
|
||||
--set global.policyCheckFailOpen=true \
|
||||
--set gateways.istio-ingressgateway.env.ISTIO_META_NETWORK="network2" \
|
||||
|
|
|
|||
|
|
@ -115,9 +115,6 @@ keywords: [kubernetes,helm]
|
|||
| `global.proxy.includeInboundPorts` | `"*"` | |
|
||||
| `global.proxy.excludeInboundPorts` | `""` | |
|
||||
| `global.proxy.autoInject` | `enabled` | |
|
||||
| `global.proxy.envoyStatsd.enabled` | `true` | |
|
||||
| `global.proxy.envoyStatsd.host` | `istio-statsd-prom-bridge` | |
|
||||
| `global.proxy.envoyStatsd.port` | `9125` | |
|
||||
| `global.proxy_init.image` | `proxy_init` | |
|
||||
| `global.imagePullPolicy` | `IfNotPresent` | |
|
||||
| `global.controlPlaneSecurityEnabled` | `true` | |
|
||||
|
|
|
|||
|
|
@ -36,8 +36,7 @@ $ helm install install/kubernetes/helm/istio --name istio --namespace istio-syst
|
|||
--set galley.enabled=false \
|
||||
--set sidecarInjectorWebhook.enabled=false \
|
||||
--set mixer.enabled=false \
|
||||
--set prometheus.enabled=false \
|
||||
--set global.proxy.envoyStatsd.enabled=false
|
||||
--set prometheus.enabled=false
|
||||
{{< /text >}}
|
||||
|
||||
在 Kubernetes 中确认 `istio-pilot-*` 以及 `istio-citadel-*` Pod 被正确部署,其中的容器正在运行:
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ icon: helm
|
|||
--set sidecarInjectorWebhook.enabled=false \
|
||||
--set mixer.enabled=false \
|
||||
--set prometheus.enabled=false \
|
||||
--set global.proxy.envoyStatsd.enabled=false \
|
||||
--set pilot.sidecar=false > $HOME/istio-minimal.yaml
|
||||
{{< /text >}}
|
||||
|
||||
|
|
@ -75,7 +74,6 @@ icon: helm
|
|||
--set sidecarInjectorWebhook.enabled=false \
|
||||
--set mixer.enabled=false \
|
||||
--set prometheus.enabled=false \
|
||||
--set global.proxy.envoyStatsd.enabled=false \
|
||||
--set pilot.sidecar=false
|
||||
{{< /text >}}
|
||||
|
||||
|
|
|
|||
|
|
@ -54,8 +54,7 @@ aliases:
|
|||
|
||||
等待 Istio 控制平面完成初始化,然后再执行本节中的步骤。
|
||||
|
||||
你必须在 Istio 控制平面上运行这些操作以捕获 Istio 控制平面服务端点,如:Pilot、Policy 和
|
||||
Statsd Pod IP 端点。
|
||||
你必须在 Istio 控制平面上运行这些操作以捕获 Istio 控制平面服务端点,如:Pilot、Policy 端点。
|
||||
|
||||
如果你在每个远程组件上使用 Helm 和 Tiller,你必须将环境变量复制到每个节点,然后再使用 Helm 将远程集群连接到 Istio 控制平面。
|
||||
|
||||
|
|
@ -64,7 +63,6 @@ Statsd Pod IP 端点。
|
|||
{{< text bash >}}
|
||||
$ export PILOT_POD_IP=$(kubectl -n istio-system get pod -l istio=pilot -o jsonpath='{.items[0].status.podIP}')
|
||||
$ export POLICY_POD_IP=$(kubectl -n istio-system get pod -l istio-mixer-type=policy -o jsonpath='{.items[0].status.podIP}')
|
||||
$ export STATSD_POD_IP=$(kubectl -n istio-system get pod -l istio=statsd-prom-bridge -o jsonpath='{.items[0].status.podIP}')
|
||||
$ export TELEMETRY_POD_IP=$(kubectl -n istio-system get pod -l istio-mixer-type=telemetry -o jsonpath='{.items[0].status.podIP}')
|
||||
$ export ZIPKIN_POD_IP=$(kubectl -n istio-system get pod -l app=jaeger -o jsonpath='{range .items[*]}{.status.podIP}{end}')
|
||||
{{< /text >}}
|
||||
|
|
@ -95,8 +93,6 @@ $ helm template install/kubernetes/helm/istio-remote --namespace istio-system \
|
|||
--set global.remotePilotAddress=${PILOT_POD_IP} \
|
||||
--set global.remotePolicyAddress=${POLICY_POD_IP} \
|
||||
--set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} \
|
||||
--set global.proxy.envoyStatsd.enabled=true \
|
||||
--set global.proxy.envoyStatsd.host=${STATSD_POD_IP} \
|
||||
--set global.remoteZipkinAddress=${ZIPKIN_POD_IP} > $HOME/istio-remote.yaml
|
||||
{{< /text >}}
|
||||
|
||||
|
|
@ -144,7 +140,7 @@ $ helm template install/kubernetes/helm/istio-remote --namespace istio-system \
|
|||
1. 通过以下命令来为 `istio-remote` 安装 Helm chart:
|
||||
|
||||
{{< text bash >}}
|
||||
$ helm install install/kubernetes/helm/istio-remote --name istio-remote --namespace istio-system --set global.remotePilotAddress=${PILOT_POD_IP} --set global.remotePolicyAddress=${POLICY_POD_IP} --set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} --set global.proxy.envoyStatsd.enabled=true --set global.proxy.envoyStatsd.host=${STATSD_POD_IP} --set global.remoteZipkinAddress=${ZIPKIN_POD_IP}
|
||||
$ helm install install/kubernetes/helm/istio-remote --name istio-remote --namespace istio-system --set global.remotePilotAddress=${PILOT_POD_IP} --set global.remotePolicyAddress=${POLICY_POD_IP} --set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} --set global.remoteZipkinAddress=${ZIPKIN_POD_IP}
|
||||
{{< /text >}}
|
||||
|
||||
{{% /tab %}}
|
||||
|
|
@ -165,8 +161,6 @@ $ helm template install/kubernetes/helm/istio-remote --namespace istio-system \
|
|||
| `global.remotePilotAddress` | 一个合法的 IP 地址或主机名 | None | 指定 Istio 控制平面的 pilot Pod IP 地址或远程集群 DNS 可解析的主机名。 |
|
||||
| `global.remotePolicyAddress` | 一个合法的 IP 地址或主机名 | None | 指定 Istio 控制平面的 policy Pod IP 地址或远程集群 DNS 可解析的主机名。 |
|
||||
| `global.remoteTelemetryAddress` | 一个合法的 IP 地址或主机名 | None | 指定 Istio 控制平面的 telemetry Pod IP 地址或远程集群 DNS 可解析的主机名。 |
|
||||
| `global.proxy.envoyStatsd.enabled` | true, false | false | 指定 Istio 控制平面是否启用了Statsd |
|
||||
| `global.proxy.envoyStatsd.host` | 一个合法的 IP 地址或主机名 | None | 指定 Istio 控制平面的 `statsd-prom-bridge` Pod IP 地址或远程集群 DNS 可解析的主机名。 如果设置了`global.proxy.envoyStatsd.enabled=false`将会被忽略。 |
|
||||
| `global.remoteZipkinAddress` | 一个合法的 IP 地址或主机名 | None | 指定 Istio 控制平面追踪应用的 Pod IP 地址或远程集群 DNS 可解析的主机名。例如:`zipkin` 或 `jaeger`。 |
|
||||
| `sidecarInjectorWebhook.enabled` | true, false | true | 指定是否在远程集群中启用了自动 sidecar 注入 |
|
||||
| `global.remotePilotCreateSvcEndpoint` | true, false | false | 如果设置该项,一个无选择器服务和端点将以`remotePilotAddress` IP的形式被创建给 `istio-pilot.<namespace>`是远程集群 DNS 可解析的。 |
|
||||
|
|
@ -309,7 +303,7 @@ $ helm delete --purge istio-remote
|
|||
控制平面的 service 端点:
|
||||
|
||||
{{< text bash >}}
|
||||
$ helm template install/kubernetes/helm/istio-remote --namespace istio-system --name istio-remote --set global.remotePilotAddress=${PILOT_POD_IP} --set global.remotePolicyAddress=${POLICY_POD_IP} --set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} --set global.proxy.envoyStatsd.enabled=true --set global.proxy.envoyStatsd.host=${STATSD_POD_IP} --set global.remoteZipkinAddress=${ZIPKIN_POD_IP} --set sidecarInjectorWebhook.enabled=false > $HOME/istio-remote_noautoinj.yaml
|
||||
$ helm template install/kubernetes/helm/istio-remote --namespace istio-system --name istio-remote --set global.remotePilotAddress=${PILOT_POD_IP} --set global.remotePolicyAddress=${POLICY_POD_IP} --set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} --set global.remoteZipkinAddress=${ZIPKIN_POD_IP} --set sidecarInjectorWebhook.enabled=false > $HOME/istio-remote_noautoinj.yaml
|
||||
{{< /text >}}
|
||||
|
||||
1. 为远程 Istio 创建 `istio-system` 命名空间:
|
||||
|
|
@ -376,7 +370,6 @@ pod 重启的一个简单的解决方案是给 Istio 服务使用负载均衡器
|
|||
* `istio-pilot`
|
||||
* `istio-telemetry`
|
||||
* `istio-policy`
|
||||
* `istio-statsd-prom-bridge`
|
||||
* `zipkin`
|
||||
|
||||
目前,Istio 安装不提供为 Istio 服务指定服务类型的选项。 您可以在 Istio Helm chart 或 Istio 清单中手动指定服务类型。
|
||||
|
|
@ -384,7 +377,7 @@ pod 重启的一个简单的解决方案是给 Istio 服务使用负载均衡器
|
|||
### 通过网关暴露 Istio 服务
|
||||
|
||||
此方法使用了 Istio ingress 网关的功能。远程集群有 `istio-pilot`、`istio-telemetry`、 `istio-policy`、
|
||||
`istio-statsd-prom-bridge` 和 `zipkin` 服务,它们指向了 Istio ingress 网关的负载均衡 IP 地址。然后,所有的服务均指向相同的IP 地址。你必须创建目标规则以在主集群的 ingress 网关中获得正确的 Istio 服务。
|
||||
和 `zipkin` 服务,它们指向了 Istio ingress 网关的负载均衡 IP 地址。然后,所有的服务均指向相同的 IP 地址。你必须创建目标规则以在主集群的 ingress 网关中获得正确的 Istio 服务。
|
||||
|
||||
以下两种方案可供选择:
|
||||
|
||||
|
|
@ -494,9 +487,7 @@ Istio 支持在控制平面组件之间以及在 sidecar 注入的应用 pod 之
|
|||
--set global.remotePilotCreateSvcEndpoint=true \
|
||||
--set global.remotePilotAddress=${PILOT_POD_IP} \
|
||||
--set global.remotePolicyAddress=${POLICY_POD_IP} \
|
||||
--set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} \
|
||||
--set global.proxy.envoyStatsd.enabled=true \
|
||||
--set global.proxy.envoyStatsd.host=${STATSD_POD_IP} > ${HOME}/istio-remote-auth.yaml
|
||||
--set global.remoteTelemetryAddress=${TELEMETRY_POD_IP} > ${HOME}/istio-remote-auth.yaml
|
||||
$ kubectl apply -f ${HOME}/istio-remote-auth.yaml
|
||||
{{< /text >}}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,6 @@ $ kubectl apply -f install/kubernetes/istio-demo-auth.yaml
|
|||
istio-pilot ClusterIP 10.47.250.56 <none> 15003/TCP,15005/TCP,15007/TCP,15010/TCP,15011/TCP,8080/TCP,10514/TCP 7m
|
||||
istio-policy ClusterIP 10.47.245.228 <none> 9091/TCP,15004/TCP,10514/TCP 7m
|
||||
istio-sidecar-injector ClusterIP 10.47.245.22 <none> 443/TCP 7m
|
||||
istio-statsd-prom-bridge ClusterIP 10.47.252.184 <none> 9102/TCP,9125/UDP 7m
|
||||
istio-telemetry ClusterIP 10.47.250.107 <none> 9091/TCP,15004/TCP,10514/TCP,42422/TCP 7m
|
||||
prometheus ClusterIP 10.47.253.148 <none> 9090/TCP 7m
|
||||
{{< /text >}}
|
||||
|
|
@ -106,7 +105,6 @@ $ kubectl apply -f install/kubernetes/istio-demo-auth.yaml
|
|||
istio-ingressgateway-7754ff47dc-qkrch 1/1 Running 0 1m
|
||||
istio-policy-74df458f5b-jrz9q 2/2 Running 0 1m
|
||||
istio-sidecar-injector-645c89bc64-v5n4l 1/1 Running 0 1m
|
||||
istio-statsd-prom-bridge-949999c4c-xjz25 1/1 Running 0 1m
|
||||
istio-telemetry-676f9b55b-k9nkl 2/2 Running 0 1m
|
||||
prometheus-86cb6dd77c-hwvqd 1/1 Running 0 1m
|
||||
{{< /text >}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue