![](/img/trans.png)
[英]Azure kubernetes - Istio & multiple kubernetes applications?
[英]Azure Kubernetes - Istio Multiple Loadbalancers?
我為 Istio Ingress 控制器創建了一個內部負載均衡器,如下所示
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
namespace: istio-system
name: istio-control-plane
spec:
profile: default #or demo
components:
ingressGateways:
- name: istio-internal-ingressgateway
enabled: true
k8s:
serviceAnnotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
由於這個原因,默認的外部負載均衡器被刪除了。
是不是意味着 Istio 只支持一個 Loadbalancer? 我不能有 2 個或更多負載均衡器,每個 Istio 網關可能有一個嗎?
是不是意味着 Istio 只支持一個 Loadbalancer? 我不能有 2 個或更多負載均衡器,每個 Istio 網關可能有一個嗎?
不,istio 支持多個網關,您更改了錯誤的組件。
網關是一種特殊類型的組件,因為可以定義多個入口和出口網關。 在 IstioOperator API 中,網關被定義為列表類型。
看看這個文檔。
有一個例子。
可以通過添加新的列表條目來創建新的用戶網關:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
components:
ingressGateways:
- name: istio-ingressgateway
enabled: true
- namespace: user-ingressgateway-ns
name: ilb-gateway
enabled: true
k8s:
resources:
requests:
cpu: 200m
serviceAnnotations:
cloud.google.com/load-balancer-type: "internal"
service:
ports:
- port: 8060
targetPort: 8060
name: tcp-citadel-grpc-tls
- port: 5353
name: tcp-dns
其他資源:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.