mirror of https://github.com/istio/istio.io.git
parent
2ea8d9ec6f
commit
c9fea31d0c
|
@ -373,9 +373,54 @@ servicesIpv4Cidr: 10.7.240.0/20
|
|||
|
||||
使用 `--set global.proxy.includeIPRanges="10.4.0.0/14\,10.7.240.0/20"`
|
||||
|
||||
#### Azure Container Service(ACS)
|
||||
#### Azure Kubernetes Service (AKS)
|
||||
|
||||
使用 `--set global.proxy.includeIPRanges="10.244.0.0/16\,10.240.0.0/16`
|
||||
##### Kubenet
|
||||
|
||||
想要查看集群中使用了哪些 Service CIDR 和 Pod CIDR,
|
||||
请使用 `az aks show` 并查找 `serviceCidr`:
|
||||
|
||||
{{< text bash >}}
|
||||
$ az aks show --resource-group "${RESOURCE_GROUP}" --name "${CLUSTER}" | grep Cidr
|
||||
"podCidr": "10.244.0.0/16",
|
||||
"podCidrs": [
|
||||
"serviceCidr": "10.0.0.0/16",
|
||||
"serviceCidrs": [
|
||||
{{< /text >}}
|
||||
|
||||
然后使用 `--set values.global.proxy.includeIPRanges="10.244.0.0/16\,10.0.0.0/16"`
|
||||
|
||||
##### Azure CNI
|
||||
|
||||
如果将 Azure CNI 与非覆盖网络模式结合使用,请按照以下步骤操作。
|
||||
如果将 Azure CNI 与覆盖网络结合使用,请遵循 [Kubenet 说明](#kubenet)。
|
||||
有关详细信息,请参阅
|
||||
[Azure CNI Overlay 文档](https://learn.microsoft.com/en-us/azure/aks/azure-cni-overlay)。
|
||||
|
||||
想要查看集群中使用了哪个 Service CIDR,
|
||||
请使用 `az aks show` 并查找 `serviceCidr`:
|
||||
|
||||
{{< text bash >}}
|
||||
$ az aks show --resource-group "${RESOURCE_GROUP}" --name "${CLUSTER}" | grep serviceCidr
|
||||
"serviceCidr": "10.0.0.0/16",
|
||||
"serviceCidrs": [
|
||||
{{< /text >}}
|
||||
|
||||
想要查看集群中使用了哪个 Pod CIDR,请使用 `az` CLI 检查 `vnet`:
|
||||
|
||||
{{< text bash >}}
|
||||
$ az aks show --resource-group "${RESOURCE_GROUP}" --name "${CLUSTER}" | grep nodeResourceGroup
|
||||
"nodeResourceGroup": "MC_user-rg_user-cluster_region",
|
||||
"nodeResourceGroupProfile": null,
|
||||
$ az network vnet list -g MC_user-rg_user-cluster_region | grep name
|
||||
"name": "aks-vnet-74242220",
|
||||
"name": "aks-subnet",
|
||||
$ az network vnet show -g MC_user-rg_user-cluster_region -n aks-vnet-74242220 | grep addressPrefix
|
||||
"addressPrefixes": [
|
||||
"addressPrefix": "10.224.0.0/16",
|
||||
{{< /text >}}
|
||||
|
||||
然后使用 `--set values.global.proxy.includeIPRanges="10.244.0.0/16\,10.0.0.0/16"`
|
||||
|
||||
#### Minikube, Docker For Desktop, Bare Metal
|
||||
|
||||
|
|
Loading…
Reference in New Issue