在Azure AKS中创建内部混合协议负载平衡器
我正在尝试使用以下yaml在Azure AKS中创建内部混合协议负载平衡器(尝试了1.15.5、1.15.7和1.16.4):在Azure AKS中创建内部混合协议负载平衡器,azure,kubernetes,azure-aks,azure-load-balancer,Azure,Kubernetes,Azure Aks,Azure Load Balancer,我正在尝试使用以下yaml在Azure AKS中创建内部混合协议负载平衡器(尝试了1.15.5、1.15.7和1.16.4): --- apiVersion: v1 kind: Service metadata: annotations: service.beta.kubernetes.io/azure-load-balancer-mixed-protocols: "true" service.beta.kubernetes.io/azure-load-balancer-in
---
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/azure-load-balancer-mixed-protocols: "true"
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
name: consullb
spec:
ports:
- port: 8500
targetPort: 8500
name: http
protocol: TCP
- port: 8400
targetPort: 8400
name: rpc
protocol: TCP
- port: 8301
targetPort: 8301
name: serflan-tcp
protocol: TCP
- port: 8302
targetPort: 8302
name: serfwan-tcp
protocol: TCP
- port: 8300
targetPort: 8300
name: server
protocol: TCP
- port: 8600
targetPort: 8600
name: consuldns-tcp
protocol: TCP
- port: 8301
targetPort: 8301
name: serflan-udp
protocol: UDP
- port: 8302
targetPort: 8302
name: serfwan-udp
protocol: UDP
- port: 8600
targetPort: 8600
name: consuldns-udp
protocol: UDP
selector:
component: consul-1582621245-consul
type: LoadBalancer
我得到以下错误:
cannot create an external load balancer with mix protocols
我测试了两个不同的集群,一个使用标准SKU,另一个使用基本SKU
我有什么遗漏吗?或者有人可以告诉我其他方面的问题,以便尝试/排除故障?如果删除内部注释会发生什么情况?相同的结果:-(你有没有发现这方面的问题?我在一个外部负载平衡器上也遇到了同样的问题。看起来它只是没有实现,尽管他们解决了github的问题是的,我问了在azure上实现它的人。结果在以后的版本中它被删除了,因为k8s不支持它。我不知道为什么它是n。)ot由k8s支持。如果有人知道我想学习的话!